Description
This ActionHandler transfers variables from the main process to the sub-process. This means that the variables do not need to be defined/passed to the process-state activity one by one during the modeling process.
The handler is built-in on the first activity in the sub-process.
Class
com.dooris.bpm.actionhandler.InheritProcessVariableHandler
Parameter
None
Example:
We have a simple use case to explain this actionhandler. In order to use this actionhandler, a main and a subprocess is necessary. We have following process instances:
We implement the actionhandler on the Department Variable via Inheritance task.
Furthermore, we attached one smartform for the main process which contains variables employeename
and department
. Another smartform with a field which has department
as a process variables.
The relation is possible only if the variables from the two smartforms are identical.
Before starting the process instance, name of the employee and the department information is filled out.
After starting the process instance, the department
variable is set to 'Marketing'.
When the First Task is completed, the process will continue with the sub-process:
When the sub-process is evoked, you can see that the variable department
from the second smartform attached to the sub-process is also set to 'Marketing'.