Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scxml Debugger works not correct on parallel states #2

Open
florianager opened this issue Apr 23, 2018 · 8 comments
Open

scxml Debugger works not correct on parallel states #2

florianager opened this issue Apr 23, 2018 · 8 comments
Assignees
Labels

Comments

@florianager
Copy link

florianager commented Apr 23, 2018

following code works not correct with jsscxml:
if Engine_1_On is active and event "Start2" is submitted, Engine 1 falls back to Engine_1_Off state.
<scxml name="Scxml" version="1.0" xmlns="http://www.w3.org/2005/07/scxml"> <parallel id="Airplane_Engines"> <state id="Engine_1" initial="Engine_1_Off"> <state id="Engine_1_Off"> <transition event="Start1" target="Engine_1_On"/> </state> <state id="Engine_1_On"> <transition event="Shutdown1" target="Engine_1_Off"/> </state> </state> <state id="Engine_2" initial="Engine_2_Off"> <state id="Engine_2_Off"> <transition event="Start2" target="Engine_2_On"/> </state> <state id="Engine_2_On"> <transition event="Shutdown2" target="Engine_2_Off"/> </state> </state> </parallel> </scxml>

@Touffy
Copy link
Owner

Touffy commented Apr 23, 2018

Hey. Can you provide a little context ? What does your State Chart look like ?

@florianager
Copy link
Author

<scxml name="Scxml" version="1.0" xmlns="http://www.w3.org/2005/07/scxml"> <parallel id="Airplane_Engines"> <state id="Engine_1" initial="Engine_1_Off"> <state id="Engine_1_Off"> <transition event="Start1" target="Engine_1_On"/> </state> <state id="Engine_1_On"> <transition event="Shutdown1" target="Engine_1_Off"/> </state> </state> <state id="Engine_2" initial="Engine_2_Off"> <state id="Engine_2_Off"> <transition event="Start2" target="Engine_2_On"/> </state> <state id="Engine_2_On"> <transition event="Shutdown2" target="Engine_2_Off"/> </state> </state> </parallel> </scxml>

@florianager
Copy link
Author

florianager commented Apr 23, 2018 via email

@florianager
Copy link
Author

florianager commented Apr 23, 2018 via email

@Touffy
Copy link
Owner

Touffy commented Apr 23, 2018

Thank you. I have reproduced the behaviour you describe in the JSSC debugger. It's been a while since I worked on JSSC (especially the states-to-enter tree builder), but I will look into it.

@Touffy Touffy self-assigned this Apr 23, 2018
@Touffy Touffy added the bug label Apr 23, 2018
@florianager
Copy link
Author

florianager commented Apr 24, 2018 via email

@florianager
Copy link
Author

Hello Touffy,
do you have any time schedule for fixing this bug ?

@Touffy
Copy link
Owner

Touffy commented May 2, 2018

Sorry, no. I have done some debugging and it won't be an easy bug to fix without breaking other parts of JSSC. I don't even remember why I made it rebuild the whole active states tree every time instead of just the part up to the LCCA, but I must have had a good reason or I would have let it stop there and this bug wouldn't exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants