jemmerling [
https://community.jboss.org/people/jemmerling] created the discussion
"Re: How to define result mapping or exit action that saves task owner"
To view the discussion, visit:
https://community.jboss.org/message/648690#648690
--------------------------------------------------------------
It doesn't look like this works in my case.
I need owner not actor id. I my situation, I only identify a group id then some member of
that group claims the task. I want to know which group member claimed it. I am guessing
that, with an exit action or script node, there is no way to access the task (which would
allow me to identify the owner). Here is my on exit action which didn't work (owner is
null):
#
String owner = (String)
((WorkItemNodeInstance)kcontext.getNodeInstance()).getWorkItem().getParameter("ActorId");
System.out.println("Owner is: " + owner);
kcontext.setVariable("manager",owner);
However I think I can handle this OK on the application side i.e. the task owner will
identify theirself to the process instance.
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/648690#648690]
Start a new discussion in jBPM at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]