API Reference > ui-framework > WorkflowTask > WorkflowManager WorkflowManager Class Workflow Manager class. Methods Name Description constructor(): WorkflowManager addWorkflow(workflowId: string, workflow: Workflow): void Static Adds a Workflow. findWorkflow(workflowId: string): undefined | Workflow 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: undefined | Workflow): 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 undefined | Task Gets the active Task activeTaskId Accessor StaticReadOnly string Gets the active Task id activeWorkflow Accessor StaticReadOnly undefined | Workflow 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 StaticReadonly TaskActivatedEvent Get Task Activated event. onWorkflowActivatedEvent StaticReadonly WorkflowActivatedEvent Get Workflow Activated event. Defined in ui/framework/src/ui-framework/workflow/Workflow.tsx Line 173 Last Updated: 12 June, 2024