You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Michael Goerlich (JIRA)" <ji...@apache.org> on 2015/02/11 19:18:12 UTC

[jira] [Created] (SCXML-226) Support of special send targets #_parent and #_invokeid

Michael Goerlich created SCXML-226:
--------------------------------------

             Summary: Support of special send targets #_parent and #_invokeid
                 Key: SCXML-226
                 URL: https://issues.apache.org/jira/browse/SCXML-226
             Project: Commons SCXML
          Issue Type: Bug
    Affects Versions: 0.9, 0.8, 0.7, 0.6, 0.5
            Reporter: Michael Goerlich


Currently it is not possible to use #_parent and #_invokeid to allow communication between two scxml instances where one invoked the other. 

Due to the last changes the _ioprocessors variable was introduced. If the target of a <send> may reference to an entry in the _ioprocessors map, then it should be possible to forward events directly to the registered SCXMLIOProcessor instance.

Given this the invoker must supply a SCXMLIOProcessor for the parent to register within the its SCXMLExecutionContext map as #_invokeId and the invoker must register the parent SCXMLIOProcessor as #_parent within the execution context of the SCXMLExecutor. As well as this the EventDispatcher must take the SCXMLIOProcessor registered for the target from _ioprocessors.

Based on my assumptions I tried to implement this and uploaded the patch to: http://pastebin.com/t855Ugs1 . Hope it helps.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)