public User GetSwimlaneExecutor( WorkflowInstance instance, SwimlaneElement element )
Get the swimlane executor
Syntax
public User GetSwimlaneExecutor( WorkflowInstance instance, SwimlaneElement element )
Parameters
- instance
- Type: WorkflowInstance
Process instance. Object. Access path: PublicAPI.Processes.WorkflowInstance
- element
- Type: SwimlaneElement
Swimlane
Return Value
Type: UserSwimlane executor
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(); //get the swimlane executor var user = PublicAPI.Processes.WorkflowProcess.GetSwimlaneExecutor(instance, swimlaneElement); //user - obtained user
See Also