+ Start a Discussion
Anoop JohnyAnoop Johny 

ProcessBuilder not executing

I have a process defined in the Process Builder with 3 conditions on a custom Object.

Condition1: If the Status is 'AUTO_APPROVED',
                    Action1: call a APEX program.
Condition2: If the Status is 'SUBMITTED',
                    Action1: call the APEX program
                    Action2: Submit an Approval process. [Once approved the Status will get updated to 'APPROVED']
Condition3: If the Status is 'APPROVED',
                    Action1: call another APEX program.

I have selected the below option in process builder:
Recursion - Allow process to evaluate a record multiple times in a single transaction?  --> This is set to 'Yes'


Process:
1. User sets the Status to 'SUBMITTED'. It triggers the Condition2 and Approval process is submitted.
2. Once Approved, the status is changed to 'APPROVED'.

I am expecting another process to trigger and the evaluate Condition3 to be true and another APEX program gets called.
But this is not happening. Is it an expected behaviour ? 

If Yes, what is the other alternative ?
If so, then what is the use of the check box 'Recursion - Allow process to evaluate a record multiple times in a single transaction?'


IF No, what am I missing ?

 

Cheers
AJ