External communication with SCXML

Hi again,

we are about to implement a simple REST interface (in & out) and were pondering about the best way to integrate such a thing into SCXML's concepts. There already is the basichttp ioprocessor available for the type attribute with send, but - as I raised earlier - it will completely ignore the actual result of such a request. One possibility would be to go for a "resthttp" (or similar) type which could deliver the result as an event into the interpreter. This would solve sending requests via SCXML and get at their result.

As for receiving requests, we need to get them as an event (just as with the basichttp ioprocessor) and be able to reply. Replying could be realized by sending an event to a special #_http.requestId but I'd like to gather some thoughts first. Another alternative is to go for a dedicated invoker that will deliver events and is available to reply to the remote party.

I understand that all of this can be solved "out-of-draft" but then again, maybe the various implementations could at least provide common concepts. Anyone have some thoughts about this?

Best regards
Stefan

Received on Monday, 11 February 2013 17:42:55 UTC