Flow Designer | Resume a failed Flow

gabriel_sk
Tera Contributor

Hello guys,

Do you know if exist any solution or workaround to resume or re-process a failed flow instance (flow return "error")?

It may happen that a flow fails due to an unexpected value or situation and as I can see in such cases there is not really a way of fixing that specific failed flow instance, so only way is to start from scratch, which in case of a Service Catalog item, it would mean create a new request.

We thought about the possibility of re-run the failed request using the TEST button but it is not ideal.

Thanks!

4 REPLIES 4

Muralidharan BS
Mega Sage
Mega Sage

Hi Gabriel.sk,

There is possible way to restart a flow from a specific point in execution (like error flow). But you can use flow API to trigger it,

var ritm = new GlideRecord("sc_req_item");
ritm.get("da60e53ddbe958907f887d8039961966"); //sys_id of the affected RITM
sn_flow_trigger.FlowTriggerAPI.fireCatalogTrigger('global.name_of_the_form', ritm);

 

If there are too many you can go for a query and pass the sysid to trigger the flow. 

Hi Gabriel, 

Did you get any chance to try the above script? 

Thanks

I just tried this as we have an instance where we need to restart a flow.  I ran it as a background script and it did not work.  No errors in the logs or when running the script, it just ran but didn't start a new flow.