--- pdfexport: true alias: tutorials-production-order-execution timetoread: true glightbox: false description: "This documentation details the system states and transitions of production orders during material processing" --- # Production Order Execution The system state of a **Production Order** changes throughout the **Material** process execution. After a **Production Order** is Created, it transitions to the Released state, then to In Progress, until it finally reaches the Completed state. ```mermaid graph LR Start1 -.-> A1[Created] A1 -->|Release| A2[Released] A2 --> A3[In Progress] A3 --> A4[Completed] classDef mermaid_title color:#000, fill:#fafafa, stroke:#fafafa, stroke-width:0x, font-size:100%, font-weight:200; classDef mermaid_start color:#000, fill:#fafafa, stroke:#fafafa, color:#fafafa, stroke-width:0x, font-size:100%, visibility: hidden; classDef mermaid_businessdata color:#000, fill:#65CDE8, stroke:#65CDE8, stroke-width:0px, font-size:100%; classDef mermaid_nonbusinessdata color:#000, fill:#B7DEE8, stroke:#B7DEE8, stroke-width:0px, font-size:100%; classDef mermaid_entity color:#000, fill:#FB9F53, stroke:#FB9F53, stroke-width:0px, font-size:100%; classDef mermaid_entitylinked color:#000, fill:#FCD5B5, stroke:#FCD5B5, stroke-width:0px, font-size:100%; classDef mermaid_context color:#000, fill:#B9CDE5, stroke:#B9CDE5, stroke-width:0px, font-size:100%; classDef mermaid_optional color:#000, fill:#B7DEE8, stroke:#65CDE8, stroke-width:1px, font-size:100%, stroke-dasharray: 5 5; classDef mermaid_state color:#000, fill:#d7e4bd, stroke:#000, stroke-width:1px, font-size:100%, font-weight:300; class Main1,Main2 mermaid_entity class Start1,Start2,Start3 mermaid_start class A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12 mermaid_state class N1,N2 mermaid_businessdata ``` Once completed, you can close the **Production Order**. !!! note If the **Material** is shipped, its **Material** Status changes from Completed to Delivered. ## Scenario This tutorial explores the different system states defined at both **Production Order** and **Material** levels, showing how they change according to their system state model. This model defines different transition states depending on the current process flow execution of the **Material**. For demonstration purposes, a **Flow Path** was set up with a sequence of operations to be executed, allowing us to track changes in the system states of both objects, as well as to see the related system functionalities being triggered. ### Starting Step When a **Material** is created and assigned to the **Production Order**, it is automatically placed in the Mixing **Step**, defined as the Default Start Flow Path. ![Screenshot showing the default start flow path for a production order.](../images/po_starting_step.png) ### Finishing Step When material reaches the Packing **Step**, it is marked as completed, and the **Production Order** is updated accordingly. ![Screenshot showing a cookies flow diagram labeled as "CookiesFlow [A]".](../images/po_finishing_step.png) ## Modeling The model used for this tutorial is the same as in the previous section of this tutorial, with a single change made to a specific **Step** Property of the Packing **Step**. !!! info To review the configuration model used for this tutorial, see: [[tutorials-production-order-creation]] As shown below, the only property that needed to be enabled in the finishing **Step** to allow automatic completion of the **Production Order** was Mark Product Completion: ![Diagram showing a production order marking process.](../images/po_mark_product_completion.png) ## Execution For this use case, to explore the system state changes of the Production Order, take into consideration the following steps: | Step | Action | Notes | | ---- | ------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | | 1 | Given that the Production Order is Created, perform Release. | The new system state is Released. | | 2 | Assign an existing Material to Production Order. | The new system state is In Progress, and In Progress Quantity is updated. | | 3 | Start processing the Material by performing Dispatch, Track-in, Track-Out and Move Next throughout the Steps of the Flow. | When the Material is tracked-out of the last Step, the Production Order changes to the System State Completed. | The video below demonstrates an end-to-end process where a **Production Order** moves from the Created state to the Completed state. {% set video_id = 'bc3d352f403a8b3e9394ea0e811e572b' %} {% include-markdown 'includes/cloudflare_stream.md' %} ## Master Data This is the [Master Data file](../masterdatafile/po_execution_masterdata.xlsx) used to create this model. !!! note - This feature was first made available in version 11.0. - The model was created in version 11.1.7. !!! tip To continue learning, see other use cases: [[tutorials-production-order-planning-inclusion]].