commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject commons-scxml git commit: Ensure when entering state its context has been created and (nested) datamodel is cloned
Date Sat, 02 Jan 2016 14:48:52 GMT
Repository: commons-scxml
Updated Branches:
  refs/heads/master a5d7dd51e -> 031f8ff32


Ensure when entering state its context has been created and (nested) datamodel is cloned


Project: http://git-wip-us.apache.org/repos/asf/commons-scxml/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-scxml/commit/031f8ff3
Tree: http://git-wip-us.apache.org/repos/asf/commons-scxml/tree/031f8ff3
Diff: http://git-wip-us.apache.org/repos/asf/commons-scxml/diff/031f8ff3

Branch: refs/heads/master
Commit: 031f8ff3212c426ca7510dc6fd160dff22165be3
Parents: a5d7dd5
Author: Ate Douma <ate@apache.org>
Authored: Sat Jan 2 15:48:44 2016 +0100
Committer: Ate Douma <ate@apache.org>
Committed: Sat Jan 2 15:48:44 2016 +0100

----------------------------------------------------------------------
 .../org/apache/commons/scxml2/semantics/SCXMLSemanticsImpl.java    | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-scxml/blob/031f8ff3/src/main/java/org/apache/commons/scxml2/semantics/SCXMLSemanticsImpl.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/scxml2/semantics/SCXMLSemanticsImpl.java b/src/main/java/org/apache/commons/scxml2/semantics/SCXMLSemanticsImpl.java
index 13bc848..0c7863e 100644
--- a/src/main/java/org/apache/commons/scxml2/semantics/SCXMLSemanticsImpl.java
+++ b/src/main/java/org/apache/commons/scxml2/semantics/SCXMLSemanticsImpl.java
@@ -1000,6 +1000,8 @@ public class SCXMLSemanticsImpl implements SCXMLSemantics {
         Collections.sort(entryList, DocumentOrder.documentOrderComparator);
         for (EnterableState es : entryList) {
             exctx.getScInstance().getStateConfiguration().enterState(es);
+            // ensure state context creation and datamodel cloned
+            exctx.getScInstance().getContext(es);
             if (es instanceof TransitionalState && !((TransitionalState)es).getInvokes().isEmpty())
{
                 statesToInvoke.add((TransitionalState) es);
             }


Mime
View raw message