# Recipe Management ## Overview This feature enables the automatic change of MES Resource Recipe for each Fuji Module. ## Relevant Artifacts The table below describes the properties for this entity type: | Name | Type | Is Mandatory | Data Type | Description | | :-------------------- | :--------- | :----------: | :-------- | :----------------------------------------------- | | IoTMetadataDefinition | SmartTable | Yes | | Metadata configuration for equipment integration | ## How It Works When a `PGCHANGEII` event is received from the Fuji NXT III equipment, the system takes the following actions: ### Area Feature Checks The system uses `IoTMetadataDefinition` to determine the MES Resource Name. ### Resource Feature Checks It verifies if the `UseFujiToPgChange` feature is enabled for this MES Resource in `IoTMetadataDefinition`. ### MES Operations If the feature is enabled, the Automation Manager Controller changes the recipe for the specific module. Once the recipe is changed, the Automation Manager sends a `PGCHANGEII_ACK` acknowledgment message back to the equipment. This message includes the result of the operation: - `OK` if successful - `Not OK` if it failed ## Assumptions SmartTable IoTMetadataDefinition is configured with the following entry for each station: | Resource | ResourceType | Area | Name | Value | |---------- | ------------ | ---------------- | ------------------------------------------------------------------------------- | ------------------- | | MES Fuji Station X Resource | | | UseFujiToPgChange | True | | | | Fuji Line Area | FUJI_LineNameMachineNameModuleNo_{EquipmentLineName}_{EquipmentMachineName}/{EquipmentModuleNumber} | MES ResourceName |