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

public void ReAssign(
	long taskId,
	User newExecutor,
	DateTime startDate,
	DateTime endDate,
	TaskPriority priority,
	string comment
)

Parameters

taskId
Type: System Int64
ID of the task for reassigning
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
Priority. Enumeration. Access path: PublicAPI.Enums.Tasks.TaskPriority
comment
Type: System String
Comment
Remarks

How to find objects IDs
Examples

//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.Portal.TaskBase.Task.ReAssign(taskId, newExecutor, startDate, endDate, priority, comment);
See Also