fmorbini / scxmlgui

A graphical user interface for editing SCXML finite state machines.
Other
105 stars 37 forks source link

SCXML Execution Listener doesn't work for SCXML files loaded from command line with "-i" flag, until any graph element is moved and "Graph validation requested" #34

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Open SCXML file basic1.scxml on the command-line with the invocation "java 
-jar fsm-editor.jar -i basic1.scxml" OR "java -jar fsm-editor.jar -i 
basic1.scxml"
2. Start the execution listener on port 9999.
3. Telnet to port 9999 using command-line invocation "telnet localhost 9999"
4. Type: "1 root" and press enter.

What is the expected output? What do you see instead?

The expected output is for the root state to be highlighted. Instead, he root 
state is not highlighted.

What version of the product are you using? On what operating system?

fsm-editor.jar from 
http://scxmlgui.googlecode.com/svn/trunk/extra/fsm-editor.jar

java version "1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10.6) (6b22-1.10.6-0ubuntu1)
OpenJDK Server VM (build 20.0-b11, mixed mode)

64-bit Ubuntu 11.04

Please provide any additional information below.

If any element in the graph is moved, then fsm-editor will print to stdout 
something like:

Graph validation requested starting from cell: 
{com.mxgraph.model.mxCell@192d604}

And steps 2-4 are repeated, then elements will be highlighted as expected.

I think the solution to this might be to "force validation" when an SCXML model 
is initially loaded with "-i".

Original issue reported on code.google.com by jbea...@cs.mcgill.ca on 19 Apr 2012 at 1:22

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by fmorbini on 19 Apr 2012 at 5:15

GoogleCodeExporter commented 9 years ago
fixed in r142.

Original comment by fmorbini on 19 Apr 2012 at 6:54

GoogleCodeExporter commented 9 years ago
That was fast :D

Original comment by jbea...@cs.mcgill.ca on 19 Apr 2012 at 8:48