REFramework - proceed with next WF after failed one

Hi.

I am using REFramework for running a workflow.
In a Process there are many different workflows running independently one after another, eg.:
Workflow A
Workflow B
Workflow C
Workflow D
Workflow E

For example, if Workflow B suddenly fails (BusinessException), then Main is restarted and workflows C, D, E never get executed until the error in workflow B is removed.

Any suggestions of how to proceed to workflows C, D and E even if workflow B fails?

Thx and kind regards,
Vanja

@VanjaV,

Quick fix would be putting Invoke Workflow B logic in Try catch. In case of exception in B it will be cached and the remaining logic will get executed without any error.

Hi @ashokkarale

the Workflow B is already in TryCatch.
In case of BusinessException it throws error and restarts with Initialization.
As designed by REFramework.

@VanjaV,

Are you rethrowing the exception from catch?

Initialize a dictionary in Main, which will have your workflow name and status like success, fail.
If status is empty then it’s running first time, I
if status is success then it’s a loop from biz. exception and you can skip it,
if status is fail again you can skip this workflow.

1 Like

Hi @adi.mehare

This sounds interesting. :slight_smile:

Can you please describe it more precise? Maybe some screenshots?
“Initialize a dictionary in Main, which will have your workflow name and status like success, fail.”

@VanjaV

what is your transactionitem?

ideally you can pass the workflow name or counter to know what to run…that way even if somethign fails it continues to next…also in REF when busexception occurs it goes to get transaction and not initialize…for sysexception it would go to initialize…but in either cases if you control usign transaction item it would not effect the execution

or if you are runnign them in sequence in process directly then simply create a global avriable and assign the next workflow name…so if previous fails and whne it comes to execution by checking anme we can run from there…

but better to control based on trasactionitem itself

cheers

1 Like

Hi @Anil_G

Each workflow is using different queues.

@VanjaV

how did you configure?

then use queue name as extra argument or transactionitem to know which flow to run

cheers

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.