jbeard4 / SCION

SCXML/Statecharts in JavaScript, moved to gitlab: https://gitlab.com/scion-scxml/scion
https://scion.scxml.io
Apache License 2.0
149 stars 29 forks source link

send/@type not reflected into the event or options arguments of InterpreterScriptingContext.send #326

Closed mattoshry closed 9 years ago

mattoshry commented 9 years ago

Using 2.0.0-w3c-ecma branch.

Given: <send type="http://www.w3.org/TR/scxml/#BasicHTTPEventProcessor" target="http://127.0.0.1:8020/hello.json" event="app.ping" namelist="x y z"/>

  <send type="custom"
    targetexpr="someVar" event="app.ping" namelist="x y z"/>

it's useful (essential) for a custom the scxml.scion.InterpreterScriptingContext impl to be able to receive the send type in order to implement the specific type of send - without having to introspect on the target.

I'm sure this was exposed in SCION 1.0.

jbeard4 commented 9 years ago

@mattoshry I am going to formalize this into an API which we will officially support. I will follow up with you with more information about this.