customTaskInstance

This example shows how to extend the TaskInstance by adding a custom property.

To create this example in Eclipse, you should first have created a project for jbpm.3 in your workspace. Use the New -> Java Project and uncheck Use Default Location and browse to the jbpm-jpdl-{version}/examples/customTaskInstance directory and give it the project name customTaskInstance. Go to the customTaskInstance project Build Path Source tab add folders customTaskInstance/src/config, customTaskInstance/src/identity and customTaskInstance/src/jpdl Projects Tab to add jbpm.3. Use the Libraries tab and add hibernat3.jar and junti.jar from jbpm.3 lib directory. This should result in a clean compilation (no errors).

This example consists of the following files:

To run the example, run the CustomTaskInstanceTest.java as a JUnit test.