Methods / Methods for Process Instances |
Rolls a process instance back to a previous specified activity, or skips a specified activity if has not yet been completed. When this method is invoked, the current or skipped activity becomes canceled. When skipping, the process moves forward regardless of the activity's status.
Name | Type | Description |
---|---|---|
activityInstanceID | string | A string that contains the ID for an activity instance. |
WFEvent object that provides the status of the transaction. Possible statuses are Success, Failed, and Sent.
//This is console application sample IWFWorkflowService svc = GetWorkflowService(); string activityInstanceID = ..// target activity instance to roll back try { WFEvent evt = workflowService.RollbackProcInst(activityInstanceID); } catch (Exception ex) { Console.WriteLine("Failed! " + ShUtil.GetSoapMessage(ex)); }