addOrder
AddOrder messages are sent when a new order is added.
Topic
MQTT: ia/<customerID>/<location>/<AssetID>/addOrder
For Kafka just switch the /
character with a .
Usage
A message is sent here each time a new order is added.
Content
key | data type | description |
---|
product_id | string | current product name |
order_id | string | current order name |
target_units | int64 | amount of units to be produced |
- The product needs to be added before adding the order. Otherwise, this message will be discarded
- One order is always specific to that asset and can, by definition, not be used across machines. For this case one would need to create one order and product for each asset (reason: one product might go through multiple machines, but might have different target durations or even target units, e.g. one big 100m batch get split up into multiple pieces)
JSON
Examples
One order was started for 100 units of product “test”:
{
"product_id":"test",
"order_id":"test_order",
"target_units":100
}
Producers
Consumers
Last modified February 17, 2023:
update (#208) (ea731fc)