Operation
Overview
The Operation
entity represents a specific action or task that can be performed within the MES system. Each operation is defined with
key attributes include duration settings, triggers for starting and stopping, and strategies for managing execution and conflicts.
These fields collectively enable precise planning, execution, and tracking of operations.
Table Structure
The following table outlines the SQL columns for the operations
table, providing a brief description of each, along
with sample data where applicable.
Column | Type | Description | Example |
---|---|---|---|
id | String (ULID) | Unique identifier for the entity. | 01JAP8RJBN-8ZTPXSGY-J9GSDPE1 |
enabled | Boolean | If the entity is enabled or not. | true |
created_date | DateTime | Date the entity was created. | 2024-12-31T19:48:44Z |
created_by | String | Person who created the entity. | TamakiMES |
modified_date | DateTime | Date the entity was modified. Value is null upon creation, and gets initially populated upon the first edit. | 2024-12-31T19:48:44Z |
modified_by | String | Last person to modify the entity. Value is null upon creation, and gets initially populated upon the first edit. | TamakiMES |
notes | String | Notes about the entity. | This entity has these extra notes |
spare1 | String | The first spare column that can be used for additional context on the entity. | some extra context 1 |
spare2 | String | The second spare column that can be used for additional context on the entity. | some extra context 2 |
spare3 | String | The third spare column that can be used for additional context on the entity. | some extra context 3 |
name | String | Name of the operation. | Packaging |
auto_add_to_schedule | Boolean | Automatically add this operation to the schedule if it doesn't exist. | true |
expected_duration_calculation_strategy | String (Enum) | Resolution strategies for the expected duration of an operation, as defined by the ExpectedDurationCalculationStrategy enum. | STATIC |
expected_duration_expression | String | The Ignition expression for expected duration of an operation. | See Ignition Docs |
expected_duration_seconds | Integer | The expected duration of an operation in seconds. | 3000 |
flush_interval_millis | Integer | The time interval between data saves in milliseconds. | 1000 |
production_order_expression | String | The Ignition expression to determine the production order that the operation runs. | {[default]Tamaki/Brewing/Line1/ActiveOrder} |
production_order_resolution_strategy | String (Enum) | Production order source for an operation, as defined by the ProductionOrderResolutionStrategy enum. | MANUAL |
production_order_update_strategy | String (Enum) | Strategy used if the production order expression changes while the operation is active, as defined by the ExpressionUpdateBehavior enum. | KEEP_FIRST_GOOD_VALUE |
running_conflict_strategy | String (Enum) | Conflict strategy used when a new operation is started while another is running, as defined by the OperationRunningConflictStrategy enum. | STOP_PREVIOUS |
start_production_order_status | String (Enum) | Production order's status when the operation starts, as defined by the ProductionOrderStatus enum. | RUNNING |
start_trigger_expression | String | Trigger Ignition expression when starting the operation. | See Ignition Docs |
start_trigger_type | String (Enum) | Trigger type when starting the operation, as defined by the TriggerType enum. | RISING_EDGE |
status | String (Enum) | Status of the operation, as defined by the Status enum. | IDLE |
stop_production_order_status | String (Enum) | Production order's status when the operation stops, as defined by the ProductionOrderStatus enum. | STOPPED |
stop_trigger_expression | String | Trigger Ignition expression when stopping the operation. | See Ignition Docs |
stop_trigger_type | String (Enum) | Trigger type when stopping the operation, as defined by the TriggerType enum. | FALLING_EDGE |
trigger_source | String (Enum) | Ways that the various operations can trigger, as defined by the TriggerEvaluationStrategy enum. | EXPRESSION |
update_production_order_status_on_start | Boolean | Update the order status when the operation starts. | false |
update_production_order_status_on_stop | Boolean | Update the order status when the operation stops. | false |
current_operation_record_id | String (ULID) | References the current operation record. See operation_records. | 01JAP8R5RT-3FPXQABY-7KQZT6VF |
current_production_order_id | String (ULID) | References the current production order. See production_orders. | 01JAP8RJBN-7KQZT6VF-Q5VUZYPW |
location_id | String (ULID) | References the location where the operation is taking place. See locations. | 01JAP8R5RT-3FPXQABY-7KQZT6VF |
Field Details
name
The name
field provides a descriptive identifier for the operation.
auto_add_to_schedule
Indicates whether the operation should automatically add this operation to the schedule if it doesn't exist.