hekailiang / squirrel

squirrel-foundation is a State Machine library, which provided a lightweight, easy use, type safe and programmable state machine implementation for Java.
http://hekailiang.github.io/squirrel/
Other
2.19k stars 540 forks source link

Load state machine definition from file #62

Closed ichsteffen closed 8 years ago

ichsteffen commented 8 years ago

Hi,

I would like to know if there is any why to load a state machine definition out of a file (or any other resource).

I have found the SCXMLVisitor to save a state machine defintion to SCXML. But I could not find any thing like an SCXML loader. It there one?

Best regards,

Steffen

ichsteffen commented 8 years ago

Please ignore my question. RTFM ;)

UntypedStateMachineImporter can be used to import state machine SCXML-similar definition which was exported by SCXMLVisitor or handwriting definition.

Thank´s anyway.

shub124 commented 2 years ago

@ichsteffen Can you please let me know how to read an scxml file to obtain the scxmldef object which later need to be passed to UntypedStateMachineImporter?