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?
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.
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.
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.”
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