PublicAPI.Processes.WorkflowTaskBase.SwapTask ELMA API Documentation
Reassign all the tasks from one user to another
 
 
Syntax

public void SwapTask(
	User oldExecutor,
	User newExecutor
)

Parameters

oldExecutor
Type: User
Old task executor. Object. Access path: PublicAPI.Portal.Security.User
newExecutor
Type: User
New task executor. Object. Access path: PublicAPI.Portal.Security.User
Examples

//load the user by ID 
var oldExecutor = PublicAPI.Portal.Security.User.Load(3);
//load the user by ID 
var newExecutor = PublicAPI.Portal.Security.User.Load(4);

//reassign all the tasks
PublicAPI.Processes.WorkflowTaskBase.SwapTask(oldExecutor, newExecutor);
See Also