[jboss-svn-commits] JBL Code SVN: r10920 - in labs/jbossesb/trunk/product: services/jbpm/src/main/java/org/jboss/soa/esb/services/jbpm/actions and 1 other directory.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Thu Apr 12 06:50:37 EDT 2007
Author: estebanschifman
Date: 2007-04-12 06:50:37 -0400 (Thu, 12 Apr 2007)
New Revision: 10920
Modified:
labs/jbossesb/trunk/product/samples/quickstarts/jbpm_simple1/readme.txt
labs/jbossesb/trunk/product/services/jbpm/src/main/java/org/jboss/soa/esb/services/jbpm/actions/CommandInterpreter.java
Log:
Make jbpm.CommandInterpreter implement ActionLifecycle. Change readme.txt
Modified: labs/jbossesb/trunk/product/samples/quickstarts/jbpm_simple1/readme.txt
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/jbpm_simple1/readme.txt 2007-04-12 10:12:43 UTC (rev 10919)
+++ labs/jbossesb/trunk/product/samples/quickstarts/jbpm_simple1/readme.txt 2007-04-12 10:50:37 UTC (rev 10920)
@@ -1,4 +1,5 @@
+
This test assumes that .../product/services/jbpm/build/jbpm.esb has been deployed
in the esb container deploy directory, and that the esb container is up and running
@@ -15,6 +16,8 @@
4) a signal is sent to the current process instance id
5) the process instance is interrogated to see if it has ended
+To start the quickstart just type 'ant'
+
Other quickstarts will use higher level jBPM related specialized services that
require simpler interfaces, but that under the covers will still use this low
level command message interface
\ No newline at end of file
Modified: labs/jbossesb/trunk/product/services/jbpm/src/main/java/org/jboss/soa/esb/services/jbpm/actions/CommandInterpreter.java
===================================================================
--- labs/jbossesb/trunk/product/services/jbpm/src/main/java/org/jboss/soa/esb/services/jbpm/actions/CommandInterpreter.java 2007-04-12 10:12:43 UTC (rev 10919)
+++ labs/jbossesb/trunk/product/services/jbpm/src/main/java/org/jboss/soa/esb/services/jbpm/actions/CommandInterpreter.java 2007-04-12 10:50:37 UTC (rev 10920)
@@ -27,6 +27,8 @@
import org.apache.log4j.Logger;
import org.jboss.soa.esb.ConfigurationException;
+import org.jboss.soa.esb.actions.ActionLifecycle;
+import org.jboss.soa.esb.actions.ActionLifecycleException;
import org.jboss.soa.esb.addressing.EPR;
import org.jboss.soa.esb.addressing.MalformedEPRException;
import org.jboss.soa.esb.couriers.Courier;
@@ -52,8 +54,18 @@
* @author <a href="mailto:schifest at heuristica.com.ar">schifest at heuristica.com.ar</a>
*
*/
-public class CommandInterpreter
+public class CommandInterpreter implements ActionLifecycle
{
+ public void destroy() throws ActionLifecycleException {
+ _config = null;
+
+ }
+ public void initialise() throws ActionLifecycleException {
+ if (null==_config)
+ _config = new ConfigTree("autoGenerated");
+
+ }
+
private CommandInterpreter() {}
public CommandInterpreter(ConfigTree config) throws ConfigurationException
{
@@ -433,4 +445,5 @@
protected Token _token;
protected static Logger _logger = Logger.getLogger(CommandInterpreter.class);
+
}
More information about the jboss-svn-commits
mailing list