Skip to main content
bhushanc391326
February 15, 2021
Question

Looping back to failed script task calling integration in process models

  • February 15, 2021
  • 5 replies
  • 0 views

We have a script task that calls a rule within which we make a few calls to some integrations and then process the returned data and save into a PV and then the flow continue further.
now the problem is the API catering us with the data is not a stable one and fails sometimes causing the script task to fail. I want to implement a loop around in the process model where I should be able to loop back to the script task and retry executing. how do we approach this problem. I want to reduce human intervention here as much as possible.

5 replies

February 15, 2021

Few questions just to get context on your issue:

  • What Appian version are you using?
  • Is there a reason why you are using script task instead of Call Integration Smart Service?
  • When you say script task fails, do you mean it becomes Paused by exception?
peter.lewis
Employee
February 15, 2021

I agree -  I usually prefer to use the Call Integration smart service because it has a native output for saving the success / failure of the integration. Then, you can save the results of the success / failure and potentially loop back around to retry it.