You are viewing limited content. For full access, please sign in.

Question

Question

Workflow Try Catch

asked on July 30, 2017

Hi,

I have implemented a sub process to kick-in if an error occurs with the help of a try-catch mechanism. My workflow starts a sub-process, creates an entry and waits for someone in IT to resolve the issue and change metadata of the entry in order to proceed.

Is it possible to start the Try Branch again at this point? currently I'm repeating the same activities but there are steps in the workflow where data generated from the original step is used. I could use tokens but it just adds extra steps and I'd like to avoid.

Does anyone know a way to execute a step, if fails, perform catch steps and try the original step again?

Please advice if there is a better way to handle a scenario such as this.

 

0 0

Answer

SELECTED ANSWER
replied on July 31, 2017 Show version history

Hi Adarsh,

I'm wondering if you can accomplish your goal by inserting the "Try/Catch" activity in a "For Each Value" loop? Something like this:

This will require some finessing, but the idea is: check the metadata value the department is supposed to change when the issue is resolved. If it's been updated, continue the workflow. If not, repeat Try/Catch until it is. You will need to setup the Conditional Decision to check the appropriate token--either the metadata value on the entry itself, or the "Update DBID" token(s) (I'm unclear on which).

You can add Delay activities, etc., to limit the number of times the loop runs, or how frequently it runs.

~Rob

0 0
replied on August 2, 2017

Hi Rob,

Thanks for your response. That's probably the only way to configure it. Unfortunately its a lot of laborious, repetitive work. I wish LF would include a feature in the framework itself to go back a step and retry.

Thanks,

Adarsh

1 0
replied on August 3, 2017

No problem--I agree that it's a lot of work. Maybe you could make a feature request? TPTB are pretty receptive in my experience!

1 0

Replies

replied on July 31, 2017

Can you use the Rethrow activity?  The description of the rethrow sounds like what you are asking for.

 

 

Rethrow.jpg
Rethrow.jpg (23.85 KB)
0 0
replied on August 2, 2017

Hi Jennifer,

I tried it, just terminates the workflow. I thought the same at first.

Thanks,

Adarsh

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.