This content has been marked as final.
Show 1 reply
-
1. Re: How to retrieve userid from within BPMN?
bird86 Apr 10, 2013 1:32 AM (in response to lchakrab)You can create a variable "assignee" in process.
results.put("assignee", userId);
localTaskService.completeWithResults(taskId, userId, results);
you put the userId in results map, and then you can get the value of the variable "assignee" in the on-exit action of the node.
the snippet code in the on-exit action:
System.out.println("the assignee of the task node is"+assignee);