servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r410289 - in /incubator/servicemix/trunk/servicemix-beanflow/src: main/java/org/apache/servicemix/beanflow/ main/java/org/apache/servicemix/beanflow/support/ test/java/org/apache/servicemix/beanflow/
Date Tue, 30 May 2006 14:07:43 GMT
Author: jstrachan
Date: Tue May 30 07:07:41 2006
New Revision: 410289

URL: http://svn.apache.org/viewvc?rev=410289&view=rev
Log:
minor refactor of method names - thanks to Brian Goetz for the suggestions

Modified:
    incubator/servicemix/trunk/servicemix-beanflow/src/main/java/org/apache/servicemix/beanflow/Workflow.java
    incubator/servicemix/trunk/servicemix-beanflow/src/main/java/org/apache/servicemix/beanflow/support/ReflectionInterpreter.java
    incubator/servicemix/trunk/servicemix-beanflow/src/test/java/org/apache/servicemix/beanflow/ExampleStringWorkflow.java
    incubator/servicemix/trunk/servicemix-beanflow/src/test/java/org/apache/servicemix/beanflow/ExampleWorkflow.java

Modified: incubator/servicemix/trunk/servicemix-beanflow/src/main/java/org/apache/servicemix/beanflow/Workflow.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/servicemix-beanflow/src/main/java/org/apache/servicemix/beanflow/Workflow.java?rev=410289&r1=410288&r2=410289&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-beanflow/src/main/java/org/apache/servicemix/beanflow/Workflow.java
(original)
+++ incubator/servicemix/trunk/servicemix-beanflow/src/main/java/org/apache/servicemix/beanflow/Workflow.java
Tue May 30 07:07:41 2006
@@ -81,7 +81,7 @@
     /**
      * Sets the next step to be executed when the current step completes
      */
-    public void goTo(T stepName) {
+    public void setNextStep(T stepName) {
         this.nextStep = stepName;
         suspended.set(false);
         nextStep();
@@ -185,7 +185,7 @@
         return new Runnable() {
 
             public void run() {
-                goTo(joinedStep);
+                setNextStep(joinedStep);
                 nextStep();
             }
         };

Modified: incubator/servicemix/trunk/servicemix-beanflow/src/main/java/org/apache/servicemix/beanflow/support/ReflectionInterpreter.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/servicemix-beanflow/src/main/java/org/apache/servicemix/beanflow/support/ReflectionInterpreter.java?rev=410289&r1=410288&r2=410289&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-beanflow/src/main/java/org/apache/servicemix/beanflow/support/ReflectionInterpreter.java
(original)
+++ incubator/servicemix/trunk/servicemix-beanflow/src/main/java/org/apache/servicemix/beanflow/support/ReflectionInterpreter.java
Tue May 30 07:07:41 2006
@@ -42,7 +42,7 @@
             WorkflowStep<T> workflowStep = (WorkflowStep<T>) step;
             T nextStep = workflowStep.execute(workflow);
             if (nextStep != null) {
-                workflow.goTo(nextStep);
+                workflow.setNextStep(nextStep);
             }
             else {
                 workflow.suspend();
@@ -115,7 +115,7 @@
     @SuppressWarnings("unchecked")
     protected void handleStepResult(String step, Workflow workflow, Object result) {
         if (result != null) {
-            workflow.goTo(result);
+            workflow.setNextStep(result);
         }
         else {
             workflow.suspend();

Modified: incubator/servicemix/trunk/servicemix-beanflow/src/test/java/org/apache/servicemix/beanflow/ExampleStringWorkflow.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/servicemix-beanflow/src/test/java/org/apache/servicemix/beanflow/ExampleStringWorkflow.java?rev=410289&r1=410288&r2=410289&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-beanflow/src/test/java/org/apache/servicemix/beanflow/ExampleStringWorkflow.java
(original)
+++ incubator/servicemix/trunk/servicemix-beanflow/src/test/java/org/apache/servicemix/beanflow/ExampleStringWorkflow.java
Tue May 30 07:07:41 2006
@@ -46,7 +46,7 @@
     public void startStep() {
         // lets use an explicit goTo() to tell the workflow
         // which step to go to next; though we can just return Strings
-        goTo("loopStep");
+        setNextStep("loopStep");
     }
 
     // lets use the return value to specify the next step
@@ -103,7 +103,7 @@
             this.userEmailAddress = emailAddress;
 
             log.info("Lets re-start the suspended workflow");
-            goTo("afterEnteredEmailStep");
+            setNextStep("afterEnteredEmailStep");
         }
     }
 }

Modified: incubator/servicemix/trunk/servicemix-beanflow/src/test/java/org/apache/servicemix/beanflow/ExampleWorkflow.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/servicemix-beanflow/src/test/java/org/apache/servicemix/beanflow/ExampleWorkflow.java?rev=410289&r1=410288&r2=410289&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-beanflow/src/test/java/org/apache/servicemix/beanflow/ExampleWorkflow.java
(original)
+++ incubator/servicemix/trunk/servicemix-beanflow/src/test/java/org/apache/servicemix/beanflow/ExampleWorkflow.java
Tue May 30 07:07:41 2006
@@ -46,7 +46,7 @@
     public void startStep() {
         // lets use an explicit goTo() to tell the workflow
         // which step to go to next; though we can just return Strings
-        goTo(Step.loopStep);
+        setNextStep(Step.loopStep);
     }
 
     // lets use the return value to specify the next step
@@ -103,7 +103,7 @@
             this.userEmailAddress = emailAddress;
 
             log.info("Lets re-start the suspended workflow");
-            goTo(Step.afterEnteredEmailStep);
+            setNextStep(Step.afterEnteredEmailStep);
         }
     }
 }



Mime
View raw message