BloomERP

Automation models

Column and nullable values apply to fields stored on the model's table.

Workflow

bloomerp.models.automation.workflow.Workflow

A workflow is a model for automation. Each workflow can have differnent nodes.

Database table bloomerp_workflow

FieldTypeColumnNullableDescription
idBigAutoFieldidNo—
datetime_createdDateTimeFielddatetime_createdNo—
datetime_updatedDateTimeFielddatetime_updatedNo—
created_byUserField to bloomerp.Usercreated_by_idYes—
updated_byUserField to bloomerp.Userupdated_by_idYes—
nameCharFieldnameNoThe name of the workflow.
run_asynchronouslyBooleanFieldrun_asynchronouslyNoWhether runs asynchronously
activeBooleanFieldactiveNoWhether the workflow is active or not
enable_loggingBooleanFieldenable_loggingNoWhether to enable logging for this workflow. Disabling logging may improve performance but will result in no detailed execution history being stored.
notify_on_completionBooleanFieldnotify_on_completionNoSend the workflow creator an inbox notification when a run succeeds or fails.

WorkflowNode

bloomerp.models.automation.workflow_node.WorkflowNode

Database table bloomerp_workflow_node

FieldTypeColumnNullableDescription
idBigAutoFieldidNo—
datetime_createdDateTimeFielddatetime_createdNo—
datetime_updatedDateTimeFielddatetime_updatedNo—
created_byUserField to bloomerp.Usercreated_by_idYes—
updated_byUserField to bloomerp.Userupdated_by_idYes—
nameCharFieldnameYesThe name of the workflow node.
workflowForeignKey to bloomerp.Workflowworkflow_idNo—
typeCharFieldtypeNoThe type of the workflow node.
sub_typeCharFieldsub_typeNoThe registered subtype of the workflow node.
parametersJSONFieldparametersNoThe parameters for the workflow node.
pos_xIntegerFieldpos_xNoThe X position of the node in the workflow editor.
pos_yIntegerFieldpos_yNoThe Y position of the node in the workflow editor.

WorkflowRun

bloomerp.models.automation.workflow_run.WorkflowRun

Database table bloomerp_workflow_run

FieldTypeColumnNullableDescription
idBigAutoFieldidNo—
datetime_createdDateTimeFielddatetime_createdNo—
datetime_updatedDateTimeFielddatetime_updatedNo—
workflowForeignKey to bloomerp.Workflowworkflow_idNoThe workflow associated with this run.
statusCharFieldstatusNo—
started_atDateTimeFieldstarted_atYes—
finished_atDateTimeFieldfinished_atYes—
start_nodeForeignKey to bloomerp.WorkflowNodestart_node_idYes—

WorkflowRunStep

bloomerp.models.automation.workflow_run_step.WorkflowRunStep

Database table bloomerp_workflow_run_step

FieldTypeColumnNullableDescription
idBigAutoFieldidNo—
datetime_createdDateTimeFielddatetime_createdNo—
datetime_updatedDateTimeFielddatetime_updatedNo—
workflow_runForeignKey to bloomerp.WorkflowRunworkflow_run_idNoThe workflow run that this step belongs to.
sequencePositiveIntegerFieldsequenceNoThe sequence number of this step within the workflow run.
action_idCharFieldaction_idNoThe identifier of the action being executed in this step.
statusCharFieldstatusNoThe status of this workflow run step.
stateJSONFieldstateYesSerializable workflow execution state captured after this step.
output_fileFileFieldoutput_fileYesSerialized output produced by this workflow node execution.
nodeForeignKey to bloomerp.WorkflowNodenode_idYesReference to node object