Time Controlled Order - Xyna-Factory/xyna GitHub Wiki

A Time-Controlled Order allows to plan the execution of several Xyna Orders of a certain Order Type. The input data of the started Xyna Orders can by defined to be constant or dynamic. In the case of dynamic input it is possible to use the data provided by XMOM Storable instances. Therefore a Time-Controlled Orders is also called a Batch Process. Time-Controlled Orders can be managed from within the ''Time-Controlled Orders'' section in the Xyna Factory Manager or by using the CLI. There is also the Standard Application BatchProcessMgmt that contains Services to start Batch Processes dynamically from within Workflows.

A typical example is the execution of a mass firmware update of a dynamic set of stored devices: While the execution concurrency of the update can be controlled by Capacities, the creation of all Xyna Orders is managed by the Batch Process. Using the timing controls one can configure a execution only in certain repeating time windows.

Each Time-Controlled Order consists of two orders. The main process spawns the planned sub orders of the configured Order Type. After the Time-Controlled Order has finished creating all planned sub orders, the Order Type of the main process is used to execute its own Execution Destination.

Please note: Time-Controlled Orders share several features with Cron-like Orders. In comparison, Cron-like Orders are easier to use but also come with less configuration control. However, if the features of Cron-like Orders satisfy the requirements, it is recommended to prefer Cron-like Orders over Time-Controlled Orders.

See Also

⚠️ **GitHub.com Fallback** ⚠️