Skip to content

Commit

Permalink
SWITCHYARD-480: Integrate jBPM 5 console with SwitchYard distro
Browse files Browse the repository at this point in the history
  • Loading branch information
errantepiphany authored and Keith Babo committed Oct 24, 2011
1 parent 7b1b105 commit 8def025
Show file tree
Hide file tree
Showing 47 changed files with 1,041 additions and 478 deletions.
4 changes: 2 additions & 2 deletions jboss-as6/pom.xml
Expand Up @@ -21,12 +21,12 @@
<version.commonman>1.0</version.commonman>
<version.commons.lang>2.4</version.commons.lang>
<version.commons.logging>1.1</version.commons.logging>
<version.drools>5.2.0.Final</version.drools>
<version.drools>5.2.1.Final</version.drools>
<version.ecj>3.5.1</version.ecj>
<version.jboss.deployers>2.2.0.GA</version.jboss.deployers>
<version.jboss.vfs>3.0.0.GA</version.jboss.vfs>
<version.jbossas>6.0.0.Final</version.jbossas>
<version.jbpm>5.1.0.Final</version.jbpm>
<version.jbpm>5.1.1.Final</version.jbpm>
<version.mina>2.0.1</version.mina>
<version.shrinkwrap>1.0.0-alpha-12</version.shrinkwrap>
</properties>
Expand Down
Expand Up @@ -33,7 +33,7 @@
<entry><key>org.switchyard.component.bean.deploy.BeanComponent</key><value><inject bean="BeanConfiguration"/></value></entry>
<entry><key>org.switchyard.component.soap.deploy.SOAPComponent</key><value><inject bean="SOAPConfiguration"/></value></entry>
<entry><key>org.switchyard.component.camel.deploy.CamelComponent</key><value><inject bean="CamelConfiguration"/></value></entry>
<entry><key>org.switchyard.component.bpm.deploy.BPMComponent</key><value><inject bean="BpmConfiguration"/></value></entry>
<entry><key>org.switchyard.component.bpm.deploy.BPMComponent</key><value><inject bean="BPMConfiguration"/></value></entry>
<entry><key>org.switchyard.component.rules.deploy.RulesComponent</key><value><inject bean="RulesConfiguration"/></value></entry>
</map>
</property>
Expand Down Expand Up @@ -65,7 +65,7 @@
</parameter>
</constructor>
</bean>
<bean name="BpmConfiguration" class="org.switchyard.config.Configuration">
<bean name="BPMConfiguration" class="org.switchyard.config.Configuration">
<constructor factoryMethod="pull">
<factory bean="ConfigPuller"/>
<parameter class="javax.xml.namespace.QName">
Expand Down
107 changes: 107 additions & 0 deletions jboss-as7/jbpm/jbpm-gwt-console-server/assembly.xml
@@ -0,0 +1,107 @@
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
<id></id>
<includeBaseDirectory>false</includeBaseDirectory>
<formats>
<format>war</format>
</formats>

<fileSets>
<fileSet>
<directory>${staging.dir}</directory>
<excludes>
<exclude>WEB-INF/classes/META-INF/JBPMorm.xml</exclude>
<exclude>WEB-INF/classes/META-INF/persistence.xml</exclude>
<exclude>WEB-INF/lib/jbpm-human-task-*.jar</exclude>
<exclude>WEB-INF/lib/jbpm-persistence-jpa-*.jar</exclude>
</excludes>
<fileMode>644</fileMode>
<directoryMode>755</directoryMode>
<outputDirectory>${output.dir}</outputDirectory>
</fileSet>
</fileSets>

<dependencySets>
<dependencySet>
<useTransitiveDependencies>false</useTransitiveDependencies>
<includes>
<include>com.h2database:h2</include>
</includes>
<outputDirectory>WEB-INF/lib</outputDirectory>
<outputFileNameMapping>${artifact.artifactId}-${version.h2database}.${artifact.extension}</outputFileNameMapping>
</dependencySet>
<dependencySet>
<useTransitiveDependencies>false</useTransitiveDependencies>
<includes>
<include>dom4j:dom4j</include>
</includes>
<outputDirectory>WEB-INF/lib</outputDirectory>
<outputFileNameMapping>${artifact.artifactId}-${version.dom4j}.${artifact.extension}</outputFileNameMapping>
</dependencySet>
<dependencySet>
<useTransitiveDependencies>false</useTransitiveDependencies>
<includes>
<include>javassist:javassist</include>
</includes>
<outputDirectory>WEB-INF/lib</outputDirectory>
<outputFileNameMapping>${artifact.artifactId}-${version.javassist}.${artifact.extension}</outputFileNameMapping>
</dependencySet>
<dependencySet>
<useTransitiveDependencies>false</useTransitiveDependencies>
<includes>
<include>org.hibernate:hibernate-commons-annotations</include>
</includes>
<outputDirectory>WEB-INF/lib</outputDirectory>
<outputFileNameMapping>${artifact.artifactId}-${version.hibernate.commons-annotations}.${artifact.extension}</outputFileNameMapping>
</dependencySet>
<dependencySet>
<useTransitiveDependencies>false</useTransitiveDependencies>
<includes>
<include>org.hibernate:hibernate-core</include>
</includes>
<outputDirectory>WEB-INF/lib</outputDirectory>
<outputFileNameMapping>${artifact.artifactId}-${version.hibernate.core}.${artifact.extension}</outputFileNameMapping>
</dependencySet>
<dependencySet>
<useTransitiveDependencies>false</useTransitiveDependencies>
<includes>
<include>org.hibernate:hibernate-entitymanager</include>
</includes>
<outputDirectory>WEB-INF/lib</outputDirectory>
<outputFileNameMapping>${artifact.artifactId}-${version.hibernate.entitymanager}.${artifact.extension}</outputFileNameMapping>
</dependencySet>
<dependencySet>
<useTransitiveDependencies>false</useTransitiveDependencies>
<includes>
<include>org.switchyard:switchyard-jbpm-human-task</include>
</includes>
<outputDirectory>WEB-INF/lib</outputDirectory>
<outputFileNameMapping>${artifact.artifactId}-${project.version}.${artifact.extension}</outputFileNameMapping>
</dependencySet>
<dependencySet>
<useTransitiveDependencies>false</useTransitiveDependencies>
<includes>
<include>org.switchyard:switchyard-jbpm-persistence-jpa</include>
</includes>
<outputDirectory>WEB-INF/lib</outputDirectory>
<outputFileNameMapping>${artifact.artifactId}-${project.version}.${artifact.extension}</outputFileNameMapping>
</dependencySet>
<dependencySet>
<useTransitiveDependencies>false</useTransitiveDependencies>
<includes>
<include>org.switchyard:switchyard-common</include>
</includes>
<outputDirectory>WEB-INF/lib</outputDirectory>
<outputFileNameMapping>${artifact.artifactId}-${project.version}.${artifact.extension}</outputFileNameMapping>
</dependencySet>
<dependencySet>
<useTransitiveDependencies>false</useTransitiveDependencies>
<includes>
<include>org.switchyard.components:switchyard-component-bpm</include>
</includes>
<outputDirectory>WEB-INF/lib</outputDirectory>
<outputFileNameMapping>${artifact.artifactId}-${project.version}.${artifact.extension}</outputFileNameMapping>
</dependencySet>
</dependencySets>
</assembly>
198 changes: 198 additions & 0 deletions jboss-as7/jbpm/jbpm-gwt-console-server/pom.xml
@@ -0,0 +1,198 @@
<?xml version="1.0" encoding="UTF-8"?>
<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">

<parent>
<groupId>org.switchyard</groupId>
<artifactId>switchyard-as7-jbpm-parent</artifactId>
<version>0.3.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

<modelVersion>4.0.0</modelVersion>
<artifactId>switchyard-jbpm-gwt-console-server</artifactId>
<packaging>pom</packaging>
<name>SwitchYard: AS7 jBPM GWT Console Server</name>
<description>SwitchYard AS7 jBPM GWT Console Server</description>

<properties>
<staging.dir>${project.build.directory}/staging</staging.dir>
<output.dir>/</output.dir>
</properties>

<dependencies>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>${version.h2database}</version>
</dependency>
<dependency>
<groupId>dom4j</groupId>
<artifactId>dom4j</artifactId>
<version>${version.dom4j}</version>
</dependency>
<dependency>
<groupId>javassist</groupId>
<artifactId>javassist</artifactId>
<version>${version.javassist}</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-commons-annotations</artifactId>
<version>${version.hibernate.commons-annotations}</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>${version.hibernate.core}</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>${version.hibernate.entitymanager}</version>
</dependency>
<dependency>
<groupId>org.switchyard</groupId>
<artifactId>switchyard-common</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.switchyard.components</groupId>
<artifactId>switchyard-component-bpm</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.switchyard</groupId>
<artifactId>switchyard-jbpm-human-task</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.switchyard</groupId>
<artifactId>switchyard-jbpm-persistence-jpa</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack-war</id>
<phase>generate-sources</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.jbpm</groupId>
<artifactId>jbpm-gwt-console-server</artifactId>
<type>war</type>
<version>${version.jbpm}</version>
</artifactItem>
</artifactItems>
<outputDirectory>${staging.dir}</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>xml-maven-plugin</artifactId>
<version>1.0</version>
<executions>
<execution>
<id>transform-xml</id>
<phase>generate-sources</phase>
<goals>
<goal>transform</goal>
</goals>
</execution>
</executions>
<configuration>
<transformationSets>
<transformationSet>
<dir>${staging.dir}/WEB-INF</dir>
<includes>
<include>web.xml</include>
</includes>
<outputDir>${staging.dir}/WEB-INF</outputDir>
<stylesheet>${basedir}/src/main/resources/web.xsl</stylesheet>
</transformationSet>
<transformationSet>
<dir>${staging.dir}/WEB-INF/classes/META-INF</dir>
<includes>
<include>hibernate.cfg.xml</include>
</includes>
<outputDir>${staging.dir}/WEB-INF/classes/META-INF</outputDir>
<stylesheet>${basedir}/src/main/resources/hibernate.cfg.xsl</stylesheet>
</transformationSet>
</transformationSets>
</configuration>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-xml</id>
<phase>generate-sources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<resources>
<resource>
<directory>${basedir}/src/main/resources</directory>
<includes>
<include>jboss-deployment-structure.xml</include>
</includes>
</resource>
</resources>
<outputDirectory>${staging.dir}/WEB-INF</outputDirectory>
</configuration>
</execution>
<execution>
<id>copy-properties</id>
<phase>generate-sources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<resources>
<resource>
<directory>${basedir}/src/main/resources</directory>
<includes>
<include>users.properties</include>
<include>roles.properties</include>
</includes>
</resource>
</resources>
<outputDirectory>${staging.dir}/WEB-INF/classes</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>assemble-war</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<appendAssemblyId>false</appendAssemblyId>
<descriptors>
<descriptor>${basedir}/assembly.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
@@ -0,0 +1,57 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ JBoss, Home of Professional Open Source.
~ Copyright 2011, Red Hat, Inc., and individual contributors
~ as indicated by the @author tags. See the copyright.txt file 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.
-->
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:fn="http://www.w3.org/2005/xpath-functions"
xmlns:xdt="http://www.w3.org/2005/xpath-datatypes"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
exclude-result-prefixes="xs xsl xsi fn xdt">

<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>

<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>

<xsl:template match="node()[name(.)='session-factory']">
<session-factory>
<property name="dialect">org.hibernate.dialect.H2Dialect</property>
<property name="connection.driver_class">org.h2.Driver</property>
<property name="connection.url">jdbc:h2:tcp://localhost/~/test</property>
<property name="connection.username">sa</property>
<property name="connection.password">sa</property>
<property name="connection.autocommit">false</property>
<property name="connection.pool_size">1</property>
<property name="max_fetch_depth">3</property>
<property name="hbm2ddl.auto">update</property>
<property name="current_session_context_class">thread</property>
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
<property name="show_sql">false</property>
<property name="transaction.manager_lookup_class">org.switchyard.component.bpm.jta.hibernate.AS7TransactionManagerLookup</property>
</session-factory>
</xsl:template>

</xsl:stylesheet>

0 comments on commit 8def025

Please sign in to comment.