3 Replies Latest reply on Jan 8, 2015 1:59 AM by swiderski.maciej

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

    wguo

      Hi ,

       

           When i want to copied the variable 'ActorId' to process variable in human task , it doesn't work well . As i used it well on jbpm5.4 and now we want to try it on 6.x , but looks when i set 'ActorId' in output param and set assignment to a process variable , it didn't work . As the guide said , it should be ok : Chapter 6. Processes "Figure 6.9. User task" part.

       

      Thanks !

        • 1. Re: Copied  variable "ActorId" to process variable doesn't work
          swiderski.maciej

          would be good if you could provide your process definition and the code you use to work on this. That way we might support you. In general ActorId is not process variable by default but only user task parameter (can be seen as task variable).

           

          HTH

          • 2. Re: Copied  variable "ActorId" to process variable doesn't work
            wguo

            Hi Maciej ,

             

                i paste a simple process here , and steps are as follows:

             

                step1:  define a process variable "pv_actor" ;

            process.png

             

               step2 :  in the human task , set the output:  ActorId as a output param

            output.png

               step3:  mapping the ActorId to the process variable "pv_actor" ;

            assignment.png

             

            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.


            Hope it make sense .

            • 3. Re: Copied  variable "ActorId" to process variable doesn't work
              swiderski.maciej

              if that was how it worked in previous version feel free to drop jira for it and we fix it.

               

              HTH