Skip to content
This repository has been archived by the owner on Sep 25, 2018. It is now read-only.

Refactor out SCXML-specific code #5

Open
jbeard4 opened this issue Oct 1, 2014 · 0 comments
Open

Refactor out SCXML-specific code #5

jbeard4 opened this issue Oct 1, 2014 · 0 comments
Assignees

Comments

@jbeard4
Copy link
Owner

jbeard4 commented Oct 1, 2014

Generally speaking, SCION-CORE is meant to be a generic state machine interpreter. SCXML-specific properties should be passed in as arguments, either via opts, or embedded as a property on the SCXML model. This keeps the footprint small and the logic simpler.

I would suggest that the SCION compiler should embed the ioprocessors that it supports on the model. We should then move this code out of SCION-CORE and into the SCION scjson-to-module compiler: https://github.com/jbeard4/SCION-CORE/blob/master/lib/scion.js#L42-L46

Another example of this is _sessionId. Rather than generating it internally, we will write a library to do SCXML communication, and pass that in as an argument.

mattoshry pushed a commit to mattoshry/SCION-CORE that referenced this issue Jun 12, 2016
MES-880: add onBigStepBegin, onSmallStepBegin, onBigStepEnd events
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants