commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ra...@apache.org
Subject svn commit: r478002 - in /jakarta/commons/proper/scxml/trunk: pom.xml project.xml src/main/java/org/apache/commons/scxml/model/Assign.java src/main/java/org/apache/commons/scxml/model/Var.java
Date Wed, 22 Nov 2006 01:33:41 GMT
Author: rahul
Date: Tue Nov 21 17:33:40 2006
New Revision: 478002

URL: http://svn.apache.org/viewvc?view=rev&rev=478002
Log:
Logging for <var> and <assign>.
SCXML-31

Requested by: Nestor Urquiza <nestoru AT yahoo DOT com>.
Adding Nestor to contributors.

Modified:
    jakarta/commons/proper/scxml/trunk/pom.xml
    jakarta/commons/proper/scxml/trunk/project.xml
    jakarta/commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/model/Assign.java
    jakarta/commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/model/Var.java

Modified: jakarta/commons/proper/scxml/trunk/pom.xml
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/scxml/trunk/pom.xml?view=diff&rev=478002&r1=478001&r2=478002
==============================================================================
--- jakarta/commons/proper/scxml/trunk/pom.xml (original)
+++ jakarta/commons/proper/scxml/trunk/pom.xml Tue Nov 21 17:33:40 2006
@@ -75,6 +75,9 @@
     <contributor>
       <name>Sitthichai Rernglertpricha</name>
     </contributor>
+    <contributor>
+      <name>Nestor Urquiza</name>
+    </contributor>
   </contributors>
 
   <dependencies>

Modified: jakarta/commons/proper/scxml/trunk/project.xml
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/scxml/trunk/project.xml?view=diff&rev=478002&r1=478001&r2=478002
==============================================================================
--- jakarta/commons/proper/scxml/trunk/project.xml (original)
+++ jakarta/commons/proper/scxml/trunk/project.xml Tue Nov 21 17:33:40 2006
@@ -110,6 +110,9 @@
     <contributor>
       <name>Sitthichai Rernglertpricha</name>
     </contributor>
+    <contributor>
+      <name>Nestor Urquiza</name>
+    </contributor>
   </contributors>
   
   <dependencies>

Modified: jakarta/commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/model/Assign.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/model/Assign.java?view=diff&rev=478002&r1=478001&r2=478002
==============================================================================
--- jakarta/commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/model/Assign.java
(original)
+++ jakarta/commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/model/Assign.java
Tue Nov 21 17:33:40 2006
@@ -209,6 +209,10 @@
                     Object valueObject = eval.eval(ctx, expr);
                     SCXMLHelper.setNodeValue(oldNode, valueObject.toString());
                 }
+                if (appLog.isDebugEnabled()) {
+                    appLog.debug("<assign>: data node '" + oldNode.getNodeName()
+                        + "' updated");
+                }
                 TriggerEvent ev = new TriggerEvent(name + ".change",
                     TriggerEvent.CHANGE_EVENT);
                 derivedEvents.add(ev);
@@ -229,6 +233,10 @@
                     varObj = eval.eval(ctx, expr);
                 }
                 ctx.set(name, varObj);
+                if (appLog.isDebugEnabled()) {
+                    appLog.debug("<assign>: Set variable '" + name + "' to '"
+                        + String.valueOf(varObj) + "'");
+                }
                 TriggerEvent ev = new TriggerEvent(name + ".change",
                     TriggerEvent.CHANGE_EVENT);
                 derivedEvents.add(ev);

Modified: jakarta/commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/model/Var.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/model/Var.java?view=diff&rev=478002&r1=478001&r2=478002
==============================================================================
--- jakarta/commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/model/Var.java
(original)
+++ jakarta/commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/model/Var.java
Tue Nov 21 17:33:40 2006
@@ -105,6 +105,10 @@
         Evaluator eval = scInstance.getEvaluator();
         Object varObj = eval.eval(ctx, expr);
         ctx.setLocal(name, varObj);
+        if (appLog.isDebugEnabled()) {
+            appLog.debug("<var>: Defined variable '" + name
+                + "' with initial value '" + String.valueOf(varObj) + "'");
+        }
         TriggerEvent ev = new TriggerEvent(name + ".change",
                 TriggerEvent.CHANGE_EVENT);
         derivedEvents.add(ev);



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message