[ 
http://issues.apache.org/jira/browse/SCXML-15?page=comments#action_12426373 ] 
            
Rahul Akolkar commented on SCXML-15:
------------------------------------

Do any of the following avenues work? If not, please post your usecase to help 
us better understand the need for this improvement request.

Generally speaking, "communication" between the state machine and its 
environment is best achieved via the root context on the executor. One can 
avail of:

a) "Read access" on the root context
b) Datamodel child of root <scxml> element (also available via root context)

Similarly, SCXML provides mechanisms for "exporting" values in the current 
Context to external processes, namely via:

c) Passing the EventDispatcher a namelist onsend()
d) Passing an invoked process <param>s

The "constrained" access as of now is actually much beneficial from a modeling 
and tooling perspective since it offers well-defined hooks to work with.

Leaving this issue open for now.


> User of SCXMLExecutor does not have access to the current context data
> ----------------------------------------------------------------------
>
>                 Key: SCXML-15
>                 URL: http://issues.apache.org/jira/browse/SCXML-15
>             Project: Commons SCXML
>          Issue Type: Improvement
>         Environment: Windows, JDK 1.4.2
>            Reporter: Sitthichai Rernglertpricha
>         Assigned To: Rahul Akolkar
>            Priority: Minor
>             Fix For: 0.6
>
>
> Currently, SCXMLExecutor does not provide method for client to get local 
> variables associated with the Context of the current state. 
> All created Context are maintained in the SCInstance object within the 
> SCXMLExecutor class, and currently the getSCInstance() of SCXMLExecutor does 
> not have any protected or public qualifier. Hence getSCInstance() cannot only 
> be accessed by SCXMLExecutor or classes within the org.apache.commons.scxml 
> package. Can we change getSCInstance() method to be protected or public ? 
> This allows the client to call getSCInstance().getContext() to return the 
> Context associated with the current state or create a child class of 
> SCXMLExecutor that return variables associated with the current context.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to