[jboss-dev-forums] [jBPM Development] - Re: How can I find GroupId

Maciej Swiderski do-not-reply at jboss.com
Thu Mar 29 06:48:46 EDT 2012


Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion

"Re: How can I find GroupId"

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

--------------------------------------------------------------
You can try to cast it to HumanTaskNodeInstance if you're sure it is a HumanTask and get a work item out of it. Next, access parameters of work item to get actor id and group id.


String actorId = ((HumanTaskNodeInstance) nodeInstance).getWorkItem().getParameter("ActorId");
 
String groupId = ((HumanTaskNodeInstance) nodeInstance).getWorkItem().getParameter("GroupId");



HTH
--------------------------------------------------------------

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

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120329/b228c01a/attachment.html 


More information about the jboss-dev-forums mailing list