[ http://issues.apache.org/jira/browse/SCXML-14?page=all ]
Rahul Akolkar resolved SCXML-14. -------------------------------- Fix Version/s: 0.6 Resolution: Fixed Thanks, fixed in r429516: http://svn.apache.org/viewvc?rev=429516&view=rev and should be available from the 08072006 nightlies: http://people.apache.org/builds/jakarta-commons/nightly/commons-scxml/ > Allowing the target of a transition to be omitted > ------------------------------------------------- > > Key: SCXML-14 > URL: http://issues.apache.org/jira/browse/SCXML-14 > Project: Commons SCXML > Issue Type: Bug > Environment: Windows, JDK 1.4.2 > Reporter: Sitthichai Rernglertpricha > Assigned To: Rahul Akolkar > Priority: Minor > Fix For: 0.6 > > Attachments: patchfile > > > Currently, the runtime throws a ModelException if the target of a transition > is not specified. > E.g. the following throws a ModelException since the <target next="..."/> is > omitted within the <transition> element. > > <state id='s'> > <transitionfiltered="xxx"> > <assign name="data" expr="value"> > </transition> > </state> > > However, based on the scxml specification at http://www.w3.org/TR/scxml/ at > section 3.3, quote - "If the "target" on a <transition> is omitted, then > taking the transition has the effect of leaving the machine in the same state > after invoking any executable content that is included in the transition. " > > The attached patch can be applied to the ModelUpdater.java to fix the above > problem. > Basically, the change is in the updateTransition() method. If next variable > is null, return immediately from the method. > -- 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]