--- alias: bomcontext-st description: "This documentation defines a context object linking BOMs to specific operational steps and related data" --- # BOMContext ## Description Used to attach a specific BOM to a specific context ## Fields The **BOMContext** table has the following fields: | Field | Description | Key | Mandatory | Comments | | --- | ----- | -- | -- | ---- | | **Step** | Step Name | Yes | Yes | | | **LogicalFlowPath** | The Logical Flow Path | Yes | No | | | **Product** | Product Name | Yes | No | | | **ProductGroup** | Product Name | Yes | No | | | **Flow** | Flow Name | Yes | No |Applies to the immediate parent **Flow** of the **Step** where the **Material** is currently, and not to the Top-Level **Flow**| | **Material** | Material Name | Yes | No | | | **ProductionOrder** | Production Order | Yes | No | | | **Resource** | Resource Reference | Yes | No | | | **ResourceType** | Resource Type | Yes | No | | | **Model** | Resource Model | Yes | No | | | **Recipe** | Recipe Reference | Yes | No | | | **BOM** | BOM Name | No | Yes | | | **AssemblyType** | Assembly Type | No | Yes |:material-pencil-circle:| | **TrackInCheckMode** | Track In Check Mode | No | No |Only for Automatic At Track Out (with Track In Check Mode as Quantity, Product or None), Packing or Mixed, to check if the required consumables are attached at the Resource| | **TrackOutLossesMode** | Track Out Losses Mode | No | No |Only for Automatic At Track Out, to specify whether losses at Track Out are given on the assembled or not assembled quantity| | **WeighAndDispenseMode** | The mode used in Weigh and Dispense | No | No |Only for the WeighAndDispense type, to specify whether the source **Materials** are consumed or attached after the Weigh and Dispense operation| Table: BOMContext fields ## Precedence Keys The search precedence rules are the following: 1. Step, Material, LogicalFlowPath 2. Step, Material 3. Step, LogicalFlowPath, ProductionOrder 4. Step, ProductionOrder 5. Step, Resource, Recipe 6. Step, ResourceType, Recipe 7. Step, Model, Recipe 8. Step, Recipe 9. Step, Product, LogicalFlowPath 10. Step, Product, Flow 11. Step, Product, Resource 12. Step, Product, ResourceType 13. Step, Product, Model 14. Step, Product 15. Step, ProductGroup, LogicalFlowPath 16. Step, ProductGroup, Flow 17. Step, ProductGroup, Resource 18. Step, ProductGroup, ResourceType 19. Step, ProductGroup, Model 20. Step, ProductGroup 21. Step, Resource 22. Step, ResourceType 23. Step, Model 24. Step, LogicalFlowPath 25. Step !!! note Possible values for Assembly Type are: * Mixed - allows different Assembly Type consumptions * Automatic At Track In - for an automatic assemble at Track In * Automatic At Track Out - for an automatic assemble at Track Out * Explicit - for a explicit (manual) assemble that does not increase the quantity of the material being assembled * Explicit Add - for explicit (manual) assemble that increases the quantity of the material being assembled * Explicit Long Running - similar to Explicit but allows partial assembles on every BOM product and creates a BOM Instance; only available for TopMost Materials * Packing - a mode for Packing * Replace And Disassemble - a mode that allows only the replace and disassemble operation * Weigh And Dispense - a mode for Weigh and Dispense !!! info The configuration entry `/Cmf/System/Configuration/MaterialTracking/AutomaticAssemble/AdditionalConsumableFeedsCheckMode` defines the behavior regarding additional consumable feeds for the case of Automatic At Track In and Automatic At Track Out. The possible values are Check Nothing (no checks), Check Empty (the system checks that they are empty) and Check No BOM Products (the system check that it contains no additional BOM products - this is the default behavior).