This content has been marked as final.
Show 2 replies
-
1. Re: retreive a task's assignee
swiderski.maciej Dec 18, 2011 2:29 PM (in response to tclark)Tom, you can get it with following onExit definition, with assumption that you are looking for ActorId, similar you can get group assignment as well (GroupId):
<extensionElements> <tns:onExit-script scriptFormat="http://www.java.com/java"> <script> System.out.println("User of the task " + ((org.jbpm.workflow.instance.node.WorkItemNodeInstance)kcontext.getNodeInstance()).getWorkItem().getParameter("ActorId")); </script> </tns:onExit-script> </extensionElements>
HTH
-
2. Re: retreive a task's assignee
tclark Dec 19, 2011 4:28 PM (in response to tclark)This worked perfectly, thanks. Note that "ActorId" needs to be quoted in the code above. The quotes were probably removed by the forum software.