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
| Field | Type | Column | Nullable | Description |
|---|---|---|---|---|
id | BigAutoField | id | No | — |
datetime_created | DateTimeField | datetime_created | No | — |
datetime_updated | DateTimeField | datetime_updated | No | — |
created_by | UserField to bloomerp.User | created_by_id | Yes | — |
updated_by | UserField to bloomerp.User | updated_by_id | Yes | — |
name | CharField | name | No | The name of the workflow. |
run_asynchronously | BooleanField | run_asynchronously | No | Whether runs asynchronously |
active | BooleanField | active | No | Whether the workflow is active or not |
enable_logging | BooleanField | enable_logging | No | Whether to enable logging for this workflow. Disabling logging may improve performance but will result in no detailed execution history being stored. |
notify_on_completion | BooleanField | notify_on_completion | No | Send the workflow creator an inbox notification when a run succeeds or fails. |
WorkflowNode
bloomerp.models.automation.workflow_node.WorkflowNode
Database table bloomerp_workflow_node
| Field | Type | Column | Nullable | Description |
|---|---|---|---|---|
id | BigAutoField | id | No | — |
datetime_created | DateTimeField | datetime_created | No | — |
datetime_updated | DateTimeField | datetime_updated | No | — |
created_by | UserField to bloomerp.User | created_by_id | Yes | — |
updated_by | UserField to bloomerp.User | updated_by_id | Yes | — |
name | CharField | name | Yes | The name of the workflow node. |
workflow | ForeignKey to bloomerp.Workflow | workflow_id | No | — |
type | CharField | type | No | The type of the workflow node. |
sub_type | CharField | sub_type | No | The registered subtype of the workflow node. |
parameters | JSONField | parameters | No | The parameters for the workflow node. |
pos_x | IntegerField | pos_x | No | The X position of the node in the workflow editor. |
pos_y | IntegerField | pos_y | No | The Y position of the node in the workflow editor. |
WorkflowRun
bloomerp.models.automation.workflow_run.WorkflowRun
Database table bloomerp_workflow_run
| Field | Type | Column | Nullable | Description |
|---|---|---|---|---|
id | BigAutoField | id | No | — |
datetime_created | DateTimeField | datetime_created | No | — |
datetime_updated | DateTimeField | datetime_updated | No | — |
workflow | ForeignKey to bloomerp.Workflow | workflow_id | No | The workflow associated with this run. |
status | CharField | status | No | — |
started_at | DateTimeField | started_at | Yes | — |
finished_at | DateTimeField | finished_at | Yes | — |
start_node | ForeignKey to bloomerp.WorkflowNode | start_node_id | Yes | — |
WorkflowRunStep
bloomerp.models.automation.workflow_run_step.WorkflowRunStep
Database table bloomerp_workflow_run_step
| Field | Type | Column | Nullable | Description |
|---|---|---|---|---|
id | BigAutoField | id | No | — |
datetime_created | DateTimeField | datetime_created | No | — |
datetime_updated | DateTimeField | datetime_updated | No | — |
workflow_run | ForeignKey to bloomerp.WorkflowRun | workflow_run_id | No | The workflow run that this step belongs to. |
sequence | PositiveIntegerField | sequence | No | The sequence number of this step within the workflow run. |
action_id | CharField | action_id | No | The identifier of the action being executed in this step. |
status | CharField | status | No | The status of this workflow run step. |
state | JSONField | state | Yes | Serializable workflow execution state captured after this step. |
output_file | FileField | output_file | Yes | Serialized output produced by this workflow node execution. |
node | ForeignKey to bloomerp.WorkflowNode | node_id | Yes | Reference to node object |
