wfm.AdminRollbackProcess

This job resets a process to the specified activity and returns all activities of the process that would be deleted thereby. The rollback point at the activity itself is determined via the ExecutionPoint parameter. You can rollback to an activity before it is created or before it is finished. Before a process can be rolled back, it must be suspended via the job wfm.AdminSuspendProcess.

1. Input Parameters

Name Type Required Description

RActivityId

STRING

Yes

Instance ID of the activity to which the process should be reset

ExecutionPoint

INT

Yes

Starting point at the activity: 100 = activity is created, 200 = activity is finished

DoRollback

INT

Yes

0 = rollback is not performed (simulation); 1 = process is reset. RunningActivities is filled for both options.

2. Output Parameters

Name Type Dependency Description

RunningActivities

BASE64

Contains all activities that would be deleted after rollback (DoRollback = 1) or would be deleted (DoRollback = 0)

3. Return Value

(INT): 0 = Job successful, otherwise error code.

4. Example

Structure of RunningActivities:

<RunningActivities>
  <RunningActivity Id="" RActivityId="" Name="" State="" CreationTime=""/>
  <RunningActivity Id="" RActivityId="" Name="" State="" CreationTime=""/>
</RunningActivities>

Detailed description of RunningActivity attributes:

  • Id (STRING): ID of the activity from the workflow model

  • RActivityId (STRING): Instance ID of the activity

  • Name (STRING): Name of the activity

  • State (INT): Status of the activity

  • CreationTime (INT): Creation time of the activity (timestamp)