I am trying to run another process P1 from a process P2. But how would i come to know if the process P1 has successfully run or not. i need to perform further steps if the sub process has successfully run.
Thanks for your help in advance.
You could put in a step with a gel script that queries the bpm_run_processes table for the process that has to complete and looks at fields status_code and percent_complete to see if they are BPM_PIS_DONE 1.000000.
If they are then go to your process step otherwise something else.
(It has been advised not to set processes waiting)
Need BPM Process Table Technical Reference
If i need to update something in the main process only when the sub process completes, how would i be able to check that?
Do i need to create another step for it?
Why dont you create a "flag"?
Process 2 updates a custom attribute working as a "flag" (=TRUE). Then Process 1 knows P2 has completed whatever needed to complete.
On The other hand, You can also add a step that if "nothing happens" (flag is not set to TRUE) in "N" days, run a query to see if process 2 has completed.
What exactly does the subprocess do?
If it updates a field/attribute you could fire the main process on update on the outset they have the same object.
If not Aurora's flag will work.
Retrieving data ...