Any updates on this?
Does it mean that the BPEL Process Instance is not even held in the DB ?
Please let me know. Any help is appreciated.
BPEL process instances are definitely stored in the JBPM_PROCESSINSTANCE table. There is no reason why you wouldn't be able to retrieve a process instance through the GraphSession methods, other than some database connectivity problem. What is the full message (and stack trace, if any) of the error you get?
Thanks for the confirmation. The fact was that my process is like this
receive ->assign->invoke->receive ....
The first receive and assign went fine, but I was getting exception in invoke.
I thought since the receive activity is completed the process instance might have created, but it was not. That's what confused me.
Now when I fixed the invoke's exception, it got working and the bpel process instances are indeed stored in JBPM_PROCESSINSTANCE table.
Many thanks Alex for confirming it. I am also gettign the process instance through the graph session methods.