PublicAPI.Processes.WorkflowTaskBase.ReAssign ELMA API Documentation
Reassign the task
 
 
Syntax

public void ReAssign(
	TaskBase task,
	User newExecutor,
	DateTime startDate,
	DateTime endDate,
	TaskPriority priority,
	string comment
)

Parameters

task
Type: TaskBase
Task to reassign. Object. Access path: PublicAPI.Processes.WorkflowTaskBase
newExecutor
Type: User
New executor. Object. Access path: PublicAPI.Portal.Security.User
startDate
Type: System DateTime
Start date
endDate
Type: System DateTime
End date
priority
Type: TaskPriority
Task priority. Enumeration. Access path: PublicAPI.Enums.Tasks.TaskPriority
comment
Type: System String
Comment
Examples

//load the task by ID 
var task = PublicAPI.Processes.WorkflowTask.Load(3);
//load the user by ID 
var newExecutor = PublicAPI.Portal.Security.User.Load(3);
//get the "Regular" task priority 
var priority = PublicAPI.Enums.Tasks.TaskPriority.Meduim;
//task start date 
var startDate = DateTime.Now;
//task end date 
var endDate = DateTime.Now.AddDays(5);
//added comment 
var comment = "Comment";

//reassign the task
PublicAPI.Processes.WorkflowTaskBase.ReAssign(task, newExecutor, startDate, endDate, priority, comment);
See Also