Why and when to perform this task
You usually use a modeling tool, such as WebSphere® Integration Developer to
build task templates. You then install the task templates in WebSphere Process
Server and create instances from these templates, for example, using Business
Process Choreographer Explorer. However, you can also create human or participating
task instances or templates at runtime. You might want to do this, for example,
when the task definition is not available when the application is deployed,
the tasks that are part of a workflow are not yet known, or you need a task
to cover some ad-hoc collaboration between a group of people.
Steps for this task
- Optional: If your interfaces contain types that are
not simple Java types, create or identify an application that contains the
data types that are used by the runtime task or template.
The
runtime task or task template runs in the context of the application and gets
access to the data types. Ensure that your application also contains a task
or process definition so that the application is loaded by Business Process
Choreographer. These tasks or processes can be dummy tasks or processes.
- Create a task model.
The model refers to the data
types in the application identified in step 1.
- Validate the task model.
- Create the task template or the task instance.
Use
the HumanTaskManagerService interface to complete this action. If your interfaces
contain types other than simple Java types, specify the name of the application
that contains the data type definitions when you create your task instance
or template.