In reply to Mohammad Umair Kazi.

Hi Mohammad - You can modify the dependency as Ends with any exit code. Then Scenario 2 should work for you in this case. If the job returns with an Non-exit code of 0, it will fail and the flow will fail. You can also modify the Actions after the state of the flow is determined and the source for the flow exit code settings.