sccd.xml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?xml version="1.1" ?>
  2. <diagram author="Sam Pieters" name="MultipleInstancesGlobalInputTest">
  3. <description>
  4. Check if multiple SCCD classes receive the events from the inport
  5. </description>
  6. <inport name="Inport"/>
  7. <class name="MainApp" default="true">
  8. <relationships>
  9. <association name="linkA" class="A" />
  10. </relationships>
  11. <scxml initial="state1">
  12. <state id="state1">
  13. <onentry>
  14. <raise scope="cd" event="create_instance">
  15. <parameter expr='"linkA"' />
  16. <parameter expr='"A"' />
  17. </raise>
  18. </onentry>
  19. <transition event='instance_created' target='../state2'>
  20. <parameter name="association_name" type="string"/>
  21. <raise scope="cd" event="start_instance">
  22. <parameter expr="association_name" />
  23. </raise>
  24. </transition>
  25. </state>
  26. <state id="state2">
  27. <transition event='instance_started' target='.' />
  28. <transition event='input_event' target='../state3'/>
  29. </state>
  30. <state id="state3" />
  31. </scxml>
  32. </class>
  33. <class name="A">
  34. <scxml initial="state1">
  35. <state id="state1">
  36. <transition event='input_event' target='../state2'/>
  37. </state>
  38. <state id="state2" />
  39. </scxml>
  40. </class>
  41. </diagram>