Skip to main content

I have a need to check a particular URL, if it returns success - good to continue. If it is false I need to retry up to n times. I have a try scope with log; http request; (try; isTrue with error handling and and on error propagate(wait)), This all seems to work fine; try the URL, if it returns false; the process does wait and try again - up to n times.

 

However, I don't want the isTrue error to be logged, since I handle it myself. In the Anypoitn Studio debugger, setting logException=false seems to work - no stack trace. When deployed to CloudHub however, the stack trace appears - how can I get rid of it? (if it matters, I suppress notifications too, and only for the error type INVALID:BOOLEAN which is what the is true component throws).

4 answers
  1. Dec 17, 2020, 7:43 AM

    Hi @Chris Tatem​ 

     

    If you can evaluate it form the body then probably you have have a filtrations using choice router.

    Have a Private flow with you Http and use VM for recursive calls.

    In the Choice filter if the condition match well and good pass it along otherwise call the Private flow again from the choice.

    Hi @Chris Tatem​ If you can evaluate it form the body then probably you have have a filtrations using choice router.Have a Private flow with you Http and use VM for recursive calls.ss6ss7

    <flow name="ParentFlow" doc:id="af481bfc-6af3-4fc5-b70b-5cb00d6a72b4" >

    <http:listener doc:name="Listener" doc:id="baac9162-98d1-4985-be7f-2d000af09922" path="/test"/>

    <ee:transform doc:name="Transform Message" doc:id="140ca340-57bd-4b71-8831-5383dae8820c" >

    <ee:message >

    <ee:set-payload ><![CDATA[%dw 2.0

    output application/java

    ---

    payload]]></ee:set-payload>

    </ee:message>

    </ee:transform>

    <flow-ref doc:name="Flow Reference" doc:id="02eb38d6-1d7a-4a44-bb9f-b8f08918b358" name="Flow1"/>

    </flow>

    <flow name="Flow1" doc:id="c14a15ed-1705-4c66-9cb3-a960f2b35f4b" >

    <vm:listener doc:name="Listener" doc:id="d7b18eee-99d7-42ac-8036-53ca6818618c" config-ref="VM_Config" queueName="flow1"/>

    <vm:publish-consume doc:name="Publish consume" doc:id="32728aa6-1e6b-4a09-8c3a-7747adaf0f29" config-ref="VM_Config" queueName="flow2"/>

    <choice doc:name="Choice" doc:id="51a14cc6-0355-4019-a4ba-e6ac9c6428eb">

    <when expression="Success">

    <logger level="INFO" doc:name="Pass" doc:id="c3f18ffe-ab6e-46fb-9bc3-7fdf3b0f6c1c" />

    </when>

    <otherwise >

    <vm:publish doc:name="Publish" doc:id="94f35641-09be-43be-be6e-013e6fa8b41d" config-ref="VM_Config" queueName="flow1"/>

    </otherwise>

    </choice>

    </flow>

    <flow name="Flow2" doc:id="85ff36b2-f971-42b7-9fc2-8b025b29d790" >

    <vm:listener doc:name="Listener" doc:id="92e21283-6c1d-458c-ab03-0fa4d43fe8c4" config-ref="VM_Config" queueName="flow2"/>

    <http:request method="GET" doc:name="Request" doc:id="e3c1d3ea-a434-4a6a-81c3-e5e1333c2b54" />

    </flow>

    Regards,

    Abhishek Bathwal

0/9000