JBoss Community

Re: retreive a task's assignee

created by Maciej Swiderski in jBPM Development - View the full discussion

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

Reply to this message by going to Community

Start a new discussion in jBPM Development at Community