This content has been marked as final.
Show 4 replies
-
1. Re: How to get JBPM variable Taskinstance id ?
Stefano Travelli Jan 9, 2009 2:02 PM (in response to Parimal Chauhan)@Observe the events raised during the processing of that annotations: org.jboss.seam.initProcess.<process-name>, org.jboss.seam.startTask.<task-name>, etc
-
2. Re: How to get JBPM variable Taskinstance id ?
Parimal Chauhan Jan 12, 2009 10:18 AM (in response to Parimal Chauhan)Hi,
Thanks for quick reply.This is really helpful.
is there any API that we can use to get taskinstanceid or other JBPM variables with this annotations.thanks in advance.
-
3. Re: How to get JBPM variable Taskinstance id ?
Stefano Travelli Jan 12, 2009 12:28 PM (in response to Parimal Chauhan)Yes, there are.
Either let Seam to inject the TaskInstance (@In TaskInstance taskInstance) or use org.jboss.seam.bpm.TaskInstance.instance()) in order to get the org.jbpm.taskmgmt.exe.TaskInstance.
Then, of course, taskInstance.getId() will give you the taskInstanceId.
The same apply for BusinessProcess.
@In TaskInstance taskInstance; @Observe("org.jboss.seam.startTask.mytask") public void taskStarted() { log.debug("The task mytask with id = {0} was started.", taskInstance.getId()); }
-
4. Re: How to get JBPM variable Taskinstance id ?
Parimal Chauhan Jan 13, 2009 5:41 AM (in response to Parimal Chauhan)Hi,
thanks for the reply.Its working.Thank you so much.