Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-4147

Able to use 'Task Variables' as expressions in Task properties

    Details

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                swiderski.maciej Maciej Swiderski
                Reporter:
                tkobayashi Toshiya Kobayashi
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: