-
1. Re: Copied variable "ActorId" to process variable doesn't work
swiderski.maciej Dec 23, 2014 9:58 AM (in response to wguo)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 Dec 24, 2014 3:20 AM (in response to swiderski.maciej)Hi Maciej ,
i paste a simple process here , and steps are as follows:
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.
Hope it make sense .
-
3. Re: Copied variable "ActorId" to process variable doesn't work
swiderski.maciej Jan 8, 2015 1:59 AM (in response to wguo)if that was how it worked in previous version feel free to drop jira for it and we fix it.
HTH