Skip to main content

FlowDepartment

Represents a workflow step for managing department-related operations.

Properties

NameDescription
CaptionThe caption dictionary representing localized captions for the flow object.
IdGets or sets the ID of the department.
ValueTypeGets or sets the type of the department value.
ValueOptionIsChangedIndicates whether the value option has been changed.
KeyA unique identifier for the workflow step.
CodeGets or sets the code of the department.
NameName for the workflow step.
DescriptionGets or sets the description of the department.
WorkflowCodeInstanceThe workflow code instance associated with the flow object.
CachedDMObjectsThe cached document management objects related to the flow object.
TypeCodeThe type code associated with the flow object.

Constructors

NameDescription
FlowDepartment(name, workflowData, workflowCodeInstance)Constructor for the FlowDepartment class. Initializes a new instance of the FlowDepartment class.
FlowDepartment(name, workflowData, workflowCodeInstance)Initializes a new instance of the FlowDepartment class.

Methods

NameDescription
SetConstantDepartment(id)Sets the department as a constant using its ID.
SetConstantDepartment(department)Sets the department as a constant using a department object.
SetManagerDepartment(sourceDepartment)Sets the manager department based on a source department.
SetFromVariable(sourceVariable)Sets the department based on a variable.
SetFromOther(sourceDepartment)Sets the department from another department object.
SetFromFlowInitiator()Sets the department based on the flow initiator.
SetFromPosition(sourcePosition)Sets the department based on a position.
Initialize()Initializes the FlowDepartment instance.
ToLiquid()Converts the current object to a liquid-compatible representation.

Events

NameDescription
OnAfterExecution(sender, args)Occurs after the execution of the workflow step.
OnBeforeExecution(sender, args)Occurs before the execution of the workflow step.