Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.
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 7

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

6 Replies

Avatar

Correct answer by
Level 7

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

 

Avatar

Community Advisor

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

Avatar

Level 2

Hello @Sven-iX ,

 

I added retry logic for handling 504 errors with a break set for 3 retries, but the break step is only executing once instead of running all three retries.

SamyukthaPa_0-1756402373010.png

 

Could you please provide any suggestions here.

 

Thanks in Advance!

 

Avatar

Level 7

Try setting the number of retries higher. My excel modules use this break logic and I have them set to 5 times at 1 minute intervals and they never fail anymore.

Avatar

Level 2

Hello @Lawson02 

Thanks for quick response!

I tried with 5 still same. Could you please share screenshot of your flow if possible ?

 

Avatar

Level 2

@Lawson02 My bad! it was running fine but I'm not checking in Incomplete executions