UserTask

Parent Previous Next

The UserTask object provides general information about the current User task.

The UserTask object can be accessed using the RegisterCallback function of the ProcessInstance object.



Syntax

       public class UserTask


Access via the RegisterCallback function of the ProcessInstance object:

Members

Guid GuId

The unique identifier of the task

int FormId

The Id of the form that is assigned to the task

ReadOnlyCollection<User> Participants

The participants in the user task

UserTaskPriority InitialTaskPriority

No usable result


Direct access via the UserTask object:

Members

Guid GuId

No usable result

int FormId

No usable result

ReadOnlyCollection<User> Participants

No usable result

UserTaskPriority InitialTaskPriority

The priority the task has when generated. Default: None



Syntax

       public enum UserTaskPriority


Members

None = -1

The user task has no priority

VeryLow = -2

The user task has a very low priority

Low = -3

The user task has a low priority

Medium = -4

The user task has a medium priority

High = -5

The user task has a high priority

VeryHigh = -6

The user task has a very high priority



Sample

This sample sets the initial task priority to low.


UserTask.InitialTaskPriority = UserTask.Priority.Low