Setting next activity to a previously executed activity programmatically. #1288
Unanswered
eldhosekpaul18
asked this question in
Q&A
Replies: 1 comment
-
|
Although there's no official API exposing such an operation, you can easily do it by manipulating the workflow instance. All you would have to do is update For example: var workflowInstance = _workflowInstanceStore.GetByIdAsync(...);
workflowInstance.BlockingActivities.Clear();
var adminApprovalActivityId = workflowInstance.Activities.Values.First(x => x.ActivityType == "AdminApproval").Id;
workflowInstance.BlockingActivities.Add(new BlockingActivity { ActivityType = "AdminApproval", ActivityId = adminApprovalActivityId }); |
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.
-
Is there a way to set the workflow which is blocked in a user task activity to discard the current blocking activity and start from a previously executed activity?
For example, In the above image, I need to set a workflow instance that is been blocked at Accounts Approval Activity (Waiting for approval or reject user action) to any of the previously executed activity (Admin or Manager Approval) programmatically without triggering a user action at Accounts Approval Activity. The workflow instance needs to stop waiting for Accounts approval user action(Clear the accounts approval blocking activity) and starts from newly set activity.
Beta Was this translation helpful? Give feedback.
All reactions