I have a Fusion Scenario where the 1st module I invoke a HTTP Rest API.
The API has a property named "status" - that can take either of the 2 values below
1. Processing
2. Complete
I would like my scenario process further *only if* the status is complete. If the status
is in processing state - The scenario should wait and retry after 60 seconds.
Can anyone suggest me the ways to achieve this ?
Thanks
Harish
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
I have created an outline for you to follow and insert your information as needed.
1. Set variable "breakLoop" to "False"
2. Create Blank Array in Iterator, number of values is number of retries
3. Get variable "breakLoop"
3.5. Filter bundles with breakLoop == True
4. HTTP Request
5. Router between request == success (do stuff, bottom path) and request == bad (sleep, top path, fallback route)
6. If success, set "breakLoop" to True
Outline.
Add Empty Array.
Set breakLoop to True
I have created an outline for you to follow and insert your information as needed.
1. Set variable "breakLoop" to "False"
2. Create Blank Array in Iterator, number of values is number of retries
3. Get variable "breakLoop"
3.5. Filter bundles with breakLoop == True
4. HTTP Request
5. Router between request == success (do stuff, bottom path) and request == bad (sleep, top path, fallback route)
6. If success, set "breakLoop" to True
Outline.
Add Empty Array.
Set breakLoop to True
A thought: You don't need to create an array and iterate, I think; you could use a Repeater module and set its "repetitions" to 10 or 15.
Of course if the API sends a stats code other than 200 you can use the Break error handler to retry that step after # seconds N times