Clarity

  • 1.  How to check if process completed from another process

    Posted May 30, 2017 04:31 AM

    HI Team,

     

    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.



  • 2.  Re: How to check if process completed from another process

    Posted May 30, 2017 06:14 AM

    Need BPM Process Table Technical Reference 

    https://communities.ca.com/thread/18324634 

     

    NJ



  • 3.  Re: How to check if process completed from another process
    Best Answer

    Posted May 30, 2017 06:36 AM

    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)



  • 4.  Re: How to check if process completed from another process

    Posted Jun 06, 2017 05:59 AM

    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?



  • 5.  Re: How to check if process completed from another process

    Posted Jun 06, 2017 06:01 PM

    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.

     

     



  • 6.  Re: How to check if process completed from another process

    Posted Jun 07, 2017 01:39 AM

    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.