### Validate B2MML XML using AllSchemas.xsd with xmllint Source: https://context7.com/mesainternational/b2mml-batchml/llms.txt This command-line example shows how to validate a B2MML XML file against the `AllSchemas.xsd` using the `xmllint` tool. This ensures the XML document conforms to the complete B2MML schema. ```bash xmllint --schema Schema/AllSchemas.xsd my-sync-equipment.xml --noout ``` -------------------------------- ### Example B2MML JSON Structure for EquipmentInformation Source: https://context7.com/mesainternational/b2mml-batchml/llms.txt This JSON snippet illustrates the structure of an `EquipmentInformation` object in B2MML's JSON format. It includes standard elements and properties, demonstrating how data is represented in JSON. ```json { "EquipmentInformation": { "ID": { "_value": "EQUIP-INFO-SITE-A" }, "Equipment": [ { "ID": { "_value": "REACTOR-101", "schemeID": "ERP" }, "Description": [{ "_value": "Batch Mixing Reactor", "languageID": "en" }], "EquipmentLevel": { "_value": "ProcessCell" }, "EquipmentProperty": [ { "ID": { "_value": "MaxTemperature" }, "Value": [ { "ValueString": { "_value": "180" }, "DataType": { "_value": "double" } } ] } ] } ] } } ``` -------------------------------- ### Generate Java Code from AllSchemas.xsd using JAXB Source: https://context7.com/mesainternational/b2mml-batchml/llms.txt This command-line example demonstrates how to generate Java classes from the `AllSchemas.xsd` file using the `xjc` tool from JAXB. This is useful for creating Java objects that represent B2MML structures. ```bash xjc -d src/generated -p com.example.b2mml Schema/AllSchemas.xsd ``` -------------------------------- ### B2MML Core Primitive Types Examples Source: https://context7.com/mesainternational/b2mml-batchml/llms.txt Examples of core primitive XML types used in B2MML. These include AmountType, BinaryObjectType, CodeType, DateTimeType, IdentifierType, MeasureType, QuantityType, and TextType. ```xml 1500.00 ``` ```xml JVBERi0xLjQK... ``` ```xml ProcessCell ``` ```xml 2024-01-15T08:00:00 ``` ```xml EQUIP-REACTOR-001 ``` ```xml 250.5 ``` ```xml 5000 ``` ```xml Primary mixing reactor, stainless steel ``` -------------------------------- ### B2MML Common Shared Types Examples Source: https://context7.com/mesainternational/b2mml-batchml/llms.txt Examples of common shared XML types from B2MML-Common.xsd. These include HierarchyScopeType for scoping, ValueType for generic properties, AssemblyRelationshipType, CapabilityTypeType, and SpatialDefinitionType. ```xml Site-A Site ``` ```xml 250 double Celsius MaxTemperature ``` ```xml Permanent ``` ```xml Available ``` ```xml POLYGON((0 0, 10 0, 10 5, 0 5, 0 0)) ``` -------------------------------- ### Publish General Recipe using BatchML-GeneralRecipe.xsd Source: https://context7.com/mesainternational/b2mml-batchml/llms.txt This XML snippet demonstrates publishing a general recipe to a batch execution system using the BatchML-GeneralRecipe.xsd schema. It includes recipe details, versioning, and status. ```xml RECIPE-MGMT-SYSTEM 2024-03-10T08:00:00 RECIPE-20240310-001 GRECIPE-INFO-001 GR-PRODUCT-A-V2 General Recipe for Product A, Version 2 2.0 Active 200
PRODUCT-A Approved 2024-02-01T00:00:00 2.0
``` -------------------------------- ### Synchronize Material Master and Lot Data (XML) Source: https://context7.com/mesainternational/b2mml-batchml/llms.txt Use this XML structure to synchronize material master data and lot information. Ensure all required fields like IDs, descriptions, quantities, and statuses are accurately populated. ```xml ERP-SYSTEM 2024-03-10T11:00:00 SYNC-MAT-20240310-001 MAT-INFO-001 CHEMICAL-A-DEF Reagent Grade Chemical A Purity 99.5double Percent RAW-CHEMICALS LOT-2024-00123 Received batch March 2024 2025-03-01T00:00:00 500 Approved CHEMICAL-A-DEF ``` -------------------------------- ### Dispatch Job Orders to Shop Floor Control (XML) Source: https://context7.com/mesainternational/b2mml-batchml/llms.txt This XML structure is used to dispatch detailed work instructions, such as job orders, from a scheduling system to shop floor control. It includes work definitions, priorities, and timeframes. ```xml MES-DISPATCH 2024-03-11T05:30:00 WORK-SCHED-20240311-001 WS-2024-03-11 WR-20240311-001 BATCH-PROD-A JL-20240311-001 JO-20240311-001 Produce 200kg Product A, Reactor 101 Production 1 2024-03-11T06:00:00 2024-03-11T14:00:00 BATCH-PROD-A-MASTER ``` -------------------------------- ### Use Custom Equipment Extensions in a B2MML Instance Document Source: https://context7.com/mesainternational/b2mml-batchml/llms.txt This XML snippet demonstrates how to use the custom 'MaintenanceDueDate' and 'AssetRiskScore' elements within an Equipment instance document. The custom elements are prefixed with the namespace for the extensions. ```xml ERP-SAP 2024-03-10T09:00:00 SYNC-EQUIP-EXT-001 EQUIP-INFO-SITE-A REACTOR-101 Batch Mixing Reactor ProcessCell 2024-06-01T00:00:00 42 ``` -------------------------------- ### Advertise Supported Transactions using B2MML-TransactionProfile.xsd Source: https://context7.com/mesainternational/b2mml-batchml/llms.txt This XML snippet defines a system's supported transactions using the B2MML-TransactionProfile.xsd schema. It allows for dynamic discovery of integration capabilities between systems. ```xml MES-SYSTEM-A 2024-03-10T09:00:00 TXPROFILE-20240310-001 MES-SYSTEM-A-PROFILE MES System A Supported Transactions SA-001 SYNC ADD EQUIPMENT INFORMATION true false false false SA-002 NOTIFY OPERATIONS PERFORMANCE true false ``` -------------------------------- ### Sync Equipment Information with MES Source: https://context7.com/mesainternational/b2mml-batchml/llms.txt Use this XML structure to push equipment master data to the MES. Ensure the releaseID and BODID are correctly set for tracking. ```xml ERP-SAP 2024-03-10T09:00:00 SYNC-EQUIP-20240310-001 EQUIP-INFO-SITE-A Site-A Site REACTOR-101 Batch Mixing Reactor 2024-01-01T00:00:00 ProcessCell MaxTemperature 180 double Celsius MIXING-REACTOR-CLASS ``` -------------------------------- ### Define Custom Equipment Extensions in B2MML-Extensions.xsd Source: https://context7.com/mesainternational/b2mml-batchml/llms.txt This XML snippet shows how to define custom elements like 'MaintenanceDueDate' and 'AssetRiskScore' within the 'Equipment' group in `B2MML-Extensions.xsd`. These extensions can then be used in B2MML documents. ```xml ``` -------------------------------- ### Synchronize Batch Information using BatchML-BatchInformation.xsd Source: https://context7.com/mesainternational/b2mml-batchml/llms.txt This XML snippet shows how to synchronize active batch records to a historian using the BatchML-BatchInformation.xsd schema. It includes batch identifiers, recipe references, and operational status. ```xml BATCH-EXECUTION-SYSTEM 2024-03-11T07:00:00 BATCH-SYNC-20240311-001 BATCH-INFO-20240311 BATCH-20240311-001 BATCH-A-20240311-001 GR-PRODUCT-A-V2 2024-03-11T06:00:00 2024-03-11T06:05:00 Running 200 REACTOR-101 ``` -------------------------------- ### Process Production Schedule (XML) Source: https://context7.com/mesainternational/b2mml-batchml/llms.txt This XML is used to send production schedules from an ERP system to an MES. It defines the overall schedule and individual operations requests with their material and equipment requirements. ```xml ERP-SCHEDULER 2024-03-10T06:00:00 SCHED-20240310-001 SCHED-2024-WEEK11 Week 11 Production Schedule 2024-03-11T06:00:00 2024-03-15T18:00:00 REQ-20240311-001 BATCH-PROD-A 2024-03-11T06:00:00 2024-03-11T14:00:00 SEG-REQ-001 PRODUCT-A 200 REACTOR-101 ``` -------------------------------- ### Process Personnel Information and Qualifications Source: https://context7.com/mesainternational/b2mml-batchml/llms.txt Send personnel qualifications and data to the MES using this XML structure. The ActionCriteria can specify 'Add', 'Replace', or 'Delete' operations. ```xml HR-SYSTEM 2024-03-10T10:00:00 PROC-PERS-20240310-001 PERS-INFO-001 QUALIFIED-OPERATOR Certified reactor operators Certification ISO-9001string EMP-00421 Jane Smith ShiftRole Lead Operatorstring QUALIFIED-OPERATOR ``` -------------------------------- ### Request Equipment Data from MES Source: https://context7.com/mesainternational/b2mml-batchml/llms.txt Use this XML to request specific equipment data from the MES. The Expression element allows for filtering based on equipment ID or other criteria. ```xml ERP-SAP 2024-03-10T09:00:00 GET-EQUIP-20240310-001 ID='REACTOR-101' EQUIP-INFO-SITE-A ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.