Skip to main content

FlowProfession

Represents a workflow profession step in the system, encapsulating properties and methods for managing profession-related logic.

Properties

NameDescription
IdThe unique identifier of the profession.
KeyA unique identifier for the workflow step.
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.
ValueTypeIndicates the type of the profession, such as constant or initiator.
DescriptionA descriptive name or details about the profession.
NameName for the workflow step.
ValueOptionIsChangedSpecifies if the profession's value option has been modified.
CaptionThe caption dictionary representing localized captions for the flow object.
CodeThe code associated with the profession, typically representing a unique value.

Constructors

NameDescription
FlowProfession(name, workflowData, workflowCodeInstance)Constructor for the FlowProfession class. Initializes a new instance of the FlowProfession class.
FlowProfession(name, workflowData, workflowCodeInstance)Initializes a new instance of the FlowProfession class with a name, workflow data, and workflow code instance.

Methods

NameDescription
SetFromVariable(sourceVariable)Sets the current profession using data from a Variable object.
SetFromPosition(sourcePosition)Sets the current profession based on a FlowPosition instance.
SetConstantProfession(id, code, description)Assigns a constant profession using its ID, code, and description.
Initialize()Initializes the profession step with default settings.
SetConstantProfession(id)Assigns a constant profession to the workflow step using a profession ID.
SetFromFlowInitiator()Sets the profession based on the flow initiator.
SetConstantProfession(profession)Assigns a constant profession to the workflow step using a profession object.
SetFromOther(sourceProfession)Sets the current profession based on another FlowProfession instance.
ToLiquid()Converts the profession data into a format compatible with Liquid templates.

Events

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

Generic Types

NameDescription
TPropertiesGeneric type of properties.