workflow
Named
name
Workflow
transition
AbstractState
associatedClass
FromState
outboundTransitions
ToState
inboundTransitions
StateContainer
startState
states
endState
IntermediateState
stateContainer
StateTransition
from
to
Start
stateContainer
End
stateContainer
Task
Processing
Decision
Fork
Join
SubProcess
<?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="workflow"
    nsURI="http://demo.workflow.v0" nsPrefix="demo.workflow">
  <eClassifiers xsi:type="ecore:EClass" name="Named" abstract="true" eSuperTypes="http://www.eclipse.org/emf/2002/Ecore#//EObject">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
        iD="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Workflow" eSuperTypes="#//Named #//StateContainer">
    <eStructuralFeatures xsi:type="ecore:EReference" name="transition" upperBound="-1"
        eType="#//StateTransition" containment="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="AbstractState" abstract="true" eSuperTypes="#//Named">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="associatedClass" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="FromState" abstract="true" interface="true">
    <eStructuralFeatures xsi:type="ecore:EReference" name="outboundTransitions" lowerBound="1"
        upperBound="-1" eType="#//StateTransition" eOpposite="#//StateTransition/from"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="ToState" abstract="true" interface="true">
    <eStructuralFeatures xsi:type="ecore:EReference" name="inboundTransitions" lowerBound="1"
        upperBound="-1" eType="#//StateTransition" eOpposite="#//StateTransition/to"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="StateContainer" abstract="true">
    <eStructuralFeatures xsi:type="ecore:EReference" name="startState" lowerBound="1"
        eType="#//Start" containment="true" eOpposite="#//Start/stateContainer"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="states" upperBound="-1"
        eType="#//IntermediateState" containment="true" eOpposite="#//IntermediateState/stateContainer"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="endState" lowerBound="1"
        eType="#//End" containment="true" eOpposite="#//End/stateContainer"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="IntermediateState" abstract="true" eSuperTypes="#//AbstractState #//FromState #//ToState">
    <eStructuralFeatures xsi:type="ecore:EReference" name="stateContainer" lowerBound="1"
        eType="#//StateContainer" eOpposite="#//StateContainer/states"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="StateTransition" eSuperTypes="#//Named">
    <eStructuralFeatures xsi:type="ecore:EReference" name="from" lowerBound="1" eType="#//FromState"
        eOpposite="#//FromState/outboundTransitions"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="to" lowerBound="1" eType="#//ToState"
        eOpposite="#//ToState/inboundTransitions"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Start" eSuperTypes="#//AbstractState #//FromState">
    <eStructuralFeatures xsi:type="ecore:EReference" name="stateContainer" lowerBound="1"
        eType="#//StateContainer" eOpposite="#//StateContainer/startState"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="End" eSuperTypes="#//AbstractState #//ToState">
    <eStructuralFeatures xsi:type="ecore:EReference" name="stateContainer" lowerBound="1"
        eType="#//StateContainer" eOpposite="#//StateContainer/endState"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Task" eSuperTypes="#//IntermediateState"/>
  <eClassifiers xsi:type="ecore:EClass" name="Processing" eSuperTypes="#//IntermediateState"/>
  <eClassifiers xsi:type="ecore:EClass" name="Decision" eSuperTypes="#//IntermediateState"/>
  <eClassifiers xsi:type="ecore:EClass" name="Fork" eSuperTypes="#//IntermediateState"/>
  <eClassifiers xsi:type="ecore:EClass" name="Join" eSuperTypes="#//IntermediateState"/>
  <eClassifiers xsi:type="ecore:EClass" name="SubProcess" eSuperTypes="#//StateContainer #//IntermediateState"/>
</ecore:EPackage>

{"directed":true,"nodes":[{"nsPrefix":"demo.workflow","nsURI":"http://demo.workflow.v0","name":"workflow","id":0,"eClass":"EPackage"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Named","instanceClass":null,"abstract":true,"id":1,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Workflow","instanceClass":null,"abstract":false,"id":2,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"AbstractState","instanceClass":null,"abstract":true,"id":3,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"FromState","instanceClass":null,"abstract":true,"id":4,"interface":true,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"ToState","instanceClass":null,"abstract":true,"id":5,"interface":true,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"StateContainer","instanceClass":null,"abstract":true,"id":6,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"IntermediateState","instanceClass":null,"abstract":true,"id":7,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"StateTransition","instanceClass":null,"abstract":false,"id":8,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Start","instanceClass":null,"abstract":false,"id":9,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"End","instanceClass":null,"abstract":false,"id":10,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Task","instanceClass":null,"abstract":false,"id":11,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Processing","instanceClass":null,"abstract":false,"id":12,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Decision","instanceClass":null,"abstract":false,"id":13,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Fork","instanceClass":null,"abstract":false,"id":14,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Join","instanceClass":null,"abstract":false,"id":15,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"SubProcess","instanceClass":null,"abstract":false,"id":16,"interface":false,"eClass":"EClass"},{"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":true,"id":17,"derived":false},{"id":18,"eClass":"EGenericType"},{"id":19,"eClass":"EGenericType"},{"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":"transition","changeable":true,"resolveProxies":true,"lowerBound":0,"id":20,"derived":false},{"id":21,"eClass":"EGenericType"},{"id":22,"eClass":"EGenericType"},{"id":23,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"associatedClass","changeable":true,"lowerBound":0,"iD":false,"id":24,"derived":false},{"id":25,"eClass":"EGenericType"},{"id":26,"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":"outboundTransitions","changeable":true,"resolveProxies":true,"lowerBound":1,"id":27,"derived":false},{"id":28,"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":"from","changeable":true,"resolveProxies":true,"lowerBound":1,"id":29,"derived":false},{"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":"inboundTransitions","changeable":true,"resolveProxies":true,"lowerBound":1,"id":30,"derived":false},{"id":31,"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":"to","changeable":true,"resolveProxies":true,"lowerBound":1,"id":32,"derived":false},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"startState","changeable":true,"resolveProxies":true,"lowerBound":1,"id":33,"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":"states","changeable":true,"resolveProxies":true,"lowerBound":0,"id":34,"derived":false},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"endState","changeable":true,"resolveProxies":true,"lowerBound":1,"id":35,"derived":false},{"id":36,"eClass":"EGenericType"},{"container":true,"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":"stateContainer","changeable":true,"resolveProxies":true,"lowerBound":1,"id":37,"derived":false},{"id":38,"eClass":"EGenericType"},{"container":true,"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":"stateContainer","changeable":true,"resolveProxies":true,"lowerBound":1,"id":39,"derived":false},{"id":40,"eClass":"EGenericType"},{"container":true,"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":"stateContainer","changeable":true,"resolveProxies":true,"lowerBound":1,"id":41,"derived":false},{"id":42,"eClass":"EGenericType"},{"id":43,"eClass":"EGenericType"},{"id":44,"eClass":"EGenericType"},{"id":45,"eClass":"EGenericType"},{"id":46,"eClass":"EGenericType"},{"id":47,"eClass":"EGenericType"},{"id":48,"eClass":"EGenericType"},{"id":49,"eClass":"EGenericType"},{"id":50,"eClass":"EGenericType"},{"id":51,"eClass":"EGenericType"},{"id":52,"eClass":"EGenericType"},{"id":53,"eClass":"EGenericType"},{"id":54,"eClass":"EGenericType"},{"id":55,"eClass":"EGenericType"},{"id":56,"eClass":"EGenericType"},{"id":57,"eClass":"EGenericType"},{"id":58,"eClass":"EGenericType"},{"id":59,"eClass":"EGenericType"},{"id":60,"eClass":"EGenericType"},{"id":61,"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":0,"target":10},{"source":0,"target":11},{"source":0,"target":12},{"source":0,"target":13},{"source":0,"target":14},{"source":0,"target":15},{"source":0,"target":16},{"source":1,"target":0},{"source":1,"target":17},{"source":1,"target":18},{"source":17,"target":19},{"source":17,"target":1},{"source":2,"target":0},{"source":2,"target":1},{"source":2,"target":6},{"source":2,"target":20},{"source":2,"target":21},{"source":2,"target":22},{"source":20,"target":8},{"source":20,"target":23},{"source":20,"target":2},{"source":23,"target":8},{"source":21,"target":1},{"source":22,"target":6},{"source":3,"target":0},{"source":3,"target":1},{"source":3,"target":24},{"source":3,"target":25},{"source":24,"target":26},{"source":24,"target":3},{"source":25,"target":1},{"source":4,"target":0},{"source":4,"target":27},{"source":27,"target":8},{"source":27,"target":28},{"source":27,"target":4},{"source":27,"target":29},{"source":28,"target":8},{"source":5,"target":0},{"source":5,"target":30},{"source":30,"target":8},{"source":30,"target":31},{"source":30,"target":5},{"source":30,"target":32},{"source":31,"target":8},{"source":6,"target":0},{"source":6,"target":33},{"source":6,"target":34},{"source":6,"target":35},{"source":33,"target":9},{"source":33,"target":36},{"source":33,"target":6},{"source":33,"target":37},{"source":36,"target":9},{"source":34,"target":7},{"source":34,"target":38},{"source":34,"target":6},{"source":34,"target":39},{"source":38,"target":7},{"source":35,"target":10},{"source":35,"target":40},{"source":35,"target":6},{"source":35,"target":41},{"source":40,"target":10},{"source":7,"target":0},{"source":7,"target":3},{"source":7,"target":4},{"source":7,"target":5},{"source":7,"target":39},{"source":7,"target":42},{"source":7,"target":43},{"source":7,"target":44},{"source":39,"target":6},{"source":39,"target":45},{"source":39,"target":7},{"source":39,"target":34},{"source":45,"target":6},{"source":42,"target":3},{"source":43,"target":4},{"source":44,"target":5},{"source":8,"target":0},{"source":8,"target":1},{"source":8,"target":29},{"source":8,"target":32},{"source":8,"target":46},{"source":29,"target":4},{"source":29,"target":47},{"source":29,"target":8},{"source":29,"target":27},{"source":47,"target":4},{"source":32,"target":5},{"source":32,"target":48},{"source":32,"target":8},{"source":32,"target":30},{"source":48,"target":5},{"source":46,"target":1},{"source":9,"target":0},{"source":9,"target":3},{"source":9,"target":4},{"source":9,"target":37},{"source":9,"target":49},{"source":9,"target":50},{"source":37,"target":6},{"source":37,"target":51},{"source":37,"target":9},{"source":37,"target":33},{"source":51,"target":6},{"source":49,"target":3},{"source":50,"target":4},{"source":10,"target":0},{"source":10,"target":3},{"source":10,"target":5},{"source":10,"target":41},{"source":10,"target":52},{"source":10,"target":53},{"source":41,"target":6},{"source":41,"target":54},{"source":41,"target":10},{"source":41,"target":35},{"source":54,"target":6},{"source":52,"target":3},{"source":53,"target":5},{"source":11,"target":0},{"source":11,"target":7},{"source":11,"target":55},{"source":55,"target":7},{"source":12,"target":0},{"source":12,"target":7},{"source":12,"target":56},{"source":56,"target":7},{"source":13,"target":0},{"source":13,"target":7},{"source":13,"target":57},{"source":57,"target":7},{"source":14,"target":0},{"source":14,"target":7},{"source":14,"target":58},{"source":58,"target":7},{"source":15,"target":0},{"source":15,"target":7},{"source":15,"target":59},{"source":59,"target":7},{"source":16,"target":0},{"source":16,"target":6},{"source":16,"target":7},{"source":16,"target":60},{"source":16,"target":61},{"source":60,"target":6},{"source":61,"target":7}],"multigraph":true}