Skip to main content

FlowScript

Represents a workflow step for executing custom scripts with error management options.

Properties

NameDescription
CaptionThe caption dictionary representing localized captions for the flow object.
ResumeOnErrorIndicates whether the script execution should continue in case of an error. (Marked as obsolete)
KeyA unique identifier for the workflow step.
NameName for the workflow step.
ValueThe value or output generated by the script.
ErrorDescriptionObjectNameThe name of the object used to store error descriptions. (Marked as obsolete)
WorkflowCodeInstanceThe workflow code instance associated with the flow object.
ErrorOptionsDefines error-related options for the API step.
CachedDMObjectsThe cached document management objects related to the flow object.
TypeCodeThe type code associated with the flow object.

Constructors

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

Methods

NameDescription
Initialize()Initializes the script step with default settings.
ToLiquid()Converts the script data into a format compatible with Liquid templates.

Events

NameDescription
OnAfterExecution(sender, args)Occurs after the execution of the workflow step.
Execute(sender, args)Occurs during the execution of the FlowScript step, triggering whenever an execution-related event occurs.
OnBeforeExecution(sender, args)Occurs before the execution of the workflow step.