[jboss-user] [jBPM] - Re: How to retrieve userid from within BPMN?

wp ren do-not-reply at jboss.com
Wed Apr 10 01:32:39 EDT 2013


wp ren [https://community.jboss.org/people/bird86] created the discussion

"Re: How to retrieve userid from within BPMN?"

To view the discussion, visit: https://community.jboss.org/message/807329#807329

--------------------------------------------------------------
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);
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/807329#807329]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130410/603a0048/attachment.html 


More information about the jboss-user mailing list