PublicAPI.Processes.WorkflowProcess.ChangeSwimlaneExecutor ELMA API Documentation
Change the swimlane responsible
 
 
Syntax

public void ChangeSwimlaneExecutor(
	WorkflowInstance instance,
	SwimlaneElement swimlaneElement,
	User newExecutor
)

Parameters

instance
Type: WorkflowInstance
Process instance. Object. Access path: PublicAPI.Processes.WorkflowInstance
swimlaneElement
Type: SwimlaneElement
Swimlane
newExecutor
Type: User
New executor. Object. Access path: PublicAPI.Portal.Security.User
Examples

//load the process instance by ID 
var instance = PublicAPI.Processes.WorkflowInstance.Load(3);
//get the swimlane 
var swimlaneElement = instance.Process.Diagram.Elements.OfType<SwimlaneElement>().FirstOrDefault();
//load the user by ID 
var newExecutor = PublicAPI.Portal.Security.User.Load(3);

//change the swimlane responsible
PublicAPI.Processes.WorkflowProcess.ChangeSwimlaneExecutor(instance, swimlaneElement, newExecutor);
See Also