Layer7 API Management

  • 1.  Iteration not for multi valued

    Posted Oct 31, 2017 05:54 AM

    Hi Community,

     

    can it it possible to do a for loop similarly as Java and input is not a multi valued context variable.

    Requirement is until  get the success response I have to iterate loop by using assertion, once get the success response I will use compare statement to break the iteration/loop.

     

    Regards,

    Suneel



  • 2.  Re: Iteration not for multi valued
    Best Answer

    Broadcom Employee
    Posted Oct 31, 2017 11:27 PM

    Dear saisuneel ,

    It's possible but it's not recommended.

    you can do something like this,

    Call the service itself until successful response, but this could cause dead loop, you may think of using a quota throughput assertion as an exit counter.

    You also need to "sleep" or delay, (there is a tactical assertion: delay), otherwise cpu usage ramps up.

     

    Regards,

    Mark



  • 3.  Re: Iteration not for multi valued

    Posted Nov 02, 2017 12:25 PM

    Suneel,

       Why not ask for help withyour objective instead of what you think you have to do.