Page 1 of 1

Transition from a composite state is NOT exported to SCXML

PostPosted: Fri Aug 02, 2019 8:59 am
by Sanurian
Cameo Simulation Toolkit is not exporting transitions from composite states to an SCXML file.

When exporting the following example state machine diagram to SCXML:
ExampleFSM.png


The resulting SCXML file does not contain the transition from the composite state S2 to S1 with the trigger Stop.

The exported SCXML file looks like this:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<scxml xmlns="http://www.w3.org/2005/07/scxml" version="null" initial="FSMUnitTest::TestFSM::S1">
<!-- http://commons.apache.org/scxml -->
<state id="FSMUnitTest::TestFSM::S1">
  <onentry>
   <send sendid="9edd368f-661d-4791-88e9-2fab53f25d16" target="FSMUnitTest::TestFSM::S1::OnEntry" targetType="Function Behavior" event="ONENTRY">
   </send>
  </onentry>
  <transition event="Start" target="FSMUnitTest::TestFSM::S2">
   <send sendid="8581bf8d-2eaf-425a-a7c9-a1ddb5fff23a" target="FSMUnitTest::TestFSM::Start::OnAction" targetType="Function Behavior" event="EFFECT">
   </send>
  </transition>
</state>
<parallel id="FSMUnitTest::TestFSM::S2">
  <onentry>
   <send sendid="ba724a2c-d560-43b1-83b4-03ac9f914d54" target="FSMUnitTest::TestFSM::S2::OnEntry" targetType="Function Behavior" event="ONENTRY">
   </send>
  </onentry>
  <state id="region_FSMUnitTest::TestFSM::S2::Loop1">
   <initial>
    <transition target="FSMUnitTest::TestFSM::S2::Loop1::S21">
    </transition>
   </initial>
   <state id="FSMUnitTest::TestFSM::S2::Loop1::S21">
    <onentry>
     <send sendid="478fb1ea-507a-4aae-8d53-b5c1ac0adb12" target="FSMUnitTest::TestFSM::S2::Loop1::S21::OnEntry" targetType="Function Behavior" event="ONENTRY">
     </send>
    </onentry>
    <transition event="EnterLoop1" cond="LoopAllowed" target="FSMUnitTest::TestFSM::S2::Loop1::S22">
    </transition>
   </state>
   <state id="FSMUnitTest::TestFSM::S2::Loop1::S22">
    <onentry>
     <send sendid="3b4b9acc-79f5-4f26-bdae-af4272a5ad1c" target="FSMUnitTest::TestFSM::S2::Loop1::S22::OnEntry" targetType="Function Behavior" event="ONENTRY">
     </send>
    </onentry>
    <transition event="Loop1" target="FSMUnitTest::TestFSM::S2::Loop1::S22">
    </transition>
   </state>
  </state>
  <state id="region_FSMUnitTest::TestFSM::S2::Loop2">
   <initial>
    <transition target="FSMUnitTest::TestFSM::S2::Loop2::S23">
    </transition>
   </initial>
   <state id="FSMUnitTest::TestFSM::S2::Loop2::S23">
    <onentry>
     <send sendid="d53a4da3-6624-4a6f-87e0-4f04af0e9fb1" target="FSMUnitTest::TestFSM::S2::Loop2::S23::OnEntry" targetType="Function Behavior" event="ONENTRY">
     </send>
    </onentry>
    <transition event="EnterLoop2" target="FSMUnitTest::TestFSM::S2::Loop2::S24">
    </transition>
   </state>
   <state id="FSMUnitTest::TestFSM::S2::Loop2::S24">
    <onentry>
     <send sendid="acf9f368-b336-442b-8b08-cdc44c10ea3b" target="FSMUnitTest::TestFSM::S2::Loop2::S24::OnEntry" targetType="Function Behavior" event="ONENTRY">
     </send>
    </onentry>
    <transition event="Loop2" target="FSMUnitTest::TestFSM::S2::Loop2::S24">
    </transition>
   </state>
  </state>
  <onexit>
   <send sendid="1ce6a9d6-219a-46ce-b2a8-44b14055af9a" target="FSMUnitTest::TestFSM::S2::OnExit" targetType="Function Behavior" event="ONEXIT">
   </send>
  </onexit>
</parallel>
</scxml>


Is this a bug in the Cameo Simulation Toolkit plugin or is there something I need to do to make the SCXML export work?