This content has been marked as final.
Show 2 replies
-
1. Re: How to obtain the process instance id after @CreateProcess
pmuir Apr 5, 2008 5:51 PM (in response to brombie.wanch.akewan.com)BusinessProcess.instance().getProcessId()
-
2. Re: How to obtain the process instance id after @CreateProcess
karypid Jun 18, 2009 6:48 PM (in response to brombie.wanch.akewan.com)Does this work within the method annotated with @CreateProcess? The following code does not work for me (bpId is null), even though a business process is created after the method completes. I am thinking that in order to access the process id, the method must complete so that the transaction is committed (the method is in a SLSB):
@CreateProcess(definition = "sample-process") public String testProcessCreation() { BusinessProcess bp = BusinessProcess.instance(); Long bpId = bp.getProcessId(); // bpId is null ...