Expand my Community achievements bar.

SOLVED

How to appy a wait/retry on fusion scenario till a HTTP API module returns a complete status

Avatar

Level 2

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

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 5

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.

Lawson02_0-1738788261043.png

Add Empty Array.

Lawson02_1-1738788319506.png

Set breakLoop to True

Lawson02_2-1738788465118.png

 

View solution in original post

1 Reply

Avatar

Correct answer by
Level 5

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.

Lawson02_0-1738788261043.png

Add Empty Array.

Lawson02_1-1738788319506.png

Set breakLoop to True

Lawson02_2-1738788465118.png