Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SWITCHYARD-480: Integrate jBPM 5 console with SwitchYard distro
- Loading branch information
1 parent
7b1b105
commit 8def025
Showing
47 changed files
with
1,041 additions
and
478 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
57 changes: 57 additions & 0 deletions
57
jboss-as7/jbpm/jbpm-gwt-console-server/src/main/resources/hibernate.cfg.xsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
Oops, something went wrong.