extracts all information from the process context (optionally indirect) and
initializes the task instance variables.
Use
TaskInstance.setVariable(StringObject) to set variables
in the task instance and use
ContextInstance.getVariable(StringToken) to get access to the process variables.
The task instance variable can be
- A copy of process variable value
- A reference to a process variable
- Any object that can be persisted as a variable. This is usefull in case
a
TaskInstance variable is a function of other process instance
variables.
In order to create a reference to an existing process variable, insert
a
org.jbpm.context.exe.VariableInstance as a value in the returned map.
If the TaskInstance is to have copies of the process instance variables, just
insert POJO's (non-VariableInstance classes) as values for the TaskInstance variables.
|