commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rahul Akolkar (JIRA)" <>
Subject [jira] Updated: (SCXML-53) Wild card event name handling on transitions is not in line with W3C WD
Date Sat, 11 Aug 2007 14:53:43 GMT


Rahul Akolkar updated SCXML-53:

    Fix Version/s: 0.7

Makes sense, there is a mismatch. The fix will cause a behavior change (in case anyone is
relying on the earlier behavior, which has been in place since the first release), but I think
we can / should address this in v0.7 with a clear mention in the release notes.

> Wild card event name handling on transitions is not in line with W3C WD
> -----------------------------------------------------------------------
>                 Key: SCXML-53
>                 URL:
>             Project: Commons SCXML
>          Issue Type: Bug
>    Affects Versions: 0.6
>            Reporter: Ingmar Kliche
>            Priority: Minor
>             Fix For: 0.7
> The current W3C SCXML WD [1] states for wild card event names on transitions:
> "Events have names which are matched against the "event" attribute of transitions. These
names are strings consisting of alphanumeric characters plus the character '.' which is used
to segment names into tokens. The "event" attribute of a transition may end with the wildcard
'.*', which will match zero or more tokens at the end of the processed event's name. Thus
a transition with an "event" attribute of 'error.*' will match 'error', 'error.send', 'error.send.failed',
etc. Furthermore, a transition with an "event" attribute consisting solely of '*' will match
any event."
> From my understanding therefore the following example should work:
> <?xml version="1.0"?>
> <scxml
>   xmlns=""
>   version="1.0" 
>   initialstate="s1"
>   id="demo">
> 	<state id="s1">
> 		<onentry>
> 		    <send event="success.start"/>
> 		</onentry>
> 		<transition event="success.*" target="s2"/>
> 	</state>
> 	<state id="s2">
> 	</state>
> </scxml>
> But this transition does not match for the current commons-SCXML implementation (SNAPSHOT-0.7).
Commons-SCXML does not expect the ".*", instead the following works: <transition event="succcess"
> Also the <transition event="*"/> does not work, even though I don't know if this
is really useful because it would match "every" internal .entry and .exit event. 
> Regards,
> Ingmar
> [1]

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message