2024 Dec 16 12:32 PM - edited 2024 Dec 16 12:32 PM
Hello.
I have a requirement to set an overall timeout or deadline for an integration flow that it is expected to run for a long time until a required entry is found in a datastore. The entry is expected at certain time of the day but it can be delayed for several reasons. If the deadline is reached, the processing has to stop and the message has to end in error.
Has anyone faced a similar challenge? If so, how can this be achieved?
I searched thoughout the community but haven't found anything useful. Maybe my searching criteria was poor.
I thought about encapsulating the main functionality in a looping local process, with a groovy that waits a little time, lets say 30 seconds, before let a datastore-get, look for the entry; then set the looping process max iterations dynamically with a property that has the calculation 'deadline-time-in-seconds' divided by 'waiting-time-by-the-groovy' (for example, if the dealine is 1 hour, then the property would be 3600/30 = 120 iterations) and let the loop end in error if the max iterations is reached. The condition expression would be initially false and switched to true if the entry is found in the datastore. Would this be okay?
Thanks in advance for any insight on this matter.
Thanks
Request clarification before answering.
Unfortunately, there is no functionality out of the box to achieve what you seek. As you described, any solution will need to be a combination of scripts so you can achieve it with code and loops until you find the correct condition.
I want to share some guidelines because I have been in a similar situation where iFlows have been running for some time (more than an hour), and in those cases, I reached out to product support (support.sap.com) because it was not working as I expected.
I hope this helps you.
Best regards 🖖🏻
Ricardo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 18 | |
| 7 | |
| 6 | |
| 6 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.