ElectricFlow: Choosing transitions

The content of this article is moved to https://support.cloudbees.com/hc/en-us/articles/360032822512 .

Comments

  • Avatar
    Benson Ayabe

    A comment on testing of the job outcome in the transition -- there are other outcomes besides "success" and "error" (most notably "warning").

    As such, when there are only two transitions defined, it is a best practice to have the transition condition for the two transitions be the exact opposite of each other. That way you'll ensure that you won't be surprised one day when the sub-workflow completes but neither transition occurs.

    In this particular case, you may want to have the failed transition use the condition == "error" and the successful transition use != "error" (assuming of course that you want the workflow to continue when the outcome is "warning").

    A full list of possible outcomes may be found in the EC Help documentation.

Powered by Zendesk