On 4/6/06, Brule, Jon <[EMAIL PROTECTED]> wrote:
>
> Is it possible to access the current event payload from within a Custom
> Action?
<snip/>
Sure, the event payload is the value of the special variable named
"_eventdata" in the context of the state enclosing the custom action.
In a line of code, that translates to (within the execute() method of
the action):
Object payload = scInstance.getContext(getParentState()).get("_eventdata");
> More generically, is the current event accessible itself?
>
<snap/>
No, other than the payload, the SCXML WD has no comments. But there is
not much else of interest in the current event other than the payload
(and none that in a worst case scenario, cannot be communicated
redundantly via the payload).
-Rahul
> Regards,
> Jon Brule
> [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]