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

Copied variable "ActorId" to process variable doesn't work

    XMLWordPrintable

Details

    • Hide

      step1: define a process variable "pv_actor" ;
      step2 : in the human task , set the output: ActorId as a output param
      step3: mapping the ActorId to the process variable "pv_actor" ;
      step4: in the script task: set : System.out.println("process variable :" + pv_actor);

      What i tried this because we used it in jbpm5.4 and it worked well , and now also it's mentioned in the v6.1 guide : Chapter 6. Processes

      6.3.3. User task

      Result mapping: Allows copying the value of result parameters of the human task to a process variable. Upon completion of the human task, the values will be copied. A human task has a result variable "Result" that contains the data returned by the human actor. The variable "ActorId" contains the id of the actor that actually executed the task.

      Show
      step1: define a process variable "pv_actor" ; step2 : in the human task , set the output: ActorId as a output param step3: mapping the ActorId to the process variable "pv_actor" ; step4: in the script task: set : System.out.println("process variable :" + pv_actor); What i tried this because we used it in jbpm5.4 and it worked well , and now also it's mentioned in the v6.1 guide : Chapter 6. Processes 6.3.3. User task Result mapping: Allows copying the value of result parameters of the human task to a process variable. Upon completion of the human task, the values will be copied. A human task has a result variable "Result" that contains the data returned by the human actor. The variable "ActorId" contains the id of the actor that actually executed the task.

    Attachments

      Activity

        People

          swiderski.maciej Maciej Swiderski (Inactive)
          wguo_jira Wells G (Inactive)
          Votes:
          0 Vote for this issue
          Watchers:
          2 Start watching this issue

          Dates

            Created:
            Updated:
            Resolved: