ProcessInstanceCallbackType

public enum ProcessInstanceCallbackType

 Enum

None

0
Unspecified

UserTaskStarted

1
Indicates that a user task has been started

UserTaskFinished

2
Indicates that a user task has been finished

UserTaskAccepted

3
Indicates that a user task has been accepted

ProcessInstanceFinished

4
Indicates that the process instance has been finished

RolesChanged

5
Indicates that the roles of the process instance have been modified

TaskFinished

6
Indicates that a task has been finished

SubProcessStarted

7
Indicates that the sub process has been started

ProcessInstancePreDelete

8
Indicates that the process instance is about to be deleted

Callback method parameters

The method for the callback must have a parameter. This parameter represents an array that enables access to objects depending on the callback type.

Callback type Parameter array

UserTaskStarted

[Token, UserTask]

UserTaskFinished

[Token, UserTask, User]

UserTaskAccepted

[UserTask, User]

ProcessInstanceFinished

[ProcessInstance]

RolesChanged

[ProcessInstance, string modifiedRoleName]

TaskFinished

[Token]

SubProcessStarted

[Token, ProcessInstance]

ProcessInstancePreDelete

[ProcessInstance, Workflow, User]