Methods / Methods for Activity Instances |
Rolls back a manual activity instance to the token position EN – that is, the state where the activity is entered. All work items associated with the manual activity instance with the status of NEW, OVERDUE, or ASSIGNED are canceled.
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 = … try { //Rollbacking the activity instance WFEvent evt = svc.RollbackActivityInst(activityInstanceID); } catch (Exception ex) { Console.WriteLine("Failed! " + ShUtil.GetSoapMessage(ex)); }