[jbpm-commits] JBoss JBPM SVN: r5316 - in projects/jopr-integration/branch/3.x/jbpm-jopr-service: scripts and 9 other directories.
do-not-reply at jboss.org
do-not-reply at jboss.org
Fri Jul 17 04:53:15 EDT 2009
Author: jim.ma
Date: 2009-07-17 04:53:15 -0400 (Fri, 17 Jul 2009)
New Revision: 5316
Added:
projects/jopr-integration/branch/3.x/jbpm-jopr-service/pom.xml
projects/jopr-integration/branch/3.x/jbpm-jopr-service/scripts/
projects/jopr-integration/branch/3.x/jbpm-jopr-service/scripts/assembly-distro.xml
projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/
projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/
projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/java/
projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/java/org/
projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/java/org/jbpm/
projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/java/org/jbpm/jopr/
projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/java/org/jbpm/jopr/integration/
projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/java/org/jbpm/jopr/integration/JbpmService.java
projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/java/org/jbpm/jopr/integration/JbpmServiceMBean.java
projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/resources/
projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/resources/META-INF/
projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/resources/META-INF/jboss-service.xml
projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/resources/hibernate.cfg.xml
projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/resources/jbpm.jopr.cfg.xml
Log:
Added jbpm service to expose the JMX methods that jopr needs
Added: projects/jopr-integration/branch/3.x/jbpm-jopr-service/pom.xml
===================================================================
--- projects/jopr-integration/branch/3.x/jbpm-jopr-service/pom.xml (rev 0)
+++ projects/jopr-integration/branch/3.x/jbpm-jopr-service/pom.xml 2009-07-17 08:53:15 UTC (rev 5316)
@@ -0,0 +1,79 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.jbpm.jbpm3</groupId>
+ <artifactId>jbpm-jopr-service</artifactId>
+ <packaging>jar</packaging>
+ <version>1.0-SNAPSHOT</version>
+
+ <parent>
+ <groupId>org.jbpm</groupId>
+ <artifactId>jbpm-parent</artifactId>
+ <version>1.0.1.GA</version>
+ </parent>
+
+ <name>Jbpm service</name>
+ <description>Jbpm sevice for jopr integraton</description>
+
+
+ <dependencies>
+ <dependency>
+ <groupId>org.jbpm.jbpm3</groupId>
+ <artifactId>jbpm-jpdl</artifactId>
+ <version>3.2.5.GA</version>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.client</groupId>
+ <artifactId>jbossall-client</artifactId>
+ <version>4.2.3.GA</version>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>jboss</groupId>
+ <artifactId>jboss-system</artifactId>
+ <version>4.2.3.GA</version>
+ <scope>provided</scope>
+ </dependency>
+
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>2.2-beta-3</version>
+ <executions>
+ <execution>
+ <id>distribution-package</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ <configuration>
+ <finalName>jbpm_jopr_service.sar</finalName>
+ <ignoreDirFormatExtensions>true</ignoreDirFormatExtensions>
+ <appendAssemblyId>false</appendAssemblyId>
+ <descriptors>
+ <descriptor>scripts/assembly-distro.xml</descriptor>
+ </descriptors>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+
+
+ <repositories>
+ <repository>
+ <id>repository.jboss.org</id>
+ <url>http://repository.jboss.org/maven2</url>
+ </repository>
+ </repositories>
+
+</project>
Added: projects/jopr-integration/branch/3.x/jbpm-jopr-service/scripts/assembly-distro.xml
===================================================================
--- projects/jopr-integration/branch/3.x/jbpm-jopr-service/scripts/assembly-distro.xml (rev 0)
+++ projects/jopr-integration/branch/3.x/jbpm-jopr-service/scripts/assembly-distro.xml 2009-07-17 08:53:15 UTC (rev 5316)
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<assembly xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/assembly-1.1.0-SNAPSHOT.xsd">
+
+ <includeBaseDirectory>false</includeBaseDirectory>
+ <formats>
+ <format>dir</format>
+ </formats>
+ <!--fileSets>
+ <fileSet>
+ <directory>target/classes</directory>
+ <includes>
+ <include>*</include>
+ </includes>
+
+ <useDefaultExcludes>true</useDefaultExcludes>
+ </fileSet>
+ </fileSets-->
+
+ <dependencySets>
+ <dependencySet>
+ <unpack>true</unpack>
+ <includes>
+ <include>org.jbpm.jbpm3:jbpm-jopr-service</include>
+ </includes>
+ </dependencySet>
+</dependencySets>
+
+</assembly>
Added: projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/java/org/jbpm/jopr/integration/JbpmService.java
===================================================================
--- projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/java/org/jbpm/jopr/integration/JbpmService.java (rev 0)
+++ projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/java/org/jbpm/jopr/integration/JbpmService.java 2009-07-17 08:53:15 UTC (rev 5316)
@@ -0,0 +1,190 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jbpm.jopr.integration;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.util.List;
+import java.util.zip.ZipInputStream;
+
+import org.jboss.deployment.DeploymentException;
+import org.jboss.system.ServiceMBeanSupport;
+import org.jbpm.JbpmConfiguration;
+import org.jbpm.JbpmContext;
+import org.jbpm.graph.def.ProcessDefinition;
+import org.jbpm.graph.exe.ProcessInstance;
+
+/**
+ * jBPM service initialisation MBean.
+ *
+ * @author Jim Ma
+ */
+public class JbpmService extends ServiceMBeanSupport implements JbpmServiceMBean
+{
+ private JbpmConfiguration jbpmConfig;
+ @Override
+ protected void startService()
+ throws Exception
+ {
+ //uses jbpm defatul configuration
+ final JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance("jbpm.jopr.cfg.xml");
+ jbpmConfig = jbpmConfiguration;
+ JbpmContext jbpmContext = jbpmConfig.createJbpmContext();
+ try
+ {
+ jbpmContext.getGraphSession();
+ } catch (RuntimeException e) {
+ e.printStackTrace();
+
+ }
+ finally
+ {
+ jbpmContext.close();
+ }
+ super.startService();
+ }
+
+ @Override
+ protected void stopService()
+ throws Exception
+ {
+ super.stopService();
+
+ }
+
+ public List<ProcessDefinition> getDeployedProcessDefinitions() {
+ JbpmContext jbpmContext = jbpmConfig.createJbpmContext();
+ List<ProcessDefinition> processes = jbpmContext.getGraphSession().findAllProcessDefinitions();
+ jbpmContext.close();
+ return processes;
+ }
+
+ public List<ProcessInstance> getProcessInstances(long id) {
+ JbpmContext jbpmContext = jbpmConfig.createJbpmContext();
+ List<ProcessInstance> instances = jbpmContext.getGraphSession().findProcessInstances(id);
+ jbpmContext.close();
+ return instances;
+ }
+
+ public ProcessInstance getProcessInstance(long id) {
+ JbpmContext jbpmContext = jbpmConfig.createJbpmContext();
+ ProcessInstance instance = jbpmContext.getGraphSession().getProcessInstance(id);
+ jbpmContext.close();
+ return instance;
+ }
+
+
+ public void deleteProcess(long id) throws Exception {
+ JbpmContext jbpmContext = jbpmConfig.createJbpmContext();
+ List<ProcessDefinition> processes = jbpmContext.getGraphSession().findAllProcessDefinitions();
+ for (ProcessDefinition process : processes) {
+ if (process.getId() == id) {
+ jbpmContext.getGraphSession().deleteProcessDefinition(id);
+ break;
+ }
+ }
+ jbpmContext.close();
+ }
+
+
+ public void deploy(String fileURL) throws DeploymentException {
+ JbpmContext jbpmContext = jbpmConfig.createJbpmContext();
+ try {
+ URL url = new URL(fileURL);
+ ProcessDefinition processDefinition = null;
+ File file = new File(url.getFile());
+ if (url.toExternalForm().toLowerCase().lastIndexOf(".par") > 0) {
+ processDefinition = parseProcessArchive(file);
+ }
+ if (url.toExternalForm().toLowerCase().lastIndexOf(".xml") > 0) {
+ processDefinition = parseProcessXmlFile(file);
+ }
+ jbpmContext.deployProcessDefinition(processDefinition);
+ jbpmContext.getSession().flush();
+ } catch (MalformedURLException e) {
+ throw new DeploymentException("The input url [" + fileURL + "] is invalid" , e);
+ } catch (IOException ioe) {
+ throw new DeploymentException("Failed to deploy process [" + fileURL + "]" , ioe);
+ } finally {
+ jbpmContext.close();
+ }
+
+ }
+
+ public void deleteProcessInstance(long id) throws Exception {
+ JbpmContext jbpmContext = jbpmConfig.createJbpmContext();
+ jbpmContext.getGraphSession().deleteProcessInstance(id);
+ jbpmContext.close();
+
+ }
+ public void startProcessInstance(long defId) throws Exception {
+ JbpmContext jbpmContext = jbpmConfig.createJbpmContext();
+ ProcessDefinition def = jbpmContext.getGraphSession().getProcessDefinition(defId);
+ def.createProcessInstance();
+ jbpmContext.close();
+
+ }
+ public void suspendProcessInstance(long id) throws Exception {
+ JbpmContext jbpmContext = jbpmConfig.createJbpmContext();
+ ProcessInstance instance = jbpmContext.getGraphSession().getProcessInstance(id);
+ instance.suspend();
+ jbpmContext.close();
+
+ }
+ public void endProcessInstance(long id) throws Exception {
+ JbpmContext jbpmContext = jbpmConfig.createJbpmContext();
+ ProcessInstance instance = jbpmContext.getGraphSession().getProcessInstance(id);
+ instance.end();
+ jbpmContext.close();
+ }
+ public void resumeProcessInstance(long id) throws Exception {
+ JbpmContext jbpmContext = jbpmConfig.createJbpmContext();
+ ProcessInstance instance = jbpmContext.getGraphSession().getProcessInstance(id);
+ instance.resume();
+ jbpmContext.close();
+ }
+
+ private ProcessDefinition parseProcessArchive(File processFile) throws IOException {
+ ZipInputStream processStream = new ZipInputStream(new FileInputStream(processFile));
+ try {
+ ProcessDefinition processDefinition = ProcessDefinition.parseParZipInputStream(processStream);
+ return processDefinition;
+ }
+ finally {
+ processStream.close();
+ }
+ }
+
+ private ProcessDefinition parseProcessXmlFile(File processFile) throws IOException {
+ java.io.FileInputStream fileInputStrem = new java.io.FileInputStream(processFile);
+ ProcessDefinition processDefinition = ProcessDefinition.parseXmlInputStream(fileInputStrem);
+ fileInputStrem.close();
+ return processDefinition;
+
+ }
+
+
+}
Added: projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/java/org/jbpm/jopr/integration/JbpmServiceMBean.java
===================================================================
--- projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/java/org/jbpm/jopr/integration/JbpmServiceMBean.java (rev 0)
+++ projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/java/org/jbpm/jopr/integration/JbpmServiceMBean.java 2009-07-17 08:53:15 UTC (rev 5316)
@@ -0,0 +1,49 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jbpm.jopr.integration;
+
+import java.util.List;
+
+import org.jboss.deployment.DeploymentException;
+import org.jboss.system.ServiceMBean;
+import org.jbpm.JbpmConfiguration;
+import org.jbpm.graph.def.ProcessDefinition;
+import org.jbpm.graph.exe.ProcessInstance;
+
+/**
+ * jBPM service interface.
+ *
+ * @author Jim Ma
+ */
+public interface JbpmServiceMBean extends ServiceMBean
+{
+ public List<ProcessDefinition> getDeployedProcessDefinitions();
+ public List<ProcessInstance> getProcessInstances(long id);
+ public void deploy(String url) throws DeploymentException;
+ public void deleteProcess(long id) throws Exception;
+ public void deleteProcessInstance(long id) throws Exception;
+ public void startProcessInstance(long defId) throws Exception;
+ public void suspendProcessInstance(long id) throws Exception;
+ public void endProcessInstance(long id) throws Exception;
+ public void resumeProcessInstance(long id) throws Exception;
+ public ProcessInstance getProcessInstance(long id);
+}
Added: projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/resources/META-INF/jboss-service.xml
===================================================================
--- projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/resources/META-INF/jboss-service.xml (rev 0)
+++ projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/resources/META-INF/jboss-service.xml 2009-07-17 08:53:15 UTC (rev 5316)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+ <classpath codebase="${jboss.server.home.url}/deploy/jbpm/jbpm-service.sar" archives="*"/>
+ <mbean code="org.jbpm.jopr.integration.JbpmService"
+ name="jboss.jbpm:service=JbpmService">
+ <depends>org.jboss.jbpm:service=LoginConfig</depends>
+ <depends>jboss.jca:service=DataSourceBinding,name=JbpmDS</depends>
+ </mbean>
+</server>
Added: projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/resources/hibernate.cfg.xml
===================================================================
--- projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/resources/hibernate.cfg.xml (rev 0)
+++ projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/resources/hibernate.cfg.xml 2009-07-17 08:53:15 UTC (rev 5316)
@@ -0,0 +1,256 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!DOCTYPE hibernate-configuration PUBLIC
+ "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
+ "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
+
+<hibernate-configuration>
+ <session-factory>
+
+ <!-- hibernate dialect -->
+ <property name="hibernate.dialect">org.hibernate.dialect.HSQLDialect</property>
+
+ <!-- JDBC connection properties (begin) ===
+ <property name="hibernate.connection.driver_class">org.hsqldb.jdbcDriver</property>
+ <property name="hibernate.connection.url">jdbc:hsqldb:mem:jbpm</property>
+ <property name="hibernate.connection.username">sa</property>
+ <property name="hibernate.connection.password"></property>
+ ==== JDBC connection properties (end) -->
+
+ <!-- DataSource properties (begin) -->
+ <property name="hibernate.connection.datasource">java:/JbpmDS</property>
+ <!-- DataSource properties (end) -->
+
+ <!-- JTA transaction properties (begin) -->
+ <property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
+ <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
+ <!-- JTA transaction properties (end) -->
+
+ <!-- CMT transaction properties (begin) ===
+ <property name="hibernate.transaction.factory_class">org.hibernate.transaction.CMTTransactionFactory</property>
+ <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
+ ==== CMT transaction properties (end) -->
+
+ <!-- ################################### -->
+ <!-- # common settings # -->
+ <!-- ################################### -->
+
+ <!-- Automatic schema creation (begin) ===
+ <property name="hibernate.hbm2ddl.auto">create</property>
+ ==== Automatic schema creation (end) -->
+
+ <!-- Simple memory-only cache -->
+ <property name="hibernate.cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
+
+ <!-- logging properties -->
+ <property name="hibernate.format_sql">true</property>
+ <property name="hibernate.use_sql_comments">true</property>
+
+ <!-- ############################################ -->
+ <!-- # mapping files with external dependencies # -->
+ <!-- ############################################ -->
+
+ <!-- Additional mappings defined per module go here -->
+ <mapping resource="hibernate.extra.hbm.xml" />
+ <mapping resource="hibernate.identity.hbm.xml" />
+ <!-- ###################### -->
+ <!-- # jbpm mapping files # -->
+ <!-- ###################### -->
+
+ <!-- hql queries -->
+ <mapping resource="org/jbpm/db/hibernate.queries.hbm.xml" />
+
+ <!-- hql queries used in simulation for querying historical data.
+ uncomment if you want to use the GetSimulationInputCommand
+ or you want to use the queries directly.
+ beware: the queries need the stddev function to be enabled in your dialect.
+ for more information, visit:
+ http://www.camunda.com/business_process_simulation_news/mysql_and_stddev.html -->
+ <!--
+ <mapping resource="org/jbpm/sim/bam/hibernate.queries.hbm.xml" />
+ -->
+
+ <!-- graph.action mapping files -->
+ <mapping resource="org/jbpm/graph/action/MailAction.hbm.xml"/>
+
+ <!-- graph.def mapping files -->
+ <mapping resource="org/jbpm/graph/def/ProcessDefinition.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/def/Node.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/def/Transition.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/def/Event.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/def/Action.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/def/SuperState.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/def/ExceptionHandler.hbm.xml"/>
+ <mapping resource="org/jbpm/instantiation/Delegation.hbm.xml"/>
+
+ <!-- ########################################### -->
+ <!-- # mapping file with external dependencies # -->
+ <!-- ########################################### -->
+ <!-- the following mapping file has a dependency on 'bsh-{version}.jar'.
+ uncomment this if bsh is not in your classpath.
+ the script element will not be available in process definition files.
+ note: this mapping must appear below org/jbpm/graph/def/Action.hbm.xml -->
+ <mapping resource="org/jbpm/graph/action/Script.hbm.xml"/>
+
+ <!-- graph.node mapping files -->
+ <mapping resource="org/jbpm/graph/node/StartState.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/node/EndState.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/node/ProcessState.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/node/Decision.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/node/Fork.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/node/Join.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/node/MailNode.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/node/State.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/node/TaskNode.hbm.xml"/>
+
+ <!-- context.def mapping files -->
+ <mapping resource="org/jbpm/context/def/ContextDefinition.hbm.xml"/>
+ <mapping resource="org/jbpm/context/def/VariableAccess.hbm.xml"/>
+
+ <!-- bytes mapping files -->
+ <mapping resource="org/jbpm/bytes/ByteArray.hbm.xml"/>
+
+ <!-- module.def mapping files -->
+ <mapping resource="org/jbpm/module/def/ModuleDefinition.hbm.xml"/>
+
+ <!-- file.def mapping files -->
+ <mapping resource="org/jbpm/file/def/FileDefinition.hbm.xml"/>
+
+ <!-- taskmgmt.def mapping files -->
+ <mapping resource="org/jbpm/taskmgmt/def/TaskMgmtDefinition.hbm.xml"/>
+ <mapping resource="org/jbpm/taskmgmt/def/Swimlane.hbm.xml"/>
+ <mapping resource="org/jbpm/taskmgmt/def/Task.hbm.xml"/>
+ <mapping resource="org/jbpm/taskmgmt/def/TaskController.hbm.xml"/>
+
+ <!-- scheduler.def mapping files -->
+ <mapping resource="org/jbpm/scheduler/def/CreateTimerAction.hbm.xml"/>
+ <mapping resource="org/jbpm/scheduler/def/CancelTimerAction.hbm.xml"/>
+
+ <!-- graph.exe mapping files -->
+ <mapping resource="org/jbpm/graph/exe/Comment.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/exe/ProcessInstance.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/exe/Token.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/exe/RuntimeAction.hbm.xml"/>
+
+ <!-- module.exe mapping files -->
+ <mapping resource="org/jbpm/module/exe/ModuleInstance.hbm.xml"/>
+
+ <!-- context.exe mapping files -->
+ <mapping resource="org/jbpm/context/exe/ContextInstance.hbm.xml"/>
+ <mapping resource="org/jbpm/context/exe/TokenVariableMap.hbm.xml"/>
+ <mapping resource="org/jbpm/context/exe/VariableInstance.hbm.xml"/>
+ <mapping resource="org/jbpm/context/exe/variableinstance/ByteArrayInstance.hbm.xml"/>
+ <mapping resource="org/jbpm/context/exe/variableinstance/DateInstance.hbm.xml"/>
+ <mapping resource="org/jbpm/context/exe/variableinstance/DoubleInstance.hbm.xml"/>
+ <mapping resource="org/jbpm/context/exe/variableinstance/HibernateLongInstance.hbm.xml"/>
+ <mapping resource="org/jbpm/context/exe/variableinstance/HibernateStringInstance.hbm.xml"/>
+ <mapping resource="org/jbpm/context/exe/variableinstance/LongInstance.hbm.xml"/>
+ <mapping resource="org/jbpm/context/exe/variableinstance/NullInstance.hbm.xml"/>
+ <mapping resource="org/jbpm/context/exe/variableinstance/StringInstance.hbm.xml"/>
+
+ <!-- job mapping files -->
+ <mapping resource="org/jbpm/job/Job.hbm.xml"/>
+ <mapping resource="org/jbpm/job/Timer.hbm.xml"/>
+ <mapping resource="org/jbpm/job/ExecuteNodeJob.hbm.xml"/>
+ <mapping resource="org/jbpm/job/ExecuteActionJob.hbm.xml"/>
+ <mapping resource="org/jbpm/job/CleanUpProcessJob.hbm.xml"/>
+
+ <!-- taskmgmt.exe mapping files -->
+ <mapping resource="org/jbpm/taskmgmt/exe/TaskMgmtInstance.hbm.xml"/>
+ <mapping resource="org/jbpm/taskmgmt/exe/TaskInstance.hbm.xml"/>
+ <mapping resource="org/jbpm/taskmgmt/exe/PooledActor.hbm.xml"/>
+ <mapping resource="org/jbpm/taskmgmt/exe/SwimlaneInstance.hbm.xml"/>
+
+ <!-- logging mapping files -->
+ <mapping resource="org/jbpm/logging/log/ProcessLog.hbm.xml"/>
+ <mapping resource="org/jbpm/logging/log/MessageLog.hbm.xml"/>
+ <mapping resource="org/jbpm/logging/log/CompositeLog.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/log/ActionLog.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/log/NodeLog.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/log/ProcessInstanceCreateLog.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/log/ProcessInstanceEndLog.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/log/ProcessStateLog.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/log/SignalLog.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/log/TokenCreateLog.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/log/TokenEndLog.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/log/TransitionLog.hbm.xml"/>
+ <mapping resource="org/jbpm/context/log/VariableLog.hbm.xml"/>
+ <mapping resource="org/jbpm/context/log/VariableCreateLog.hbm.xml"/>
+ <mapping resource="org/jbpm/context/log/VariableDeleteLog.hbm.xml"/>
+ <mapping resource="org/jbpm/context/log/VariableUpdateLog.hbm.xml"/>
+ <mapping resource="org/jbpm/context/log/variableinstance/ByteArrayUpdateLog.hbm.xml"/>
+ <mapping resource="org/jbpm/context/log/variableinstance/DateUpdateLog.hbm.xml"/>
+ <mapping resource="org/jbpm/context/log/variableinstance/DoubleUpdateLog.hbm.xml"/>
+ <mapping resource="org/jbpm/context/log/variableinstance/HibernateLongUpdateLog.hbm.xml"/>
+ <mapping resource="org/jbpm/context/log/variableinstance/HibernateStringUpdateLog.hbm.xml"/>
+ <mapping resource="org/jbpm/context/log/variableinstance/LongUpdateLog.hbm.xml"/>
+ <mapping resource="org/jbpm/context/log/variableinstance/StringUpdateLog.hbm.xml"/>
+ <mapping resource="org/jbpm/taskmgmt/log/TaskLog.hbm.xml"/>
+ <mapping resource="org/jbpm/taskmgmt/log/TaskCreateLog.hbm.xml"/>
+ <mapping resource="org/jbpm/taskmgmt/log/TaskAssignLog.hbm.xml"/>
+ <mapping resource="org/jbpm/taskmgmt/log/TaskEndLog.hbm.xml"/>
+ <mapping resource="org/jbpm/taskmgmt/log/SwimlaneLog.hbm.xml"/>
+ <mapping resource="org/jbpm/taskmgmt/log/SwimlaneCreateLog.hbm.xml"/>
+ <mapping resource="org/jbpm/taskmgmt/log/SwimlaneAssignLog.hbm.xml"/>
+
+ <!-- ################## -->
+ <!-- # cache settings # -->
+ <!-- ##################-->
+
+ <!-- strategy="nonstrict-read-write" can be used with HashtableCacheProvider -->
+
+ <class-cache class="org.jbpm.context.def.VariableAccess" usage="nonstrict-read-write" />
+
+ <collection-cache collection="org.jbpm.file.def.FileDefinition.processFiles" usage="nonstrict-read-write" />
+
+ <collection-cache collection="org.jbpm.graph.action.Script.variableAccesses" usage="nonstrict-read-write" />
+
+ <class-cache class="org.jbpm.graph.def.Action" usage="nonstrict-read-write" />
+
+ <class-cache class="org.jbpm.graph.def.Event" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.graph.def.Event.actions" usage="nonstrict-read-write" />
+
+ <class-cache class="org.jbpm.graph.def.ExceptionHandler" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.graph.def.ExceptionHandler.actions" usage="nonstrict-read-write" />
+
+ <class-cache class="org.jbpm.graph.def.Node" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.graph.def.Node.events" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.graph.def.Node.exceptionHandlers" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.graph.def.Node.leavingTransitions" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.graph.def.Node.arrivingTransitions" usage="nonstrict-read-write" />
+
+ <class-cache class="org.jbpm.graph.def.ProcessDefinition" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.graph.def.ProcessDefinition.events" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.graph.def.ProcessDefinition.exceptionHandlers" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.graph.def.ProcessDefinition.nodes" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.graph.def.ProcessDefinition.actions" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.graph.def.ProcessDefinition.definitions" usage="nonstrict-read-write" />
+
+ <collection-cache collection="org.jbpm.graph.def.SuperState.nodes" usage="nonstrict-read-write" />
+
+ <class-cache class="org.jbpm.graph.def.Transition" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.graph.def.Transition.events" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.graph.def.Transition.exceptionHandlers" usage="nonstrict-read-write" />
+
+ <collection-cache collection="org.jbpm.graph.node.Decision.decisionConditions" usage="nonstrict-read-write" />
+
+ <collection-cache collection="org.jbpm.graph.node.ProcessState.variableAccesses" usage="nonstrict-read-write" />
+
+ <collection-cache collection="org.jbpm.graph.node.TaskNode.tasks" usage="nonstrict-read-write" />
+
+ <class-cache class="org.jbpm.instantiation.Delegation" usage="nonstrict-read-write" />
+
+ <class-cache class="org.jbpm.module.def.ModuleDefinition" usage="nonstrict-read-write" />
+
+ <collection-cache collection="org.jbpm.taskmgmt.def.Swimlane.tasks" usage="nonstrict-read-write" />
+
+ <class-cache class="org.jbpm.taskmgmt.def.TaskController" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.taskmgmt.def.TaskController.variableAccesses" usage="nonstrict-read-write" />
+
+ <class-cache class="org.jbpm.taskmgmt.def.Task" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.taskmgmt.def.Task.events" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.taskmgmt.def.Task.exceptionHandlers" usage="nonstrict-read-write" />
+
+ <collection-cache collection="org.jbpm.taskmgmt.def.TaskMgmtDefinition.swimlanes" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.taskmgmt.def.TaskMgmtDefinition.tasks" usage="nonstrict-read-write" />
+ </session-factory>
+</hibernate-configuration>
Added: projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/resources/jbpm.jopr.cfg.xml
===================================================================
--- projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/resources/jbpm.jopr.cfg.xml (rev 0)
+++ projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/resources/jbpm.jopr.cfg.xml 2009-07-17 08:53:15 UTC (rev 5316)
@@ -0,0 +1,17 @@
+<jbpm-configuration>
+ <jbpm-context>
+ <service name="persistence" factory="org.jbpm.persistence.db.DbPersistenceServiceFactory" />
+ <service name="tx" factory="org.jbpm.tx.TxServiceFactory" />
+ <service name="logging" factory="org.jbpm.logging.db.DbLoggingServiceFactory" />
+ </jbpm-context>
+
+ <!-- use the context class loader -->
+ <string name="jbpm.classLoader" value="context" />
+
+ <!--
+ Note, that the default job executor needs to be overwritten with a null value.
+ In the enterprise configuration there should be no job executor.
+ Async messaging is there bound to jms and scheduling to ejb timers.
+ -->
+ <null name="jbpm.job.executor" />
+</jbpm-configuration>
More information about the jbpm-commits
mailing list