commons-scxml.git
4 years agoSCXML-201: manually creating M1 tag (maven release:prepare failed half-way) tags/commons-scxml2-2.0-M1 commons-scxml2-2.0-M1
Ate Douma [Thu, 3 Apr 2014 09:39:24 +0000 (09:39 +0000)] 
SCXML-201: manually creating M1 tag (maven release:prepare failed half-way)

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/tags/commons-scxml2-2.0-M1@1584330 13f79535-47bb-0310-9956-ffa450edef68

4 years ago[maven-release-plugin] prepare release commons-scxml2-2.0-M1
Ate Douma [Thu, 3 Apr 2014 09:34:11 +0000 (09:34 +0000)] 
[maven-release-plugin] prepare release commons-scxml2-2.0-M1

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1584329 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-182: Support error event raising to comply the spec "3.12.2 Errors"
Ate Douma [Thu, 3 Apr 2014 09:13:22 +0000 (09:13 +0000)] 
SCXML-182: Support error event raising to comply the spec "3.12.2 Errors"
The 'error.execution' event now is automatically added to the internal event queue when an expression error occurs

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1584317 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-196: Redefine SCXMLSemantics to align with the Algorithm for SCXML Interpretati...
Ate Douma [Thu, 3 Apr 2014 07:13:42 +0000 (07:13 +0000)] 
SCXML-196: Redefine SCXMLSemantics to align with the Algorithm for SCXML Interpretation as described in the SCXML specification
SCXML-197: Better separation of concern between SCXMLExecutor and SCInstance and introducing a new SCXMLExecutionContext
See: http://issues.apache.org/jira/browse/SCXML-196 and http://issues.apache.org/jira/browse/SCXML-197
This replaces the existing SCXMLSemantics completely with a new definition and implementation conforming to the current SCXML specification: http://www.w3.org/TR/2014/CR-scxml-20140313/#AlgorithmforSCXMLInterpretation
As this also required major structural changes, which actually 'fitted well' with SCXML-197, the result is also a far better, almost complete, separation of concerns between SCXMLExecutor, SCInstance and SCXMLExecutionContext.
For more details please check the above issue links

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1584272 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-99: Add support for the read-only system variables, see: http://www.w3.org...
Ate Douma [Sun, 30 Mar 2014 19:20:03 +0000 (19:20 +0000)] 
SCXML-99: Add support for the read-only system variables, see: w3.org/TR/2014/CR-scxml-20140313/#SystemVariables
- implemented with a new SCXMLSystemContext, wrapping normal Context and protecting selected variables
- introducing the required _sessionid and _name variables, and dropping the outdated and no longer needed _eventdata and _eventdatamap variables
- implementing the required _event.type == 'internal' for internal events

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1583190 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-197: Better separation of concern between SCXMLExecutor and SCInstance and...
Ate Douma [Sun, 30 Mar 2014 00:18:40 +0000 (00:18 +0000)] 
SCXML-197: Better separation of concern between SCXMLExecutor and SCInstance and introducing a new SCXMLExecutionContext
See: https://issues.apache.org/jira/browse/SCXML-197
- move all persistable state to SCInstance and support detach/(re)attach the instance from the SCXMLExecutor, which no longer is Serializable
- introduce a new SCXMLExecutionContext to encapsulate all internal API and services
- switch to using the SCXMLExecutionContext as primary interface (parameter) for the SCXMLSemantics algorithms
- switch to use a restricted ActionExecutionContext (subset of SCXMLExecutionContext) as interface for the Action (SCXML Executable Content) execution
- add internal and (synchronous) external event queues and switch to 'single event step' processing as requirement by the SCXML specification

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1583086 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-200: NotificationRegistry cannot (and should not) be Serializable as it hold...
Ate Douma [Sat, 29 Mar 2014 19:53:53 +0000 (19:53 +0000)] 
SCXML-200: NotificationRegistry cannot (and should not) be Serializable as it hold on to external SCXMLListener instances.
It also holds on to SCXML Observable which may be serialized and deserialized, which would make break the internal references.
To fix this, instead we'll 'register' only the newly added Integer Observable.getOservableId(), which is a generated unique id within the context of an SCXML document.
Also, fix / improve the SimpleTransition.getTransitionDomain() to be inline with the current SCXML specification

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1583057 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-200: adding support for multiple event names specified for a transition
Ate Douma [Sat, 29 Mar 2014 19:45:54 +0000 (19:45 +0000)] 
SCXML-200: adding support for multiple event names specified for a transition

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1583056 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-200: adding support for multiple <invoke> elements in a <state> or <parallel...
Ate Douma [Wed, 26 Mar 2014 23:21:17 +0000 (23:21 +0000)] 
SCXML-200: adding support for multiple <invoke> elements in a <state> or <parallel> instead of just one.
Note: this is primarily a model update only. Semantically and process-wise the <invoke> handling is not (by far) in line with the specification yet.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1582115 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-200: more fine-grained type-checking on the SCXML model elements (missed test...
Ate Douma [Wed, 26 Mar 2014 02:50:05 +0000 (02:50 +0000)] 
SCXML-200: more fine-grained type-checking on the SCXML model elements (missed test-case changes)

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1581655 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-200: more fine-grained type-checking on the SCXML model elements
Ate Douma [Wed, 26 Mar 2014 02:49:32 +0000 (02:49 +0000)] 
SCXML-200: more fine-grained type-checking on the SCXML model elements

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1581653 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-200: further refinement on the SCXML model
Ate Douma [Mon, 24 Mar 2014 01:21:43 +0000 (01:21 +0000)] 
SCXML-200: further refinement on the SCXML model
- TransitionTarget ancestors only can be of type EnterableState because History, as the only non-EnterableState, cannot have children.
  This also allows for more cleanup and simplification

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1580683 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-196: fix NPE when a Transition has multiple targets (at least 3) without the...
Ate Douma [Mon, 24 Mar 2014 00:25:59 +0000 (00:25 +0000)] 
SCXML-196: fix NPE when a Transition has multiple targets (at least 3) without the same Parallel LCA (Least Common Ancestor)

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1580673 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-196: The Algorithm for SCXML interpretation requires sets of TransitionTarget...
Ate Douma [Sun, 23 Mar 2014 23:31:54 +0000 (23:31 +0000)] 
SCXML-196: The Algorithm for SCXML interpretation requires sets of TransitionTarget instances to be processed.
To conform to the Set equality contract TransitionTarget must implement the equals and hashcode methods.
But in the context of SCXML and the purpose of the algorithm, really only identity based equality should be considered.
The TransitionTarget#id property also could be used, but that would make the API much more awkward to ensure only unique IDs are used, that is: within the context of a single SCXML instance.
Much easier therefore is to just enforce and only support identity based equality.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1580660 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-200:Normalize and complete the SCXML object model and parsing
Ate Douma [Sat, 22 Mar 2014 23:34:20 +0000 (23:34 +0000)] 
SCXML-200:Normalize and complete the SCXML object model and parsing
See: https://issues.apache.org/jira/browse/SCXML-200

The Commons SCXML object model was rather 'flat' and de-normalized, and many of the current SCXML
specification features as well as restrictions were (thus) not fully mapped.

This commit restructures the SCXML model to bring it more/mostly in line with the specification
and normalizes the object hierarchy to cleaner separate and restrict the features belonging
to the right level and element.

The previous state and transition model hierarchy was like this:

  TransitionTarget
    <- Initial
    <- History
    <- State
         <- Final
    <- Parallel

  Executable
    <- Transition

With this restructuring it will now looks like this:

  Initial

  TransitionTarget
    <- History
    <- EnterableState -> DocumentOrder
         <- TransitionalState
              <- State
              <- Parallel
         <- Final

  Executable
    <- SimpleTransition
         <- Transition -> DocumentOrder

With this restructuring, each of the model objects now cleanly represents their functional role
in the SCXML specification and only contains the features and relations they are supposed to have.

This also updates the SCXML document parsing of the model and the validation and post-processing,
and introduces some handy optimizations like adding a document order indicator to the EnterableState
and Transition objects which makes sorting them in document or reverse-document order,
as needed for implementing the SCXML processing algorithm, very trivial and fast.

And for each TransitionTarget its ancestor tree is derived once and cached as a fast navigable array.

These changes have a big impact on the internal API because not everything is passed around anymore
as a TransitionTarget but as strongly typed as possible.
But these changes make it much clearer to understand and use, and are an important improvement
needed for implementing the full SCXML specification.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1580369 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-196: ugh, fixing another license header
Ate Douma [Wed, 19 Mar 2014 01:33:58 +0000 (01:33 +0000)] 
SCXML-196: ugh, fixing another license header

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1579110 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-196: add default entry list to Step to track which targets will be entered...
Ate Douma [Wed, 19 Mar 2014 01:22:12 +0000 (01:22 +0000)] 
SCXML-196: add default entry list to Step to track which targets will be entered by default this micro step

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1579109 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-196: preliminary Transition internal|external type attribute support
Ate Douma [Wed, 19 Mar 2014 01:19:58 +0000 (01:19 +0000)] 
SCXML-196: preliminary Transition internal|external type attribute support

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1579108 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-196: fix testcase, manual created State requires an id now
Ate Douma [Wed, 19 Mar 2014 00:36:12 +0000 (00:36 +0000)] 
SCXML-196: fix testcase, manual created State requires an id now

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1579101 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-196: - <state>, <parallel>, <final> and <history> are required to get an unique...
Ate Douma [Wed, 19 Mar 2014 00:31:39 +0000 (00:31 +0000)] 
SCXML-196: - <state>, <parallel>, <final> and <history> are required to get an unique auto-generated id if not provided explicitly
see also: http://www.w3.org/TR/2014/CR-scxml-20140313/#IDs

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1579098 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-196: - <invoke> is allowed for composite states as well
Ate Douma [Wed, 19 Mar 2014 00:19:30 +0000 (00:19 +0000)] 
SCXML-196: - <invoke> is allowed for composite states as well
- TODO: multiple <invoke> should be allowed too, as well as for <parallel>

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1579096 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-196: - generate <initial> element for composite states if none is defined or
Ate Douma [Wed, 19 Mar 2014 00:12:13 +0000 (00:12 +0000)] 
SCXML-196: - generate <initial> element for composite states if none is defined or
- mark Initial been generated for the above or when created through <state> initial attribute
- don't write out generated <initial> elements
- disallow <initial> elements for atomic states
- code cleanup

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1579092 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-199: map the <scxml> initial attribute to an initial Transition to support...
Ate Douma [Tue, 18 Mar 2014 01:54:02 +0000 (01:54 +0000)] 
SCXML-199: map the <scxml> initial attribute to an initial Transition to support multiple target states, conforming to the SCXML specification

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1578711 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-198: remove support for deriving <history> default target configuration and...
Ate Douma [Tue, 18 Mar 2014 00:51:51 +0000 (00:51 +0000)] 
SCXML-198: remove support for deriving <history> default target configuration and enforce the specification requirement to have this configured through its <transition> child element only
Also, reshuffle the code a bit

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1578690 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-196: rename initialScript to globalScript and no need to wrap the globalScript...
Ate Douma [Fri, 14 Mar 2014 01:26:24 +0000 (01:26 +0000)] 
SCXML-196: rename initialScript to globalScript and no need to wrap the globalScript in an artificial Transition and State

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1577405 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-196
Ate Douma [Fri, 14 Mar 2014 00:50:35 +0000 (00:50 +0000)] 
SCXML-196

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1577400 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-196: getting rid of warnings (IntelliJ)
Ate Douma [Fri, 14 Mar 2014 00:38:24 +0000 (00:38 +0000)] 
SCXML-196: getting rid of warnings (IntelliJ)

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1577395 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-196: reshuffling class methods and members in more logical order (at least...
Ate Douma [Fri, 14 Mar 2014 00:28:46 +0000 (00:28 +0000)] 
SCXML-196: reshuffling class methods and members in more logical order (at least to me)

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1577390 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-196: dropping forked SCXMLExecutor2 and SCXMLSemanticsImpl2 again as maintainin...
Ate Douma [Fri, 14 Mar 2014 00:20:04 +0000 (00:20 +0000)] 
SCXML-196: dropping forked SCXMLExecutor2 and SCXMLSemanticsImpl2 again as maintaining the new and old implementation side-by-side already turns out to be too difficult.
The large scale refactorings needed now will be done directly on the current implementation instead.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1577387 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-196: reshuffling class methods and members in more logical order (at least...
Ate Douma [Thu, 13 Mar 2014 23:22:38 +0000 (23:22 +0000)] 
SCXML-196: reshuffling class methods and members in more logical order (at least to me) and fix or suppress IntelliJ warnings (I like 'green')

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1577373 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-196: ugh, wrong license header template used (I blame IntelliJ), sorry about...
Ate Douma [Thu, 13 Mar 2014 22:34:58 +0000 (22:34 +0000)] 
SCXML-196: ugh, wrong license header template used (I blame IntelliJ), sorry about this.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1577352 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-196: Redefine SCXMLSemantics to align with the Algorithm for SCXML Interpretati...
Ate Douma [Thu, 13 Mar 2014 22:31:34 +0000 (22:31 +0000)] 
SCXML-196: Redefine SCXMLSemantics to align with the Algorithm for SCXML Interpretation as described in the SCXML specification
- starting point: just checking in baseline forked versions of SCXMLExecutor and SCXMLSemanticsImpl so to be able to track changes made to the implementation

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1577351 13f79535-47bb-0310-9956-ffa450edef68

4 years agocorrect indicating the W3C SCXML specification still being a Working Draft
Ate Douma [Thu, 13 Mar 2014 10:25:38 +0000 (10:25 +0000)] 
correct indicating the W3C SCXML specification still being a Working Draft

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1577088 13f79535-47bb-0310-9956-ffa450edef68

4 years agocorrect milestone tag name
Ate Douma [Tue, 11 Mar 2014 11:28:44 +0000 (11:28 +0000)] 
correct milestone tag name

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1576287 13f79535-47bb-0310-9956-ffa450edef68

4 years ago SCXML-195: tagging (only) of milestone 2.0-M0prepare for next development iteration
Ate Douma [Tue, 11 Mar 2014 11:25:46 +0000 (11:25 +0000)] 
 SCXML-195: tagging (only) of milestone 2.0-M0prepare for next development iteration

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1576286 13f79535-47bb-0310-9956-ffa450edef68

4 years ago SCXML-195: tagging (only) of milestone 2.0-M0prepare release commons-scxml2-2.0-M0
Ate Douma [Tue, 11 Mar 2014 11:25:11 +0000 (11:25 +0000)] 
 SCXML-195: tagging (only) of milestone 2.0-M0prepare release commons-scxml2-2.0-M0

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1576284 13f79535-47bb-0310-9956-ffa450edef68

4 years agoupdate to latest dependencies
Ate Douma [Tue, 11 Mar 2014 09:50:05 +0000 (09:50 +0000)] 
update to latest dependencies

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1576250 13f79535-47bb-0310-9956-ffa450edef68

4 years agoupdate intend and usage of milestone tags
Ate Douma [Tue, 11 Mar 2014 09:27:55 +0000 (09:27 +0000)] 
update intend and usage of milestone tags

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1576244 13f79535-47bb-0310-9956-ffa450edef68

4 years agosome corrections
Ate Douma [Mon, 10 Mar 2014 22:59:30 +0000 (22:59 +0000)] 
some corrections

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1576120 13f79535-47bb-0310-9956-ffa450edef68

4 years agoAdding SCXML 2.0 roadmap documentation
Ate Douma [Mon, 10 Mar 2014 22:33:20 +0000 (22:33 +0000)] 
Adding SCXML 2.0 roadmap documentation

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1576109 13f79535-47bb-0310-9956-ffa450edef68

4 years agofix stopwarch usecase images not copied? Seem to be required under resources now.
Ate Douma [Sun, 2 Mar 2014 02:39:56 +0000 (02:39 +0000)] 
fix stopwarch usecase images not copied? Seem to be required under resources now.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1573255 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-194: Drop outdated, incomplete, broken or no longer supported features for...
Ate Douma [Sun, 2 Mar 2014 02:27:56 +0000 (02:27 +0000)] 
SCXML-194: Drop outdated, incomplete, broken or no longer supported features for SCXML 2.0
See: https://issues.apache.org/jira/browse/SCXML-194

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1573254 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-194: Drop outdated, incomplete, broken or no longer supported features for...
Ate Douma [Sun, 2 Mar 2014 02:23:14 +0000 (02:23 +0000)] 
SCXML-194: Drop outdated, incomplete, broken or no longer supported features for SCXML 2.0
See: https://issues.apache.org/jira/browse/SCXML-194

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1573253 13f79535-47bb-0310-9956-ffa450edef68

4 years agofix link to current apidocs
Ate Douma [Sat, 1 Mar 2014 23:38:00 +0000 (23:38 +0000)] 
fix link to current apidocs

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1573239 13f79535-47bb-0310-9956-ffa450edef68

4 years agofixing menu links to javadocs
Ate Douma [Sat, 1 Mar 2014 22:47:50 +0000 (22:47 +0000)] 
fixing menu links to javadocs

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1573235 13f79535-47bb-0310-9956-ffa450edef68

4 years agocorrection: SCXML 0.9 requires Java 1.4+
Ate Douma [Sat, 1 Mar 2014 22:47:18 +0000 (22:47 +0000)] 
correction: SCXML 0.9 requires Java 1.4+

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1573234 13f79535-47bb-0310-9956-ffa450edef68

4 years agoAdd missing cgi file for downloads page
Benedikt Ritter [Thu, 27 Feb 2014 14:47:03 +0000 (14:47 +0000)] 
Add missing cgi file for downloads page

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1572603 13f79535-47bb-0310-9956-ffa450edef68

4 years agoUpdate download page
Benedikt Ritter [Thu, 27 Feb 2014 14:42:41 +0000 (14:42 +0000)] 
Update download page

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1572598 13f79535-47bb-0310-9956-ffa450edef68

4 years agoFix broken JavaDoc links (again :-)
Benedikt Ritter [Thu, 27 Feb 2014 12:32:55 +0000 (12:32 +0000)] 
Fix broken JavaDoc links (again :-)

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1572536 13f79535-47bb-0310-9956-ffa450edef68

4 years agoAdd temporary site deployment directory to svn:ignore
Benedikt Ritter [Thu, 27 Feb 2014 12:26:10 +0000 (12:26 +0000)] 
Add temporary site deployment directory to svn:ignore

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1572535 13f79535-47bb-0310-9956-ffa450edef68

4 years agoFix broken JavaDoc links
Benedikt Ritter [Thu, 27 Feb 2014 12:24:32 +0000 (12:24 +0000)] 
Fix broken JavaDoc links

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1572534 13f79535-47bb-0310-9956-ffa450edef68

4 years agoMore tweaking of site deployment
Benedikt Ritter [Thu, 27 Feb 2014 11:41:57 +0000 (11:41 +0000)] 
More tweaking of site deployment

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1572527 13f79535-47bb-0310-9956-ffa450edef68

4 years agoConfigure site deployment
Benedikt Ritter [Thu, 27 Feb 2014 10:50:09 +0000 (10:50 +0000)] 
Configure site deployment

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1572504 13f79535-47bb-0310-9956-ffa450edef68

4 years agoUpdate to latest parent pom
Benedikt Ritter [Thu, 27 Feb 2014 10:43:00 +0000 (10:43 +0000)] 
Update to latest parent pom

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1572502 13f79535-47bb-0310-9956-ffa450edef68

4 years agomore code cleanup
Ate Douma [Sat, 15 Feb 2014 23:03:16 +0000 (23:03 +0000)] 
more code cleanup

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1568700 13f79535-47bb-0310-9956-ffa450edef68

4 years agocode cleanup
Ate Douma [Sat, 15 Feb 2014 22:06:44 +0000 (22:06 +0000)] 
code cleanup

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1568693 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-193: drop non-function exit element
Ate Douma [Sat, 15 Feb 2014 21:36:31 +0000 (21:36 +0000)] 
SCXML-193: drop non-function exit element

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1568687 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-173: Support raise element
Ate Douma [Sat, 15 Feb 2014 21:19:45 +0000 (21:19 +0000)] 
SCXML-173: Support raise element
- rename non-standard event element to raise
- rename its name attribute to event
- ensure raise (and send) elements are not used within a finalize element as per the spec

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1568680 13f79535-47bb-0310-9956-ffa450edef68

4 years agoUpdate copyright for 2014.
Ate Douma [Mon, 3 Feb 2014 15:39:55 +0000 (15:39 +0000)] 
Update copyright for 2014.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1563956 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-186: fix setting up Groovy initialScript as scriptBaseClass after resetting...
Ate Douma [Thu, 30 Jan 2014 20:15:20 +0000 (20:15 +0000)] 
SCXML-186: fix setting up Groovy initialScript as scriptBaseClass after resetting the SCXMLExecutor (or using a new one)

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1562943 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-186: fix Groovy syntax ("not" not being a Groovy operator)
Ate Douma [Thu, 30 Jan 2014 20:13:01 +0000 (20:13 +0000)] 
SCXML-186: fix Groovy syntax ("not" not being a Groovy operator)

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1562942 13f79535-47bb-0310-9956-ffa450edef68

4 years agoAdd to svn:ignore: Eclipse and PMD file.
Gary D. Gregory [Wed, 29 Jan 2014 22:43:12 +0000 (22:43 +0000)] 
Add to svn:ignore: Eclipse and PMD file.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1562620 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-186: trivial fix in unit test to test as expected by the name
Woonsan Ko [Wed, 29 Jan 2014 19:12:57 +0000 (19:12 +0000)] 
SCXML-186: trivial fix in unit test to test as expected by the name

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1562553 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-186: make it more easy to override/replace the default ScriptPreProcessor
Ate Douma [Tue, 28 Jan 2014 20:30:41 +0000 (20:30 +0000)] 
SCXML-186: make it more easy to override/replace the default ScriptPreProcessor

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1562221 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-190: Check and enforce required scxml element attributes as defined by the...
Ate Douma [Tue, 28 Jan 2014 00:55:45 +0000 (00:55 +0000)] 
SCXML-190: Check and enforce required scxml element attributes as defined by the spec, w3.org/TR/2013/WD-scxml-20130801
- checks for <foreach> element added
TODO: when support for <<raise> is added, also add checks for its required attributes (id)

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1561916 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-191: Support foreach element
Ate Douma [Tue, 28 Jan 2014 00:53:42 +0000 (00:53 +0000)] 
SCXML-191: Support foreach element

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1561915 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-192: No need to XML escape single quote (') entities when serializing SCXML...
Ate Douma [Tue, 28 Jan 2014 00:48:01 +0000 (00:48 +0000)] 
SCXML-192: No need to XML escape single quote (') entities when serializing SCXML expressions

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1561914 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-190: Check and enforce required scxml element attributes as defined by the...
Ate Douma [Mon, 27 Jan 2014 22:56:50 +0000 (22:56 +0000)] 
SCXML-190: Check and enforce required scxml element attributes as defined by the spec, w3.org/TR/2013/WD-scxml-20130801
TODO: when support for <foreach> and <raise> is added, also add checks for their required attributes

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1561899 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-187: add SCXML initial script support to SCXMLWriter as well and adding test...
Ate Douma [Mon, 27 Jan 2014 20:30:25 +0000 (20:30 +0000)] 
SCXML-187: add SCXML initial script support to SCXMLWriter as well and adding test case to validate

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1561832 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-186: Groovy Expression evaluator support
Ate Douma [Wed, 22 Jan 2014 14:48:29 +0000 (14:48 +0000)] 
SCXML-186: Groovy Expression evaluator support
- allow subclasses to override/customize the creation of the GroovyExtendableScriptCache for a GroovyEvaluator

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1560366 13f79535-47bb-0310-9956-ffa450edef68

4 years agoDocument why Integer is used here
Sebastian Bazley [Mon, 20 Jan 2014 20:13:44 +0000 (20:13 +0000)] 
Document why Integer is used here

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1559823 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-188: correcting test of Javascript evaluation return value, not making assumpti...
Ate Douma [Mon, 20 Jan 2014 20:04:24 +0000 (20:04 +0000)] 
SCXML-188: correcting test of Javascript evaluation return value, not making assumptions on specific numeric return type (Integer or Double) if no decimals are expected.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1559819 13f79535-47bb-0310-9956-ffa450edef68

4 years agoShow what was evaluated
Sebastian Bazley [Mon, 20 Jan 2014 18:23:56 +0000 (18:23 +0000)] 
Show what was evaluated

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1559800 13f79535-47bb-0310-9956-ffa450edef68

4 years agoEnsure Continuum test passes (SCXML-188)
Sebastian Bazley [Mon, 20 Jan 2014 18:18:00 +0000 (18:18 +0000)] 
Ensure Continuum test passes (SCXML-188)

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1559796 13f79535-47bb-0310-9956-ffa450edef68

4 years agoremoving debugging again, test failure cause determined.
Ate Douma [Mon, 20 Jan 2014 16:06:32 +0000 (16:06 +0000)] 
removing debugging again, test failure cause determined.
SCXML-188: turns out to be a 'broken' Rhino implementation in OpenJDK 1.6

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1559759 13f79535-47bb-0310-9956-ffa450edef68

4 years agomore debugging to figure out why this fails on Continuum but works locally on both...
Ate Douma [Mon, 20 Jan 2014 15:25:00 +0000 (15:25 +0000)] 
more debugging to figure out why this fails on Continuum but works locally on both (Oracle) Java 6 and 7, now catching Error instead of Exception :)

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1559736 13f79535-47bb-0310-9956-ffa450edef68

4 years agomore debugging to figure out why this test fails on Continuum but works locally on...
Ate Douma [Mon, 20 Jan 2014 15:12:28 +0000 (15:12 +0000)] 
more debugging to figure out why this test fails on Continuum but works locally on both Java 6 and 7

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1559729 13f79535-47bb-0310-9956-ffa450edef68

4 years agoMissing @Override
Sebastian Bazley [Fri, 17 Jan 2014 16:10:32 +0000 (16:10 +0000)] 
Missing @Override

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1559167 13f79535-47bb-0310-9956-ffa450edef68

4 years agoAdd debug to see why Continuum is failing
Sebastian Bazley [Fri, 17 Jan 2014 16:01:28 +0000 (16:01 +0000)] 
Add debug to see why Continuum is failing

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1559164 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-186: Groovy Expression evaluator support
Ate Douma [Fri, 17 Jan 2014 15:29:34 +0000 (15:29 +0000)] 
SCXML-186: Groovy Expression evaluator support
- Simple test to validate and demonstrate using Groovy closures *is* possible although not recommended to be used.
  Using Groovy closures for SCXML is strongly discouraged because of the limitations
  (like NOT serializable) and serious memory/performance overhead they may cause.

  Better use the initial script feature as an script base and def(ine) methods which provides same/similar capabilities
  without the costs of closures. As an example, see: serializable-initial-base-script.xml

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1559151 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-186: Groovy Expression evaluator support
Ate Douma [Fri, 17 Jan 2014 15:26:38 +0000 (15:26 +0000)] 
SCXML-186: Groovy Expression evaluator support
- complete (albeit simple) test of the whole of this feature, using:
  - an initial script to define dynamic classes and functions
  - leveraging the initial script as base class and thereby providing its custom functions to child element script or condition evaluation
  - test and validate everything above is serializable

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1559147 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-186: Groovy Expression evaluator support
Ate Douma [Fri, 17 Jan 2014 15:22:41 +0000 (15:22 +0000)] 
SCXML-186: Groovy Expression evaluator support
- adding microwave tests for Groovy

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1559145 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-186: Groovy Expression evaluator support
Ate Douma [Fri, 17 Jan 2014 15:21:17 +0000 (15:21 +0000)] 
SCXML-186: Groovy Expression evaluator support
- adding simple test for GroovyContext (copied from jexl)

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1559143 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-186: Groovy Expression evaluator support
Ate Douma [Fri, 17 Jan 2014 15:20:41 +0000 (15:20 +0000)] 
SCXML-186: Groovy Expression evaluator support
- adding simple static method test for Groovy (copied from jexl)

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1559141 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-186: Groovy Expression evaluator support
Ate Douma [Fri, 17 Jan 2014 15:19:54 +0000 (15:19 +0000)] 
SCXML-186: Groovy Expression evaluator support
- adding test for the GroovyEvaluator ScriptPreProcessor

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1559140 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-186: Groovy Expression evaluator support
Ate Douma [Fri, 17 Jan 2014 15:18:35 +0000 (15:18 +0000)] 
SCXML-186: Groovy Expression evaluator support
- completion of this feature:
  - enhanced GroovyEvaluator using the GroovyEnhancedScriptCache:
    - adding a convenient ScriptPreProcessor, allowing to use Groovy operator aliases for XML unfriendly operators like < (alias: lt)
    - optionally using a SCXML initial script as base class for following scripts (allowing the intial script to be used to add extra functions for example)
  - enhanced GroovyContext with proper de-serialization support using the Groovy class loader during readObject
    - also explicitly disables (de)serialization of Groovy closure objects (by removing them from the variables before serialization)
  - a GroovyContextBinding to bridge between SCXML and Groovy contexts
  - the original GroovyBinding no longer is needed and replaced by the GroovySCXMLScript base class

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1559139 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-186: Goovy Expression evaluator support
Ate Douma [Fri, 17 Jan 2014 15:08:00 +0000 (15:08 +0000)] 
SCXML-186: Goovy Expression evaluator support
- Groovy Script base class for SCXML providing SCXML builtin functions In() and Data() as well as convenient functions empty() and var()

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1559129 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-186: Goovy Expression evaluator support
Ate Douma [Fri, 17 Jan 2014 14:01:35 +0000 (14:01 +0000)] 
SCXML-186: Goovy Expression evaluator support
- General purpose GroovyExtendableScriptCache, see embedded javadoc

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1559107 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-186: Goovy Expression evaluator support
Ate Douma [Fri, 17 Jan 2014 13:30:44 +0000 (13:30 +0000)] 
SCXML-186: Goovy Expression evaluator support
- Delegate all direct access to the vars map to using the methods instead.
This is needed to allow extended Contexts (like GroovyContext) to override and 'hide' the vars map,
as needed to be able to intercept (de)serialization of its elements.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1559101 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-186: Goovy Expression evaluator support
Ate Douma [Fri, 17 Jan 2014 13:27:45 +0000 (13:27 +0000)] 
SCXML-186: Goovy Expression evaluator support
- promote JexlEvaluator$EffectiveContextMap inner class to standalone so as to make it reusable by the GroovyEvaluator

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1559098 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-187: Add support for initial SCXML script (SCXML spec 3.2.2: <scxml> children)
Ate Douma [Fri, 17 Jan 2014 13:23:05 +0000 (13:23 +0000)] 
SCXML-187: Add support for initial SCXML script (SCXML spec 3.2.2: <scxml> children)
See: https://issues.apache.org/jira/browse/SCXML-187

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1559097 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-186: adding an optional groovy evaluator support
Woonsan Ko [Sat, 4 Jan 2014 00:45:45 +0000 (00:45 +0000)] 
SCXML-186: adding an optional groovy evaluator support
- evaluator operations
- effective context of the chaining of contexts
- SCXML built-in functions support by using  closures

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1555303 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-100: correcting _event variable properties. e.g, _event.invokeId -> _event...
Woonsan Ko [Thu, 2 Jan 2014 20:14:13 +0000 (20:14 +0000)] 
SCXML-100: correcting _event variable properties. e.g, _event.invokeId -> _event.invokeid.
Also, set 'platform' for error|change trigger events and set 'external' for others based on the spec 5.10.1.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1554895 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-184: Allow subclasses of SimpleErrorReporter to override the current and only...
Ate Douma [Fri, 13 Dec 2013 01:03:40 +0000 (01:03 +0000)] 
SCXML-184: Allow subclasses of SimpleErrorReporter to override the current and only logging handling

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1550606 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-177: copy strict/silent options in the copy constructor as well
Woonsan Ko [Thu, 5 Dec 2013 20:45:01 +0000 (20:45 +0000)] 
SCXML-177: copy strict/silent options in the copy constructor as well

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1548293 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-183: re-apply strict/silent mode settings after deserialization
Ate Douma [Thu, 5 Dec 2013 20:16:35 +0000 (20:16 +0000)] 
SCXML-183: re-apply strict/silent mode settings after deserialization

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1548266 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-183: Expose JexlEngine strict/silent mode settings through the JexlEvaluator...
Ate Douma [Thu, 5 Dec 2013 14:16:06 +0000 (14:16 +0000)] 
SCXML-183: Expose JexlEngine strict/silent mode settings through the JexlEvaluator for easier customization

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1548148 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-100: initial basic support for _event system variable. _event.name and _event...
Woonsan Ko [Thu, 5 Dec 2013 04:25:55 +0000 (04:25 +0000)] 
SCXML-100: initial basic support for _event system variable. _event.name and _event.data are supported now.
TODOs: determine type, sendid, origin and origintype based on context

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1548010 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-177: adding strict option and silent option in SCXMLReader
Woonsan Ko [Thu, 5 Dec 2013 02:59:34 +0000 (02:59 +0000)] 
SCXML-177: adding strict option and silent option in SCXMLReader

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1548001 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSCXML-180: treat the cond expression result as false even when the result is null...
Woonsan Ko [Wed, 4 Dec 2013 14:36:26 +0000 (14:36 +0000)] 
SCXML-180: treat the cond expression result as false even when the result is null or non-boolean object, or even when catching an exception while evaluating

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/scxml/trunk@1547807 13f79535-47bb-0310-9956-ffa450edef68