Stopping the progress of a running workflow #90
Closed
MaheshkumarSundaram
started this conversation in
General
Replies: 2 comments 1 reply
-
Yes, there are several ways to do this, the simplest way is to use conditional flow: The service will have a try/catch and sets the item.data.ErrorCode to either 'Auto','Manual' or 'Abort' Another option is to use Error Event or Escalate Event |
Beta Was this translation helpful? Give feedback.
1 reply
-
Yes, but you have to set the value Sent from my iPhoneOn May 25, 2023, at 3:16 AM, Maheshkumar Sundaram ***@***.***> wrote:
Hi @ralphhanna,
Thank you for your example. These error codes would work for all the tasks right not just service tasks?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @ralphhanna,
Are the below use cases achieveable?
Scenario 1:
Say, I have a service task named
DoSomeService
which would be configured in theappDelegate.ts
. Now, during the processing of that service; an exception or an error occurs (a failure). Therefore, I don't want the workflow to progress from that point of failure. How do I stop the progress of the workflow programatically?Scenario 2:
Say a scenario 1 occurs. Now someone fixes the problem manually. Now, would we able to retrigger the failed task
DoSomeService
to execute again and progress the workflow normally?Scenario 3:
Provided the above scenarios can be achieved progromatically especially for service tasks, could we do the same things for other tasks?
This also closely aligns with a discussion we had previously (we didn't reach any definite conclusion with that yet)
Could you please give some clarifications on this? Thank you!
Beta Was this translation helpful? Give feedback.
All reactions