Ant Organisation Ltd documentation

WorkflowTasks.CreateTask Method (AntConnection, AntTransaction, ActivityInstance, String, String, DateTime, WorkflowTaskType, TaskPriority, User)

Creates a new task for a user

public WorkflowTask CreateTask(
   AntConnection connection,
   AntTransaction transaction,
   ActivityInstance activityInstance,
   string shortDesc,
   string longDesc,
   DateTime dateNeeded,
   WorkflowTaskType type,
   TaskPriority priority,
   User ownedBy
);

Parameters

connection
Connection to the database
transaction
Transaction on the connection
activityInstance
Activity instance that this task is linked to
shortDesc
Short description of the task
longDesc
Long description of the task
dateNeeded
Date that the task is needed by
type
Type of the task
priority
Priority of the task
ownedBy
User who owns the task

Return Value

Task that has been created

See Also

WorkflowTasks Class | Ant.Workflow.Tasks Namespace | WorkflowTasks.CreateTask Overload List