Hi
I am using @Observer(org.jboss.seam.createProcess.name
) to add additional context variable to a new business process once it is created using @create_process
. But I don't know how to get processInstance object. Is using BusinessProcess.instance() get process id the only way to go ? if so, how do I convert the process id into the ProcessInstance object ?
Any ideas ?
Regards, David
Hi David
You can get the process instance from the ProcessInstance component either by injecting it or by ProcessInstance.instance();
hope that helps.
Craig