[Project] Add BicycleProduction.xml as example
This commit is contained in:
parent
646ac44a15
commit
3912daeb75
|
@ -0,0 +1,367 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<StrolchModel>
|
||||
|
||||
<!--
|
||||
Order Templates
|
||||
-->
|
||||
<Order Id="BicycleProduction" Name="Bicycle Production" Type="Template" Date="1970-01-01T00:00:00.000+01:00" State="CREATED">
|
||||
<ParameterBag Id="parameters" Name="Parameters" Type="Parameters">
|
||||
<Parameter Id="activity" Name="Menge" Type="String" Interpretation="Activity-Ref" Uom="ProductionBicycle" Value="-" />
|
||||
<Parameter Id="quantity" Name="Menge" Type="Float" Value="1" />
|
||||
</ParameterBag>
|
||||
</Order>
|
||||
<Order Id="GearsPurchase" Name="Gears Purchase" Type="Template" Date="1970-01-01T00:00:00.000+01:00" State="CREATED">
|
||||
<ParameterBag Id="parameters" Name="Parameters" Type="Parameters">
|
||||
<Parameter Id="activity" Name="Menge" Type="String" Interpretation="Activity-Ref" Uom="ToStockGears" Value="-" />
|
||||
<Parameter Id="quantity" Name="Menge" Type="Float" Value="1" />
|
||||
</ParameterBag>
|
||||
</Order>
|
||||
<Order Id="BicycleSale" Name="Bicycle Sale" Type="Template" Date="1970-01-01T00:00:00.000+01:00" State="CREATED">
|
||||
<ParameterBag Id="parameters" Name="Parameters" Type="Parameters">
|
||||
<Parameter Id="activity" Name="Menge" Type="String" Interpretation="Activity-Ref" Uom="FromStockBicycle" Value="-" />
|
||||
<Parameter Id="quantity" Name="Menge" Type="Float" Value="1" />
|
||||
</ParameterBag>
|
||||
</Order>
|
||||
|
||||
<!--
|
||||
Orders
|
||||
-->
|
||||
<Order Id="prod001" Name="Bicycle Production" Type="BicycleProduction" Date="2015-09-01T00:00:00.000+01:00">
|
||||
<ParameterBag Id="parameters" Name="Parameters" Type="Parameters">
|
||||
<Parameter Id="activity" Name="Menge" Type="String" Interpretation="Activity-Ref" Uom="ProductionBicycle" Value="productionAct001" />
|
||||
<Parameter Id="quantity" Name="Menge" Type="Float" Value="1" />
|
||||
</ParameterBag>
|
||||
</Order>
|
||||
<Order Id="purchase001" Name="Gears Purchase" Type="GearsPurchase" Date="2015-09-01T00:00:00.000+01:00">
|
||||
<ParameterBag Id="parameters" Name="Parameters" Type="Parameters">
|
||||
<Parameter Id="activity" Name="Menge" Type="String" Interpretation="Activity-Ref" Uom="ToStockGears" Value="purchaseAct001" />
|
||||
<Parameter Id="quantity" Name="Menge" Type="Float" Value="1" />
|
||||
</ParameterBag>
|
||||
</Order>
|
||||
<Order Id="sale001" Name="Bicycle Sale" Type="BicycleSale" Date="2015-09-01T00:00:00.000+01:00">
|
||||
<ParameterBag Id="parameters" Name="Parameters" Type="Parameters">
|
||||
<Parameter Id="activity" Name="Menge" Type="String" Interpretation="Activity-Ref" Uom="FromStockBicycle" Value="saleAct001" />
|
||||
<Parameter Id="quantity" Name="Menge" Type="Float" Value="1" />
|
||||
</ParameterBag>
|
||||
</Order>
|
||||
|
||||
<!--
|
||||
Resource Templates
|
||||
-->
|
||||
<Resource Id="Product" Name="Product Template" Type="Template">
|
||||
<TimedState Id="Capacity" Name="Inventory ??" Type="Float">
|
||||
<Value Time="1970-01-01T00:00:00.000+01:00" Value="0.0" />
|
||||
</TimedState>
|
||||
<Policies>
|
||||
<Policy Type="PlanningPolicy" Value="key:ComponentPlanning" />
|
||||
<Policy Type="PlacementPolicy" Value="key:ExtendedProductionPlacement" />
|
||||
<Policy Type="ConfirmationPolicy" Value="key:NoConfirmation" />
|
||||
</Policies>
|
||||
</Resource>
|
||||
<Resource Id="Article" Name="Article Template" Type="Template">
|
||||
<TimedState Id="Capacity" Name="Inventory ??" Type="Float">
|
||||
<Value Time="1970-01-01T00:00:00.000+01:00" Value="0.0" />
|
||||
</TimedState>
|
||||
<Policies>
|
||||
<!-- Could be RemotePlanning to plan on a remote machine -->
|
||||
<Policy Type="PlanningPolicy" Value="key:ComponentPlanning" />
|
||||
<Policy Type="PlacementPolicy" Value="key:ExtendedProductionPlacement" />
|
||||
<Policy Type="ConfirmationPolicy" Value="key:NoConfirmation" />
|
||||
</Policies>
|
||||
</Resource>
|
||||
<Resource Id="Machine" Name="Machine Template" Type="Template">
|
||||
<TimedState Id="Capacity" Name="Inventory ??" Type="Float">
|
||||
<Value Time="1970-01-01T00:00:00.000+01:00" Value="0.0" />
|
||||
</TimedState>
|
||||
<Policies>
|
||||
<Policy Type="PlanningPolicy" Value="key:NoPlanning" />
|
||||
<Policy Type="PlacementPolicy" Value="key:ExtendedProductionPlacement" />
|
||||
<Policy Type="ConfirmationPolicy" Value="key:NoConfirmation" />
|
||||
</Policies>
|
||||
</Resource>
|
||||
<Resource Id="Assembly" Name="Assemply Template" Type="Template">
|
||||
<TimedState Id="Capacity" Name="Inventory ??" Type="Float">
|
||||
<Value Time="1970-01-01T00:00:00.000+01:00" Value="0.0" />
|
||||
</TimedState>
|
||||
<Policies>
|
||||
<Policy Type="PlanningPolicy" Value="key:NoPlanning" />
|
||||
<Policy Type="PlacementPolicy" Value="key:ExtendedProductionPlacement" />
|
||||
<Policy Type="ConfirmationPolicy" Value="key:NoConfirmation" />
|
||||
</Policies>
|
||||
</Resource>
|
||||
|
||||
<!--
|
||||
Products
|
||||
-->
|
||||
<Resource Id="bicycle" Name="Bicycle Product" Type="Product">
|
||||
<TimedState Id="Capacity" Name="Inventory Bicycles" Type="Float">
|
||||
<Value Time="1970-01-01T00:00:00.000+01:00" Value="0.0" />
|
||||
</TimedState>
|
||||
<Policies>
|
||||
<Policy Type="PlanningPolicy" Value="key:ComponentPlanning" />
|
||||
<Policy Type="PlacementPolicy" Value="key:ExtendedProductionPlacement" />
|
||||
<Policy Type="ConfirmationPolicy" Value="key:NoConfirmation" />
|
||||
</Policies>
|
||||
</Resource>
|
||||
|
||||
<!--
|
||||
Articles
|
||||
-->
|
||||
<Resource Id="gears" Name="Gears" Type="Article">
|
||||
<TimedState Id="Capacity" Name="Inventory Gears" Type="Float">
|
||||
<Value Time="1970-01-01T00:00:00.000+01:00" Value="0.0" />
|
||||
</TimedState>
|
||||
<Policies>
|
||||
<!-- Could be RemotePlanning to plan on a remote machine -->
|
||||
<Policy Type="PlanningPolicy" Value="key:ComponentPlanning" />
|
||||
<Policy Type="PlacementPolicy" Value="key:ExtendedProductionPlacement" />
|
||||
<Policy Type="ConfirmationPolicy" Value="key:NoConfirmation" />
|
||||
</Policies>
|
||||
</Resource>
|
||||
<Resource Id="handlebars" Name="Handlebars" Type="Article">
|
||||
<TimedState Id="Capacity" Name="Inventory Handlebars" Type="Float">
|
||||
<Value Time="1970-01-01T00:00:00.000+01:00" Value="0.0" />
|
||||
</TimedState>
|
||||
<Policies>
|
||||
<Policy Type="PlanningPolicy" Value="key:NoPlanning" />
|
||||
<Policy Type="PlacementPolicy" Value="key:ExtendedProductionPlacement" />
|
||||
<Policy Type="ConfirmationPolicy" Value="key:NoConfirmation" />
|
||||
</Policies>
|
||||
</Resource>
|
||||
<Resource Id="frames" Name="Frames" Type="Article">
|
||||
<TimedState Id="Capacity" Name="Inventory Frames" Type="Float">
|
||||
<Value Time="1970-01-01T00:00:00.000+01:00" Value="0.0" />
|
||||
</TimedState>
|
||||
<Policies>
|
||||
<Policy Type="PlanningPolicy" Value="key:NoPlanning" />
|
||||
<Policy Type="PlacementPolicy" Value="key:ExtendedProductionPlacement" />
|
||||
<Policy Type="ConfirmationPolicy" Value="key:NoConfirmation" />
|
||||
</Policies>
|
||||
</Resource>
|
||||
<Resource Id="saddles" Name="Saddles" Type="Article">
|
||||
<TimedState Id="Capacity" Name="Inventory Saddles" Type="Float">
|
||||
<Value Time="1970-01-01T00:00:00.000+01:00" Value="0.0" />
|
||||
</TimedState>
|
||||
<Policies>
|
||||
<Policy Type="PlanningPolicy" Value="key:NoPlanning" />
|
||||
<Policy Type="PlacementPolicy" Value="key:ExtendedProductionPlacement" />
|
||||
<Policy Type="ConfirmationPolicy" Value="key:NoConfirmation" />
|
||||
</Policies>
|
||||
</Resource>
|
||||
<Resource Id="wheels" Name="Wheels" Type="Article">
|
||||
<TimedState Id="Capacity" Name="Inventory Wheels" Type="Float">
|
||||
<Value Time="1970-01-01T00:00:00.000+01:00" Value="0.0" />
|
||||
</TimedState>
|
||||
<Policies>
|
||||
<Policy Type="PlanningPolicy" Value="key:NoPlanning" />
|
||||
<Policy Type="PlacementPolicy" Value="key:ExtendedProductionPlacement" />
|
||||
<Policy Type="ConfirmationPolicy" Value="key:NoConfirmation" />
|
||||
</Policies>
|
||||
</Resource>
|
||||
<Resource Id="brakes" Name="Brakes" Type="Article">
|
||||
<TimedState Id="Capacity" Name="Inventory Brakes" Type="Float">
|
||||
<Value Time="1970-01-01T00:00:00.000+01:00" Value="0.0" />
|
||||
</TimedState>
|
||||
<Policies>
|
||||
<Policy Type="PlanningPolicy" Value="key:NoPlanning" />
|
||||
<Policy Type="PlacementPolicy" Value="key:ExtendedProductionPlacement" />
|
||||
<Policy Type="ConfirmationPolicy" Value="key:NoConfirmation" />
|
||||
</Policies>
|
||||
</Resource>
|
||||
|
||||
<!--
|
||||
Machine
|
||||
-->
|
||||
<Resource Id="handlebarProduction" Name="Handlebar production" Type="Machine">
|
||||
<TimedState Id="Capacity" Name="Machine Usage" Type="Float">
|
||||
<Value Time="1970-01-01T00:00:00.000+01:00" Value="0.0" />
|
||||
</TimedState>
|
||||
<Policies>
|
||||
<Policy Type="PlanningPolicy" Value="key:NoPlanning" />
|
||||
<Policy Type="PlacementPolicy" Value="key:ExtendedProductionPlacement" />
|
||||
<Policy Type="ConfirmationPolicy" Value="key:NoConfirmation" />
|
||||
</Policies>
|
||||
</Resource>
|
||||
<Resource Id="frameProduction" Name="Frame production" Type="Machine">
|
||||
<TimedState Id="Capacity" Name="Machine Usage" Type="Float">
|
||||
<Value Time="1970-01-01T00:00:00.000+01:00" Value="0.0" />
|
||||
</TimedState>
|
||||
<Policies>
|
||||
<Policy Type="PlanningPolicy" Value="key:NoPlanning" />
|
||||
<Policy Type="PlacementPolicy" Value="key:ExtendedProductionPlacement" />
|
||||
<Policy Type="ConfirmationPolicy" Value="key:NoConfirmation" />
|
||||
</Policies>
|
||||
</Resource>
|
||||
<Resource Id="saddleProduction" Name="Saddle production" Type="Machine">
|
||||
<TimedState Id="Capacity" Name="Machine Usage" Type="Float">
|
||||
<Value Time="1970-01-01T00:00:00.000+01:00" Value="0.0" />
|
||||
</TimedState>
|
||||
<Policies>
|
||||
<Policy Type="PlanningPolicy" Value="key:NoPlanning" />
|
||||
<Policy Type="PlacementPolicy" Value="key:ExtendedProductionPlacement" />
|
||||
<Policy Type="ConfirmationPolicy" Value="key:NoConfirmation" />
|
||||
</Policies>
|
||||
</Resource>
|
||||
<Resource Id="wheelProduction" Name="Wheel production" Type="Machine">
|
||||
<TimedState Id="Capacity" Name="Machine Usage" Type="Float">
|
||||
<Value Time="1970-01-01T00:00:00.000+01:00" Value="0.0" />
|
||||
</TimedState>
|
||||
<Policies>
|
||||
<Policy Type="PlanningPolicy" Value="key:NoPlanning" />
|
||||
<Policy Type="PlacementPolicy" Value="key:ExtendedProductionPlacement" />
|
||||
<Policy Type="ConfirmationPolicy" Value="key:NoConfirmation" />
|
||||
</Policies>
|
||||
</Resource>
|
||||
<Resource Id="brakeProduction" Name="Brakes production" Type="Machine">
|
||||
<TimedState Id="Capacity" Name="Machine Usage" Type="Float">
|
||||
<Value Time="1970-01-01T00:00:00.000+01:00" Value="0.0" />
|
||||
</TimedState>
|
||||
<Policies>
|
||||
<Policy Type="PlanningPolicy" Value="key:NoPlanning" />
|
||||
<Policy Type="PlacementPolicy" Value="key:ExtendedProductionPlacement" />
|
||||
<Policy Type="ConfirmationPolicy" Value="key:NoConfirmation" />
|
||||
</Policies>
|
||||
</Resource>
|
||||
|
||||
<!--
|
||||
Assembly
|
||||
-->
|
||||
<Resource Id="bicycleAssembly" Name="Bicycle assemply" Type="Assembly">
|
||||
<TimedState Id="Capacity" Name="Machine Usage" Type="Float">
|
||||
<Value Time="1970-01-01T00:00:00.000+01:00" Value="0.0" />
|
||||
</TimedState>
|
||||
<Policies>
|
||||
<Policy Type="PlanningPolicy" Value="key:NoPlanning" />
|
||||
<Policy Type="PlacementPolicy" Value="key:ExtendedProductionPlacement" />
|
||||
<Policy Type="ConfirmationPolicy" Value="key:NoConfirmation" />
|
||||
</Policies>
|
||||
</Resource>
|
||||
|
||||
<!-- Activity Templates -->
|
||||
<!-- TODO: Add activity templates -->
|
||||
|
||||
<!--
|
||||
Activities
|
||||
-->
|
||||
<Activity Id="purchaseAct001" Name="Purchase Gears" Type="ToStockGears" TimeOrdering="Series">
|
||||
<Action Id="toStock" Name="Gears to stock" ResourceId="gears" ResourceType="Article" Type="Produce" State="CREATED">
|
||||
<ParameterBag Id="objectives" Name="Production goals" Type="Objectives">
|
||||
<Parameter Id="quantity" Name="Quantity" Type="Float" Value="1" />
|
||||
<Parameter Id="duration" Name="Duration" Type="Duration" Value="PT0S" />
|
||||
</ParameterBag>
|
||||
</Action>
|
||||
</Activity>
|
||||
|
||||
<Activity Id="productionAct001" Name="Bicycle Production" Type="ProductionBicycle" TimeOrdering="Series">
|
||||
|
||||
<Activity Id="componentProduction" Name="Production of components" Type="Production" TimeOrdering="Series">
|
||||
|
||||
<Action Id="consumeGears" Name="Gears" ResourceId="gears" ResourceType="Article" Type="Consume" State="CREATED">
|
||||
<ParameterBag Id="objectives" Name="Production goals" Type="Objectives">
|
||||
<Parameter Id="quantity" Name="Quantity" Type="Float" Value="1" />
|
||||
<Parameter Id="duration" Name="Duration" Type="Duration" Value="PT0S" />
|
||||
</ParameterBag>
|
||||
</Action>
|
||||
|
||||
<Activity Id="handlebarProduction" Name="Production handlebar" Type="Production" TimeOrdering="Series">
|
||||
<Action Id="produce" Name="Production handlebars" ResourceId="handlebarProduction" ResourceType="Machine" Type="Use" State="CREATED">
|
||||
<ParameterBag Id="objectives" Name="Production goals" Type="Objectives">
|
||||
<Parameter Id="quantity" Name="Quantity" Type="Float" Value="1" />
|
||||
<Parameter Id="duration" Name="Duration" Type="Duration" Value="PT5M" />
|
||||
</ParameterBag>
|
||||
</Action>
|
||||
<Action Id="toStock" Name="Handlebars ToStock" ResourceId="handlebars" ResourceType="Article" Type="Produce" State="CREATED">
|
||||
<ParameterBag Id="objectives" Name="Production goals" Type="Objectives">
|
||||
<Parameter Id="quantity" Name="Quantity" Type="Float" Value="1" />
|
||||
<Parameter Id="duration" Name="Duration" Type="Duration" Value="PT1M" />
|
||||
</ParameterBag>
|
||||
</Action>
|
||||
</Activity>
|
||||
|
||||
<Activity Id="frameProduction" Name="Production frame" Type="Production" TimeOrdering="Series">
|
||||
<Action Id="produce" Name="Production frame" ResourceId="frameProduction" ResourceType="Machine" Type="Use" State="CREATED">
|
||||
<ParameterBag Id="objectives" Name="Production goals" Type="Objectives">
|
||||
<Parameter Id="quantity" Name="Quantity" Type="Float" Value="1" />
|
||||
<Parameter Id="duration" Name="Duration" Type="Duration" Value="PT5M" />
|
||||
</ParameterBag>
|
||||
</Action>
|
||||
<Action Id="toStock" Name="Frame ToStock" ResourceId="frame" ResourceType="Article" Type="Produce" State="CREATED">
|
||||
<ParameterBag Id="objectives" Name="Production goals" Type="Objectives">
|
||||
<Parameter Id="quantity" Name="Quantity" Type="Float" Value="1" />
|
||||
<Parameter Id="duration" Name="Duration" Type="Duration" Value="PT1M" />
|
||||
</ParameterBag>
|
||||
</Action>
|
||||
</Activity>
|
||||
|
||||
<Activity Id="saddleProduction" Name="Production saddle" Type="Production" TimeOrdering="Series">
|
||||
<Action Id="produce" Name="Production saddle" ResourceId="saddleProduction" ResourceType="Machine" Type="Use" State="CREATED">
|
||||
<ParameterBag Id="objectives" Name="Production goals" Type="Objectives">
|
||||
<Parameter Id="quantity" Name="Quantity" Type="Float" Value="1" />
|
||||
<Parameter Id="duration" Name="Duration" Type="Duration" Value="PT5M" />
|
||||
</ParameterBag>
|
||||
</Action>
|
||||
<Action Id="toStock" Name="Saddle ToStock" ResourceId="frame" ResourceType="Article" Type="Produce" State="CREATED">
|
||||
<ParameterBag Id="objectives" Name="Production goals" Type="Objectives">
|
||||
<Parameter Id="quantity" Name="Quantity" Type="Float" Value="1" />
|
||||
<Parameter Id="duration" Name="Duration" Type="Duration" Value="PT1M" />
|
||||
</ParameterBag>
|
||||
</Action>
|
||||
</Activity>
|
||||
|
||||
<Activity Id="wheelProduction" Name="Production wheel" Type="Production" TimeOrdering="Series">
|
||||
<Action Id="produce" Name="Production saddle" ResourceId="saddleProduction" ResourceType="Machine" Type="Use" State="CREATED">
|
||||
<ParameterBag Id="objectives" Name="Production goals" Type="Objectives">
|
||||
<Parameter Id="quantity" Name="Quantity" Type="Float" Value="1" />
|
||||
<Parameter Id="duration" Name="Duration" Type="Duration" Value="PT5M" />
|
||||
</ParameterBag>
|
||||
</Action>
|
||||
<Action Id="toStock" Name="Saddle ToStock" ResourceId="frame" ResourceType="Article" Type="Produce" State="CREATED">
|
||||
<ParameterBag Id="objectives" Name="Production goals" Type="Objectives">
|
||||
<Parameter Id="quantity" Name="Quantity" Type="Float" Value="1" />
|
||||
<Parameter Id="duration" Name="Duration" Type="Duration" Value="PT1M" />
|
||||
</ParameterBag>
|
||||
</Action>
|
||||
</Activity>
|
||||
|
||||
<Activity Id="brakeProduction" Name="Herstellen Bremsen" Type="Production" TimeOrdering="Series">
|
||||
<Action Id="produce" Name="Production saddle" ResourceId="saddleProduction" ResourceType="Machine" Type="Use" State="CREATED">
|
||||
<ParameterBag Id="objectives" Name="Production goals" Type="Objectives">
|
||||
<Parameter Id="quantity" Name="Quantity" Type="Float" Value="1" />
|
||||
<Parameter Id="duration" Name="Duration" Type="Duration" Value="PT5M" />
|
||||
</ParameterBag>
|
||||
</Action>
|
||||
<Action Id="toStock" Name="Saddle ToStock" ResourceId="frame" ResourceType="Article" Type="Produce" State="CREATED">
|
||||
<ParameterBag Id="objectives" Name="Production goals" Type="Objectives">
|
||||
<Parameter Id="quantity" Name="Quantity" Type="Float" Value="1" />
|
||||
<Parameter Id="duration" Name="Duration" Type="Duration" Value="PT1M" />
|
||||
</ParameterBag>
|
||||
</Action>
|
||||
</Activity>
|
||||
|
||||
</Activity>
|
||||
|
||||
<Action Id="assembly" Name="Bicycle assemble" ResourceId="bicycleAssembly" ResourceType="Assembly" Type="Use" State="CREATED">
|
||||
<ParameterBag Id="objectives" Name="Production goals" Type="Objectives">
|
||||
<Parameter Id="quantity" Name="Quantity" Type="Float" Value="1" />
|
||||
<Parameter Id="duration" Name="Duration" Type="Duration" Value="PT5M" />
|
||||
</ParameterBag>
|
||||
</Action>
|
||||
|
||||
<Action Id="toStock" Name="Bicycle to stock" ResourceId="bicycle" ResourceType="Product" Type="Produce" State="CREATED">
|
||||
<ParameterBag Id="objectives" Name="Production goals" Type="Objectives">
|
||||
<Parameter Id="quantity" Name="Quantity" Type="Float" Value="1" />
|
||||
<Parameter Id="duration" Name="Duration" Type="Duration" Value="PT1M" />
|
||||
</ParameterBag>
|
||||
</Action>
|
||||
</Activity>
|
||||
|
||||
<Activity Id="saleAct001" Name="Sale of Bicycle" Type="FromStockBicycle" TimeOrdering="Series">
|
||||
<Action Id="consumeBicycle" Name="Consume Bicycle" ResourceId="bicycle" ResourceType="Product" Type="Consume" State="CREATED">
|
||||
<ParameterBag Id="objectives" Name="Production goals" Type="Objectives">
|
||||
<Parameter Id="quantity" Name="Quantity" Type="Float" Value="1" />
|
||||
<Parameter Id="duration" Name="Duration" Type="Duration" Value="PT0S" />
|
||||
</ParameterBag>
|
||||
</Action>
|
||||
</Activity>
|
||||
|
||||
</StrolchModel>
|
Loading…
Reference in New Issue