PAD/Playbook: Is it possible to re-run an activity?

Martin Brochu
Tera Guru

Hi all,

I have a custom activity in PAD whose Flow is triggering a REST call. If the REST call fails (as example the MID server is down), the activity informs the user that an error happened.

In that scenario, I would like to be able to re-run the activity once an admin has restarted the MID server and the remaining activities in the process would then continue normally.

Is it possible to create a custom Playbook action that would do that? I already try to add the builtin Restart button but it only sets the Experience Status record state to In progress.

If it is not possible, how would you deal with that kind of scenario (Resume the execution of a process once an error condition is manually fixed)?

Thanks for the help!

1 REPLY 1

Martin Brochu
Tera Guru

I figured it out:

I added a "Do the following until" loop in the underlying Flow of my custom activity. In that loop, the REST call is executed. If it fails, the FlowDataRecord's state is set to SKIPPED (I tried ERROR but cannot add any error message in the description's card in that state) and if it succeeds, the state is set to COMPLETE.

After that, before looping, there's a Wait for Condition, for the state to be COMPLETE or READY. On the card, I have an Action button that sets the state to READY, so an agent can click it once he has fixed the error conditions encountered in the REST call. 

The loop condition to exit is when the state is COMPLETE.

Maybe that will help someone!