PublicAPI.Processes.WorkflowTaskBase.GetActiveTasks ELMA API Documentation
Get all the active tasks on the process instance
 
 
Syntax

public IEnumerable<TaskBase> GetActiveTasks(
	WorkflowInstance instance,
	bool allowSubInstances
)

Parameters

instance
Type: WorkflowInstance
Process instance. Object. Access path: PublicAPI.Processes.WorkflowInstance
allowSubInstances
Type: System Boolean
Whether to select tasks from subprocesses

Return Value

Type: IEnumerable TaskBase 
Active tasks collection
Examples

//load the process by ID 
var instance = PublicAPI.Processes.WorkflowInstance.Load(3);
//whether to select tasks from the subprocesses (yes or no) 
var allowSubInstances = false;

//get all the active tasks 
var activeTaskList = PublicAPI.Processes.WorkflowTaskBase.GetActiveTasks(instance, allowSubInstances);

//activeTaskList - list of the process active tasks
See Also