simplepdl
WorkSequenceType
startToStart
startToStart
finishToStart
finishToStart
startToFinish
startToFinish
finishToFinish
finishToFinish
Process
name
processElements
ProcessElement
process
WorkDefinition
linksToPredecessors
linksToSuccessors
name
needSets
WorkSequence
linkType
predecessor
successor
Guidance
element
text
Ressource
name
quantity
Need
ressource
quantity
needSet
NeedSet
name
needs
wd
<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0"
    xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="simplepdl"
    nsURI="http://simplepdl" nsPrefix="simplepdl">
  <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
    <details key="invocationDelegates" value="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot"/>
    <details key="settingDelegates" value="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot"/>
    <details key="validationDelegates" value="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot"/>
  </eAnnotations>
  <eClassifiers xsi:type="ecore:EEnum" name="WorkSequenceType">
    <eLiterals name="startToStart"/>
    <eLiterals name="finishToStart" value="1"/>
    <eLiterals name="startToFinish" value="2"/>
    <eLiterals name="finishToFinish" value="3"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Process">
    <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
      <details key="constraints" value="sameWDName sameRessourcesName nameForbidden sameNeedSetsName"/>
    </eAnnotations>
    <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot">
      <details key="sameWDName" value="self.processElements->select(p : ProcessElement | p.oclIsTypeOf(WorkDefinition))->forAll(j : ProcessElement, k : ProcessElement | j &lt;> k implies j.name &lt;> k.name)"/>
      <details key="sameRessourcesName" value="self.processElements->select(p : ProcessElement | p.oclIsTypeOf(Ressource))->forAll(j : ProcessElement, k : ProcessElement | j &lt;> k implies j.name &lt;> k.name)"/>
      <details key="nameForbidden" value="name &lt;> 'Process'"/>
      <details key="sameNeedSetsName" value="self.processElements->select(p : ProcessElement | p.oclIsTypeOf(NeedSet))->forAll(j : ProcessElement, k : ProcessElement | j &lt;> k implies j.name &lt;> k.name)"/>
    </eAnnotations>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="processElements" upperBound="-1"
        eType="#//ProcessElement" containment="true" eOpposite="#//ProcessElement/process"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="ProcessElement" abstract="true">
    <eStructuralFeatures xsi:type="ecore:EReference" name="process" lowerBound="1"
        eType="#//Process" changeable="false" volatile="true" transient="true" derived="true"
        resolveProxies="false" eOpposite="#//Process/processElements">
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot">
        <details key="derivation" value="Process.allInstances()->select(p : Process | p.processElements->includes(self))->asSequence()->first()"/>
      </eAnnotations>
    </eStructuralFeatures>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="WorkDefinition" eSuperTypes="#//ProcessElement">
    <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
      <details key="constraints" value="voidName"/>
    </eAnnotations>
    <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot">
      <details key="voidName" value="name &lt;> ''"/>
    </eAnnotations>
    <eStructuralFeatures xsi:type="ecore:EReference" name="linksToPredecessors" upperBound="-1"
        eType="#//WorkSequence" eOpposite="#//WorkSequence/successor"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="linksToSuccessors" upperBound="-1"
        eType="#//WorkSequence" eOpposite="#//WorkSequence/predecessor"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="needSets" upperBound="-1"
        eType="#//NeedSet" eOpposite="#//NeedSet/wd"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="WorkSequence" eSuperTypes="#//ProcessElement">
    <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
      <details key="constraints" value="previousWDinSameProcess reflexivity nextWDinSameProcess"/>
    </eAnnotations>
    <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot">
      <details key="previousWDinSameProcess" value="self.process = self.predecessor.process"/>
      <details key="reflexivity" value="self.predecessor &lt;> self.successor"/>
      <details key="nextWDinSameProcess" value="self.process = self.successor.process"/>
    </eAnnotations>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="linkType" lowerBound="1"
        eType="#//WorkSequenceType"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="predecessor" lowerBound="1"
        eType="#//WorkDefinition" eOpposite="#//WorkDefinition/linksToSuccessors"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="successor" lowerBound="1"
        eType="#//WorkDefinition" eOpposite="#//WorkDefinition/linksToPredecessors"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Guidance" eSuperTypes="#//ProcessElement">
    <eStructuralFeatures xsi:type="ecore:EReference" name="element" upperBound="-1"
        eType="#//ProcessElement"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="text" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Ressource" eSuperTypes="#//ProcessElement">
    <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
      <details key="constraints" value="voidName positiveQuantity"/>
    </eAnnotations>
    <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot">
      <details key="voidName" value="name &lt;> ''"/>
      <details key="positiveQuantity" value="quantity >= 0"/>
    </eAnnotations>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="quantity" lowerBound="1"
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Need" eSuperTypes="#//ProcessElement">
    <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
      <details key="constraints" value="positiveQuantity"/>
    </eAnnotations>
    <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot">
      <details key="positiveQuantity" value="quantity > 0"/>
    </eAnnotations>
    <eStructuralFeatures xsi:type="ecore:EReference" name="ressource" lowerBound="1"
        eType="#//Ressource"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="quantity" lowerBound="1"
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="needSet" lowerBound="1"
        eType="#//NeedSet" eOpposite="#//NeedSet/needs"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="NeedSet" eSuperTypes="#//ProcessElement">
    <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
      <details key="constraints" value="voidName"/>
    </eAnnotations>
    <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot">
      <details key="voidName" value="name &lt;> ''"/>
    </eAnnotations>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="needs" lowerBound="1" upperBound="-1"
        eType="#//Need" eOpposite="#//Need/needSet"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="wd" lowerBound="1" eType="#//WorkDefinition"
        eOpposite="#//WorkDefinition/needSets"/>
  </eClassifiers>
</ecore:EPackage>

{"directed":true,"nodes":[{"nsPrefix":"simplepdl","nsURI":"http://simplepdl","name":"simplepdl","id":0,"eClass":"EPackage"},{"instanceTypeName":null,"instanceClassName":null,"name":"WorkSequenceType","instanceClass":null,"id":1,"serializable":true,"eClass":"EEnum"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Process","instanceClass":null,"abstract":false,"id":2,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"ProcessElement","instanceClass":null,"abstract":true,"id":3,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"WorkDefinition","instanceClass":null,"abstract":false,"id":4,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"WorkSequence","instanceClass":null,"abstract":false,"id":5,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Guidance","instanceClass":null,"abstract":false,"id":6,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Ressource","instanceClass":null,"abstract":false,"id":7,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Need","instanceClass":null,"abstract":false,"id":8,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"NeedSet","instanceClass":null,"abstract":false,"id":9,"interface":false,"eClass":"EClass"},{"name":"startToStart","id":10,"value":0,"literal":"startToStart","eClass":"EEnumLiteral"},{"name":"finishToStart","id":11,"value":1,"literal":"finishToStart","eClass":"EEnumLiteral"},{"name":"startToFinish","id":12,"value":2,"literal":"startToFinish","eClass":"EEnumLiteral"},{"name":"finishToFinish","id":13,"value":3,"literal":"finishToFinish","eClass":"EEnumLiteral"},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"name","changeable":true,"lowerBound":1,"iD":false,"id":14,"derived":false},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"processElements","changeable":true,"resolveProxies":true,"lowerBound":0,"id":15,"derived":false},{"id":16,"eClass":"EGenericType"},{"id":17,"eClass":"EGenericType"},{"container":true,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":true,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":true,"unique":true,"name":"process","changeable":false,"resolveProxies":false,"lowerBound":1,"id":18,"derived":true},{"id":19,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"linksToPredecessors","changeable":true,"resolveProxies":true,"lowerBound":0,"id":20,"derived":false},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"linksToSuccessors","changeable":true,"resolveProxies":true,"lowerBound":0,"id":21,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"name","changeable":true,"lowerBound":1,"iD":false,"id":22,"derived":false},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"needSets","changeable":true,"resolveProxies":true,"lowerBound":0,"id":23,"derived":false},{"id":24,"eClass":"EGenericType"},{"id":25,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"successor","changeable":true,"resolveProxies":true,"lowerBound":1,"id":26,"derived":false},{"id":27,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"predecessor","changeable":true,"resolveProxies":true,"lowerBound":1,"id":28,"derived":false},{"id":29,"eClass":"EGenericType"},{"id":30,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"wd","changeable":true,"resolveProxies":true,"lowerBound":1,"id":31,"derived":false},{"ordered":true,"upperBound":1,"volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"linkType","changeable":true,"lowerBound":1,"iD":false,"id":32,"derived":false},{"id":33,"eClass":"EGenericType"},{"id":34,"eClass":"EGenericType"},{"id":35,"eClass":"EGenericType"},{"id":36,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"element","changeable":true,"resolveProxies":true,"lowerBound":0,"id":37,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"text","changeable":true,"lowerBound":1,"iD":false,"id":38,"derived":false},{"id":39,"eClass":"EGenericType"},{"id":40,"eClass":"EGenericType"},{"id":41,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"name","changeable":true,"lowerBound":1,"iD":false,"id":42,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":0,"volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"quantity","changeable":true,"lowerBound":1,"iD":false,"id":43,"derived":false},{"id":44,"eClass":"EGenericType"},{"id":45,"eClass":"EGenericType"},{"id":46,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"ressource","changeable":true,"resolveProxies":true,"lowerBound":1,"id":47,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":0,"volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"quantity","changeable":true,"lowerBound":1,"iD":false,"id":48,"derived":false},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"needSet","changeable":true,"resolveProxies":true,"lowerBound":1,"id":49,"derived":false},{"id":50,"eClass":"EGenericType"},{"id":51,"eClass":"EGenericType"},{"id":52,"eClass":"EGenericType"},{"id":53,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"needs","changeable":true,"resolveProxies":true,"lowerBound":1,"id":54,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"name","changeable":true,"lowerBound":1,"iD":false,"id":55,"derived":false},{"id":56,"eClass":"EGenericType"},{"id":57,"eClass":"EGenericType"},{"id":58,"eClass":"EGenericType"},{"id":59,"eClass":"EGenericType"}],"links":[{"source":0,"target":1},{"source":0,"target":2},{"source":0,"target":3},{"source":0,"target":4},{"source":0,"target":5},{"source":0,"target":6},{"source":0,"target":7},{"source":0,"target":8},{"source":0,"target":9},{"source":1,"target":0},{"source":1,"target":10},{"source":1,"target":11},{"source":1,"target":12},{"source":1,"target":13},{"source":10,"target":1},{"source":11,"target":1},{"source":12,"target":1},{"source":13,"target":1},{"source":2,"target":0},{"source":2,"target":14},{"source":2,"target":15},{"source":14,"target":16},{"source":14,"target":2},{"source":15,"target":3},{"source":15,"target":17},{"source":15,"target":2},{"source":15,"target":18},{"source":17,"target":3},{"source":3,"target":0},{"source":3,"target":18},{"source":18,"target":2},{"source":18,"target":19},{"source":18,"target":3},{"source":18,"target":15},{"source":19,"target":2},{"source":4,"target":0},{"source":4,"target":3},{"source":4,"target":20},{"source":4,"target":21},{"source":4,"target":22},{"source":4,"target":23},{"source":4,"target":24},{"source":20,"target":5},{"source":20,"target":25},{"source":20,"target":4},{"source":20,"target":26},{"source":25,"target":5},{"source":21,"target":5},{"source":21,"target":27},{"source":21,"target":4},{"source":21,"target":28},{"source":27,"target":5},{"source":22,"target":29},{"source":22,"target":4},{"source":23,"target":9},{"source":23,"target":30},{"source":23,"target":4},{"source":23,"target":31},{"source":30,"target":9},{"source":24,"target":3},{"source":5,"target":0},{"source":5,"target":3},{"source":5,"target":32},{"source":5,"target":28},{"source":5,"target":26},{"source":5,"target":33},{"source":32,"target":1},{"source":32,"target":34},{"source":32,"target":5},{"source":34,"target":1},{"source":28,"target":4},{"source":28,"target":35},{"source":28,"target":5},{"source":28,"target":21},{"source":35,"target":4},{"source":26,"target":4},{"source":26,"target":36},{"source":26,"target":5},{"source":26,"target":20},{"source":36,"target":4},{"source":33,"target":3},{"source":6,"target":0},{"source":6,"target":3},{"source":6,"target":37},{"source":6,"target":38},{"source":6,"target":39},{"source":37,"target":3},{"source":37,"target":40},{"source":37,"target":6},{"source":40,"target":3},{"source":38,"target":41},{"source":38,"target":6},{"source":39,"target":3},{"source":7,"target":0},{"source":7,"target":3},{"source":7,"target":42},{"source":7,"target":43},{"source":7,"target":44},{"source":42,"target":45},{"source":42,"target":7},{"source":43,"target":46},{"source":43,"target":7},{"source":44,"target":3},{"source":8,"target":0},{"source":8,"target":3},{"source":8,"target":47},{"source":8,"target":48},{"source":8,"target":49},{"source":8,"target":50},{"source":47,"target":7},{"source":47,"target":51},{"source":47,"target":8},{"source":51,"target":7},{"source":48,"target":52},{"source":48,"target":8},{"source":49,"target":9},{"source":49,"target":53},{"source":49,"target":8},{"source":49,"target":54},{"source":53,"target":9},{"source":50,"target":3},{"source":9,"target":0},{"source":9,"target":3},{"source":9,"target":55},{"source":9,"target":54},{"source":9,"target":31},{"source":9,"target":56},{"source":55,"target":57},{"source":55,"target":9},{"source":54,"target":8},{"source":54,"target":58},{"source":54,"target":9},{"source":54,"target":49},{"source":58,"target":8},{"source":31,"target":4},{"source":31,"target":59},{"source":31,"target":9},{"source":31,"target":23},{"source":59,"target":4},{"source":56,"target":3}],"multigraph":true}