--- alias: timeconstraintscontext-st description: "This documentation defines a context for managing and applying time constraints within a system" --- # TimeConstraintsContext ## Description Used to resolve the Time Constraints. ## Fields The **TimeConstraintsContext** table has the following fields: | Field | Description | Key | Mandatory | Comments | | --- | ----- | -- | -- | ---- | | **FromStep** | From Step Reference | Yes | Yes |Must have the property **Enable Time Constraints** set to `true`| | **FromLogicalFlowPath** | The Logical Flow Path | Yes | No | | | **FromOperation** | From Operation | Yes | Yes | | | **FromFlow** | From Flow Reference | Yes | No |Applies to the immediate parent **Flow** of the **Step** where the **Material** is currently, and not to the Top-Level **Flow**| | **Product** | Product Reference | Yes | No | | | **ProductGroup** | Product Group Reference | Yes | No | | | **Manufacturer** | Material Manufacturer Reference | Yes | No | | | **Material** | Material Reference | Yes | No | | | **MaterialType** | Material Type | Yes | No | | | **ToStep** | To Step Reference | No | Yes |Must have the property **Enable Time Constraints** set to `true`| | **ToOperation** | To Operation | No | Yes | | | **ToFlow** | To Flow Reference | No | No | | | **Type** | Type of Constraint | No | Yes |The type of the Time Constraint (Minimum/Maximum)| | **MultiplicationFactor** | How the time constraint is calculated | No | Yes | | | **TimeLimit** | Time limit in hours | No | Yes | | | **TimeLimitRule** | Time limit rule | No | No |A **Rule** of TimeConstraint scope to be fired when the time limit is reached
the system **Rule** FireTimeConstraintEvents is not applicable with this field | | **WarningTime** | Warning time in hours | No | No |warning time in hours| | **WarningRule** | Warning time rule | No | No |A **Rule** of TimeConstraint scope to be fired when the warning limit is reached
the system **Rule** FireTimeConstraintEvents is not applicable with this field | | **RemoveOnPass** | Whether the time constraint will be terminated once the Material successfully passes the checkpoint (to prevent unnecessary warnings and errors) | No | Yes | | | **Description** | A description of the time constraint | No | No | | Table: TimeConstraintsContext fields A multiplication factor to apply to the time limit and warning time. Possible values for **Multiplication Factor** are: * None (default) - no multiplication factor is applied * PrimaryQuantity - the time limit is multiplied by the Material Primary Quantity (including the Quantity of the SubMaterials) * SecondaryQuantity - the time limit is multiplied by the Material Secondary Quantity (including the Quantity of the SubMaterials) !!! info If during runtime the multiplication result is zero, the time constraint is ignored. If the multiplication factor is SecondaryQuantity and during runtime the Material has no Secondary Quantity defined, the system will return an error. ## Precedence Keys The search precedence rules are the following: 1. FromStep, FromOperation, FromLogicalFlowPath, Material 2. FromStep, FromOperation, FromFlow, Material 3. FromStep, FromOperation, Material 4. FromStep, FromOperation, FromLogicalFlowPath, Product 5. FromStep, FromOperation, FromFlow, Product 6. FromStep, FromOperation, FromLogicalFlowPath, ProductGroup 7. FromStep, FromOperation, FromFlow, ProductGroup 8. FromStep, FromOperation, FromLogicalFlowPath, MaterialType 9. FromStep, FromOperation, FromFlow, MaterialType 10. FromStep, FromOperation, FromLogicalFlowPath 11. FromStep, FromOperation, FromFlow 12. FromStep, FromOperation, Product, Manufacturer 13. FromStep, FromOperation, Product, MaterialType 14. FromStep, FromOperation, Product 15. FromStep, FromOperation, ProductGroup, Manufacturer 16. FromStep, FromOperation, ProductGroup, MaterialType 17. FromStep, FromOperation, ProductGroup 18. FromStep, FromOperation, MaterialType 19. FromStep, FromOperation