Details
-
Feature Request
-
Resolution: Done
-
Minor
-
jBPM 6.0.0.CR4
-
None
-
0
-
0%
Description
Currently we can use #{processVariable} expressions to refer 'Process Variables' in Task properties (e.g. Comment). This feature request is to use ${taskVariable} expressions to refer 'Task Variables' in Task properties as well.
'Task Variables' are described in this section.
http://docs.jboss.org/jbpm/v5.4/userguide/ch.human-tasks.html#d0e5078
Notifications can reference process variables by #{processVariable} and task variables by ${taskVariable}. Accordingly, process variables resolve at task creation time, and task variables resolve at notification time. The following list contains several task variables that can be used while working with notifications: - taskId: An internal id of a task instance. - processInstanceId: An internal id of a process instance that the task belongs to. - workItemId: An internal id of a work item that created this task. - processSessionId: A session internal id of a runtime engine. - owners: A list of users/groups that are potential owners of the task. - doc: A map that contains regular task variables.
In other words, we can use 'Task Variables' in Notification but the customer wants to use them in Task creation time as well.