This content has been marked as final.
Show 2 replies
-
1. Re: Assign an activity to a user or other based on process variables data?
bwallis42 Nov 6, 2013 1:13 AM (in response to alopez72)You could use an expression in the parameter mapping for ActorId in the input parameters for the human task as described here: Chapter 13. Human Tasks. This also seems to work in JBPM6 (just tried a simple example).
This uses the value of the variable 'name' as the actorid if the value of the variable 'number' is less than 7. You could do something similar using your last assessment variable, ie: #{"rejected".equals(lastAssessment)?"peter":""} which should use either peter or an empty string for the actorId.
Note: if you set an actor in the human task node then it seems to override anything you do with the parameter mapping, at least it did for me in JBPM6.
-
2. Re: Assign an activity to a user or other based on process variables data?
alopez72 Nov 6, 2013 1:32 PM (in response to bwallis42)Thanks, great pointers to docs and example, this is what I was looking for...