WorkflowManager Class

Workflow Manager class.

Methods

Name Description
addWorkflow(workflowId: string, workflow: Workflow): void Static Adds a Workflow.  
findWorkflow(workflowId: string): Workflow | undefined Static Finds a Workflow with a given Id.  
getSortedWorkflows(): Workflow[] Static    
loadWorkflow(workflowProps: WorkflowProps): void Static Loads a Workflow.  
loadWorkflows(workflowPropsList: WorkflowPropsList): void Static Loads one or more Workflows.  
removeWorkflow(workflow: Workflow): boolean Static Removes a Workflow  
setActiveWorkflow(workflow: Workflow | undefined): void Static Sets the active Workflow  
setActiveWorkflowAndTask(workflow: Workflow, task: Task): Promise<void> Static Sets the active Workflow and Task  
setDefaultWorkflowId(id: string): void Static Sets the Id of the default Workflow  

Properties

Name Type Description
activeTask Accessor StaticReadOnly Task | undefined Gets the active Task  
activeTaskId Accessor StaticReadOnly string Gets the active Task id  
activeWorkflow Accessor StaticReadOnly Workflow | undefined Gets the active Workflow  
activeWorkflowId Accessor StaticReadOnly string Gets the active Workflow id  
defaultWorkflowId Accessor StaticReadOnly string Gets the Id of the default Workflow  
onTaskActivatedEvent Static TaskActivatedEvent Get Task Activated event.  
onWorkflowActivatedEvent Static WorkflowActivatedEvent Get Workflow Activated event.  

Defined in

Last Updated: 20 September, 2019