--- alias: recipecontext-st description: "This documentation defines a RecipeContext table for resolving recipes within a resource context" --- # RecipeContext ## Description Used to resolve the correct Recipe to be used at a given Resource context ## Fields The **RecipeContext** table has the following fields: | Field | Description | Key | Mandatory | Comments | | --- | ----- | -- | -- | ---- | | **Service** | Service Name | Yes | Yes | | | **Step** | Reference to a Step | Yes | No | | | **LogicalFlowPath** | The Logical Flow Path | Yes | No | | | **Product** | Product Name | Yes | No | | | **ProductGroup** | Product Group 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 | | | **MaterialType** | Material Type | Yes | No | | | **ProductionOrder** | Production Order | Yes | No | | | **Resource** | Resource Reference | Yes | No | | | **ResourceType** | ResourceType Name | Yes | No | | | **Model** | Model Name | Yes | No | | | **RunningMode** | Running Mode | Yes | No | | | **Recipe** | Recipe Name | No | Yes | | Table: RecipeContext fields !!! info At most, only one of Resource, ResourceType and Model may be defined. ## Precedence Keys The search precedence rules are the following: 1. Service, Step, LogicalFlowPath, Material 2. Service, Step, Material 3. Service, Material, Flow 4. Service, Material 5. Service, Step, LogicalFlowPath, ProductionOrder 6. Service, Step, ProductionOrder 7. Service, ProductionOrder 8. Service, Product, MaterialType, Resource 9. Service, Product, MaterialType, ResourceType 10. Service, Product, MaterialType, Model 11. Service, Product, MaterialType 12. Service, Product, Step, LogicalFlowPath, Resource 13. Service, Product, Flow, Resource 14. Service, Product, Resource, RunningMode 15. Service, Product, Resource 16. Service, Product, Step, LogicalFlowPath, ResourceType 17. Service, Product, Flow, ResourceType 18. Service, Product, ResourceType, RunningMode 19. Service, Product, ResourceType 20. Service, Product, Step, LogicalFlowPath, Model 21. Service, Product, Flow, Model 22. Service, Product, Model, RunningMode 23. Service, Product, Model 24. Service, Product, Step, LogicalFlowPath 25. Service, Product, Step 26. Service, Product, Flow 27. Service, Product 28. Service, ProductGroup, Step, LogicalFlowPath 29. Service, ProductGroup, Step 30. Service, ProductGroup, Flow 31. Service, ProductGroup, MaterialType 32. Service, ProductGroup, Resource 33. Service, ProductGroup, ResourceType 34. Service, ProductGroup, Model 35. Service, ProductGroup 36. Service, MaterialType, Step, LogicalFlowPath 37. Service, MaterialType, Flow 38. Service, MaterialType, Resource 39. Service, MaterialType, ResourceType 40. Service, MaterialType, Model 41. Service, MaterialType 42. Service, Resource, Step, LogicalFlowPath 43. Service, Resource, Flow 44. Service, Resource, RunningMode 45. Service, Resource 46. Service, ResourceType, Step, LogicalFlowPath 47. Service, ResourceType, Flow 48. Service, ResourceType, RunningMode 49. Service, ResourceType 50. Service, Model, Step, LogicalFlowPath 51. Service, Model, Flow 52. Service, Model, RunningMode 53. Service, Model 54. Service, Step, LogicalFlowPath 55. Service, Step 56. Service, Flow 57. Service