FlowDesigner
InitialState
initialize
FinalState
finalize
ActionState
ViewState
view
Event
event
nextState
action
guard
Source
canBeSource
target
events
Target
canBeTarget
source
NamedState
name
activity
exit
entry
Flow
findStateByName
name
hasLastState
initialState
states
finalState
Action
java.lang.String
java.lang.String
<?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="FlowDesigner"
    nsURI="http://piece-framework.com/piece-ide/flowdesigner/1.0" nsPrefix="FlowDesigner">
  <eClassifiers xsi:type="ecore:EClass" name="InitialState" eSuperTypes="#//Source">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="initialize" eType="#//Action"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="FinalState" eSuperTypes="#//Target">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="finalize" eType="#//Action"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="ActionState" eSuperTypes="#//NamedState"/>
  <eClassifiers xsi:type="ecore:EClass" name="ViewState" eSuperTypes="#//NamedState">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="view" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Event">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="event" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="nextState" lowerBound="1"
        eType="#//Target"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="action" eType="#//Action"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="guard" eType="#//Action"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Source" abstract="true" interface="true">
    <eOperations name="canBeSource" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
      <eParameters name="target" eType="#//Target"/>
    </eOperations>
    <eStructuralFeatures xsi:type="ecore:EReference" name="events" upperBound="-1"
        eType="#//Event" containment="true" eKeys="#//Event/event"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Target" abstract="true" interface="true">
    <eOperations name="canBeTarget" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
      <eParameters name="source" eType="#//Source"/>
    </eOperations>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="NamedState" abstract="true" eSuperTypes="#//Source #//Target">
    <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="activity" eType="#//Action"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="exit" eType="#//Action"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="entry" eType="#//Action"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Flow">
    <eOperations name="findStateByName" eType="#//NamedState">
      <eParameters name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    </eOperations>
    <eOperations name="hasLastState" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="initialState" lowerBound="1"
        eType="#//InitialState" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="states" upperBound="-1"
        eType="#//NamedState" containment="true" eKeys="#//NamedState/name"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="finalState" eType="#//FinalState"
        containment="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EDataType" name="Action" instanceClassName="java.lang.String"/>
</ecore:EPackage>

{"directed":true,"nodes":[{"nsPrefix":"FlowDesigner","nsURI":"http://piece-framework.com/piece-ide/flowdesigner/1.0","name":"FlowDesigner","id":0,"eClass":"EPackage"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"InitialState","instanceClass":null,"abstract":false,"id":1,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"FinalState","instanceClass":null,"abstract":false,"id":2,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"ActionState","instanceClass":null,"abstract":false,"id":3,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"ViewState","instanceClass":null,"abstract":false,"id":4,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Event","instanceClass":null,"abstract":false,"id":5,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Source","instanceClass":null,"abstract":true,"id":6,"interface":true,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Target","instanceClass":null,"abstract":true,"id":7,"interface":true,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"NamedState","instanceClass":null,"abstract":true,"id":8,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Flow","instanceClass":null,"abstract":false,"id":9,"interface":false,"eClass":"EClass"},{"instanceTypeName":"java.lang.String","defaultValue":null,"instanceClassName":"java.lang.String","name":"Action","instanceClass":"java.lang.String","id":10,"serializable":true,"eClass":"EDataType"},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"initialize","changeable":true,"lowerBound":0,"iD":false,"id":11,"derived":false},{"id":12,"eClass":"EGenericType"},{"id":13,"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":"finalize","changeable":true,"lowerBound":0,"iD":false,"id":14,"derived":false},{"id":15,"eClass":"EGenericType"},{"id":16,"eClass":"EGenericType"},{"id":17,"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":"view","changeable":true,"lowerBound":0,"iD":false,"id":18,"derived":false},{"id":19,"eClass":"EGenericType"},{"id":20,"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":"event","changeable":true,"lowerBound":0,"iD":false,"id":21,"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":"nextState","changeable":true,"resolveProxies":true,"lowerBound":1,"id":22,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"action","changeable":true,"lowerBound":0,"iD":false,"id":23,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"guard","changeable":true,"lowerBound":0,"iD":false,"id":24,"derived":false},{"id":25,"eClass":"EGenericType"},{"id":26,"eClass":"EGenericType"},{"id":27,"eClass":"EGenericType"},{"id":28,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"unique":true,"name":"canBeSource","lowerBound":0,"id":29,"many":false,"required":false,"eClass":"EOperation"},{"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":"events","changeable":true,"resolveProxies":true,"lowerBound":0,"id":30,"derived":false},{"id":31,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"unique":true,"name":"target","lowerBound":0,"id":32,"many":false,"required":false,"eClass":"EParameter"},{"id":33,"eClass":"EGenericType"},{"id":34,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"unique":true,"name":"canBeTarget","lowerBound":0,"id":35,"many":false,"required":false,"eClass":"EOperation"},{"id":36,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"unique":true,"name":"source","lowerBound":0,"id":37,"many":false,"required":false,"eClass":"EParameter"},{"id":38,"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":39,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"activity","changeable":true,"lowerBound":0,"iD":false,"id":40,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"exit","changeable":true,"lowerBound":0,"iD":false,"id":41,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"entry","changeable":true,"lowerBound":0,"iD":false,"id":42,"derived":false},{"id":43,"eClass":"EGenericType"},{"id":44,"eClass":"EGenericType"},{"id":45,"eClass":"EGenericType"},{"id":46,"eClass":"EGenericType"},{"id":47,"eClass":"EGenericType"},{"id":48,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"unique":true,"name":"findStateByName","lowerBound":0,"id":49,"many":false,"required":false,"eClass":"EOperation"},{"ordered":true,"upperBound":1,"unique":true,"name":"hasLastState","lowerBound":0,"id":50,"many":false,"required":false,"eClass":"EOperation"},{"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":"initialState","changeable":true,"resolveProxies":true,"lowerBound":1,"id":51,"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":52,"derived":false},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"finalState","changeable":true,"resolveProxies":true,"lowerBound":0,"id":53,"derived":false},{"id":54,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"unique":true,"name":"name","lowerBound":0,"id":55,"many":false,"required":false,"eClass":"EParameter"},{"id":56,"eClass":"EGenericType"},{"id":57,"eClass":"EGenericType"},{"id":58,"eClass":"EGenericType"},{"id":59,"eClass":"EGenericType"},{"id":60,"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":1,"target":0},{"source":1,"target":6},{"source":1,"target":11},{"source":1,"target":12},{"source":11,"target":10},{"source":11,"target":13},{"source":11,"target":1},{"source":13,"target":10},{"source":12,"target":6},{"source":2,"target":0},{"source":2,"target":7},{"source":2,"target":14},{"source":2,"target":15},{"source":14,"target":10},{"source":14,"target":16},{"source":14,"target":2},{"source":16,"target":10},{"source":15,"target":7},{"source":3,"target":0},{"source":3,"target":8},{"source":3,"target":17},{"source":17,"target":8},{"source":4,"target":0},{"source":4,"target":8},{"source":4,"target":18},{"source":4,"target":19},{"source":18,"target":20},{"source":18,"target":4},{"source":19,"target":8},{"source":5,"target":0},{"source":5,"target":21},{"source":5,"target":22},{"source":5,"target":23},{"source":5,"target":24},{"source":21,"target":25},{"source":21,"target":5},{"source":22,"target":7},{"source":22,"target":26},{"source":22,"target":5},{"source":26,"target":7},{"source":23,"target":10},{"source":23,"target":27},{"source":23,"target":5},{"source":27,"target":10},{"source":24,"target":10},{"source":24,"target":28},{"source":24,"target":5},{"source":28,"target":10},{"source":6,"target":0},{"source":6,"target":29},{"source":6,"target":30},{"source":29,"target":31},{"source":29,"target":6},{"source":29,"target":32},{"source":32,"target":7},{"source":32,"target":33},{"source":32,"target":29},{"source":33,"target":7},{"source":30,"target":5},{"source":30,"target":34},{"source":30,"target":6},{"source":30,"target":21},{"source":34,"target":5},{"source":7,"target":0},{"source":7,"target":35},{"source":35,"target":36},{"source":35,"target":7},{"source":35,"target":37},{"source":37,"target":6},{"source":37,"target":38},{"source":37,"target":35},{"source":38,"target":6},{"source":8,"target":0},{"source":8,"target":6},{"source":8,"target":7},{"source":8,"target":39},{"source":8,"target":40},{"source":8,"target":41},{"source":8,"target":42},{"source":8,"target":43},{"source":8,"target":44},{"source":39,"target":45},{"source":39,"target":8},{"source":40,"target":10},{"source":40,"target":46},{"source":40,"target":8},{"source":46,"target":10},{"source":41,"target":10},{"source":41,"target":47},{"source":41,"target":8},{"source":47,"target":10},{"source":42,"target":10},{"source":42,"target":48},{"source":42,"target":8},{"source":48,"target":10},{"source":43,"target":6},{"source":44,"target":7},{"source":9,"target":0},{"source":9,"target":49},{"source":9,"target":50},{"source":9,"target":51},{"source":9,"target":52},{"source":9,"target":53},{"source":49,"target":8},{"source":49,"target":54},{"source":49,"target":9},{"source":49,"target":55},{"source":54,"target":8},{"source":55,"target":56},{"source":55,"target":49},{"source":50,"target":57},{"source":50,"target":9},{"source":51,"target":1},{"source":51,"target":58},{"source":51,"target":9},{"source":58,"target":1},{"source":52,"target":8},{"source":52,"target":59},{"source":52,"target":9},{"source":52,"target":39},{"source":59,"target":8},{"source":53,"target":2},{"source":53,"target":60},{"source":53,"target":9},{"source":60,"target":2},{"source":10,"target":0}],"multigraph":true}