Release Automation

  • 1.  How to use condition logic with on failure- link

    Posted Jan 18, 2017 10:06 AM

    Hi, this must be very basic question, but as a newbie just could not get it working ok. Scenario is that we need to do few REST calls to a server, until it replies something else than "in progress". Everything else works fine, we get a reply and parse a string fine from it. then 

     

    1.  a Compare Two Strings -action is used to compare whether the parsed string equals to IN_PROGRESS

    2. if it does not, there is an on failure link to another action which would stop the loop 

     

    Sounds easy.. Below is shortened test case having dummy setter to make the compare step to fail. When run, the flow displays this.  Why is the on failure-link not followed  & next action not executed? 

     

    Documentation here https://docops.ca.com/ca-release-automation/5-5-2/en/deployment-automation/design-applications/flows says

     

    "On Failed

    The condition resolves if the previous action fails.

    Icon: A red exclamation point in a circle

     "

     



  • 2.  Re: How to use condition logic with on failure- link
    Best Answer

    Posted Jan 18, 2017 10:20 AM

    you need to remove the must succeed check box from the action that is the source for the on failed link

     



  • 3.  Re: How to use condition logic with on failure- link

    Posted Jan 18, 2017 10:27 AM

    Excellent, thanks! Saw that checkbox but was looking from wrong side, in flows where it was greyed.



  • 4.  Re: How to use condition logic with on failure- link

    Posted Jan 18, 2017 12:08 PM

    I created new idea for enhancing the conflict manager to warn in this situation.

    Conflict manager should warn when setting on fail link while the action set to must succeed  



  • 5.  Re: How to use condition logic with on failure- link

    Broadcom Employee
    Posted Jan 18, 2017 10:24 AM

    Hi,

     You need to un check must succeed flag, with it not being uncheck the action goes in Pause state, by removing that bit action will go to fail route.

     

    Regards,

    Saurabh