[jboss-dev-forums] [jBPM Development] - Re: Using OnEntry and OnExit in JBPM 5 Human task

Vignesh Bhaskar do-not-reply at jboss.com
Tue Dec 27 17:30:57 EST 2011


Vignesh Bhaskar [http://community.jboss.org/people/vigneshbhaskar] created the discussion

"Re: Using OnEntry and OnExit in JBPM 5 Human task"

To view the discussion, visit: http://community.jboss.org/message/643445#643445

--------------------------------------------------------------
Thanks Mauricio for your reply, I followed the blog and added those onEntry and onExit entries in the bpmn xml. I was trying to retrieve the taskID from the workItemID using the following codes.

*long workItemId = ((org.jbpm.workflow.instance.node.WorkItemNodeInstance)kcontext.getNodeInstance()).getWorkItem());*
*JBPMUtil.getTaskByWorkItemID(workItemId).getId();*

I am able to retrieve the workItemId only on the onExit actionscript and not in the onEntry script. From the logger, i understand that the Task is created only after the onEntry script runs. I am still worried how i can send an email with the link pointing to the TaskID. Is there any alternative way of accomplishing this?
--------------------------------------------------------------

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

Start a new discussion in jBPM Development at Community
[http://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/20111227/990aec16/attachment.html 


More information about the jboss-dev-forums mailing list