mirror of
https://github.com/Alfresco/alfresco-sdk.git
synced 2025-10-01 14:41:57 +00:00
Remove Activiti experiments
This commit is contained in:
1
archetypes/activiti-jar-archetype/.gitignore
vendored
1
archetypes/activiti-jar-archetype/.gitignore
vendored
@@ -1 +0,0 @@
|
|||||||
*.DS_Store
|
|
@@ -1,61 +0,0 @@
|
|||||||
<?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/xsd/maven-4.0.0.xsd">
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
|
|
||||||
<groupId>org.alfresco.maven.archetype</groupId>
|
|
||||||
<artifactId>activiti-jar-archetype</artifactId>
|
|
||||||
|
|
||||||
<packaging>maven-archetype</packaging>
|
|
||||||
<name>DEPRECATED - UNSUPPORTED - EXPERIMENTAL: Alfresco SDK - Activiti JAR Archetype</name>
|
|
||||||
<description>DEPRECATED - UNSUPPORTED - EXPERIMENTAL</description>
|
|
||||||
|
|
||||||
<parent>
|
|
||||||
<groupId>org.alfresco.maven</groupId>
|
|
||||||
<artifactId>alfresco-sdk-aggregator</artifactId>
|
|
||||||
<version>3.0.2-SNAPSHOT</version>
|
|
||||||
<relativePath>../../pom.xml</relativePath>
|
|
||||||
</parent>
|
|
||||||
|
|
||||||
<build>
|
|
||||||
<resources>
|
|
||||||
<resource>
|
|
||||||
<directory>src/main/resources</directory>
|
|
||||||
<includes>
|
|
||||||
<include>archetype-resources/pom.xml</include>
|
|
||||||
<include>archetype-resources/run.sh</include>
|
|
||||||
<include>archetype-resources/run.bat</include>
|
|
||||||
<include>archetype-resources/debug.sh</include>
|
|
||||||
<include>archetype-resources/debug.bat</include>
|
|
||||||
<include>META-INF/maven/archetype-metadata.xml</include>
|
|
||||||
</includes>
|
|
||||||
<filtering>true</filtering>
|
|
||||||
</resource>
|
|
||||||
<resource>
|
|
||||||
<directory>src/main/resources</directory>
|
|
||||||
<excludes>
|
|
||||||
<exclude>archetype-resources/pom.xml</exclude>
|
|
||||||
<exclude>archetype-resources/run.sh</exclude>
|
|
||||||
<exclude>archetype-resources/run.bat</exclude>
|
|
||||||
<exclude>archetype-resources/debug.sh</exclude>
|
|
||||||
<exclude>archetype-resources/debug.bat</exclude>
|
|
||||||
<exclude>META-INF/maven/archetype-metadata.xml</exclude>
|
|
||||||
</excludes>
|
|
||||||
<filtering>false</filtering>
|
|
||||||
</resource>
|
|
||||||
</resources>
|
|
||||||
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-resources-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<useDefaultDelimiters>false</useDefaultDelimiters>
|
|
||||||
<delimiters>
|
|
||||||
<delimiter>@@</delimiter>
|
|
||||||
</delimiters>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
|
|
||||||
</project>
|
|
@@ -1,68 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<archetype-descriptor
|
|
||||||
xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0 http://maven.apache.org/xsd/archetype-descriptor-1.0.0.xsd"
|
|
||||||
name="Activiti JAR Archetype"
|
|
||||||
xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
|
||||||
<requiredProperties>
|
|
||||||
<requiredProperty key="version">
|
|
||||||
<defaultValue>1.0-SNAPSHOT</defaultValue>
|
|
||||||
</requiredProperty>
|
|
||||||
</requiredProperties>
|
|
||||||
|
|
||||||
<fileSets>
|
|
||||||
<fileSet filtered="true" packaged="true" encoding="UTF-8">
|
|
||||||
<directory>src/main/java</directory>
|
|
||||||
<includes>
|
|
||||||
<include>**/*.java</include>
|
|
||||||
</includes>
|
|
||||||
</fileSet>
|
|
||||||
<fileSet filtered="true" packaged="true" encoding="UTF-8">
|
|
||||||
<directory>src/test/java</directory>
|
|
||||||
<includes>
|
|
||||||
<include>**/*.java</include>
|
|
||||||
</includes>
|
|
||||||
</fileSet>
|
|
||||||
<fileSet encoding="UTF-8" filtered="true">
|
|
||||||
<directory>src/main/resources</directory>
|
|
||||||
<includes>
|
|
||||||
<include>**/bpmn-models/**</include>
|
|
||||||
</includes>
|
|
||||||
</fileSet>
|
|
||||||
<fileSet encoding="UTF-8" filtered="false">
|
|
||||||
<directory>src/main/resources</directory>
|
|
||||||
<excludes>
|
|
||||||
<exclude>**/bpmn-models/**</exclude>
|
|
||||||
</excludes>
|
|
||||||
</fileSet>
|
|
||||||
<fileSet encoding="UTF-8" filtered="true">
|
|
||||||
<directory>src/test/resources</directory>
|
|
||||||
<includes>
|
|
||||||
<include>log4j-dev.properties</include>
|
|
||||||
</includes>
|
|
||||||
</fileSet>
|
|
||||||
<fileSet encoding="UTF-8" filtered="false">
|
|
||||||
<directory>src/test/resources</directory>
|
|
||||||
<excludes>
|
|
||||||
<exclude>log4j-dev.properties</exclude>
|
|
||||||
</excludes>
|
|
||||||
</fileSet>
|
|
||||||
<fileSet encoding="UTF-8" filtered="false">
|
|
||||||
<directory>src/test/license</directory>
|
|
||||||
<includes>
|
|
||||||
<include>**</include>
|
|
||||||
</includes>
|
|
||||||
</fileSet>
|
|
||||||
<fileSet encoding="UTF-8">
|
|
||||||
<directory></directory>
|
|
||||||
<includes>
|
|
||||||
<include>debug.sh</include>
|
|
||||||
<include>debug.bat</include>
|
|
||||||
<include>run.sh</include>
|
|
||||||
<include>run.bat</include>
|
|
||||||
<include>README.md</include>
|
|
||||||
</includes>
|
|
||||||
</fileSet>
|
|
||||||
</fileSets>
|
|
||||||
</archetype-descriptor>
|
|
||||||
R
|
|
@@ -1,21 +0,0 @@
|
|||||||
# Alfresco Activiti JAR Module - SDK 3
|
|
||||||
|
|
||||||
To run use `mvn clean install alfresco:run` or `./run.sh` and verify that it
|
|
||||||
|
|
||||||
* Runs the embedded Tomcat + H2 DB
|
|
||||||
* Runs Activiti Explorer
|
|
||||||
* Optionally runs Activiti REST
|
|
||||||
* Packages both a JAR with customization
|
|
||||||
|
|
||||||
# Few things to notice
|
|
||||||
|
|
||||||
* No parent pom
|
|
||||||
* WAR assembly is handled by the Alfresco Maven Plugin configuration
|
|
||||||
* Standard JAR packaging and layout
|
|
||||||
* Works seamlessly with Eclipse and IntelliJ IDEA
|
|
||||||
* JRebel for hot reloading, JRebel maven plugin for generating rebel.xml, agent usage: `MAVEN_OPTS=-Xms256m -Xmx1G -agentpath:/home/martin/apps/jrebel/lib/libjrebel64.so`
|
|
||||||
* [Configurable Run mojo](https://github.com/Alfresco/alfresco-sdk/blob/sdk-3.0/plugins/alfresco-maven-plugin/src/main/java/org/alfresco/maven/plugin/RunMojo.java) in the `alfresco-maven-plugin`
|
|
||||||
* No unit testing/functional tests just yet
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@@ -1,9 +0,0 @@
|
|||||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
|
||||||
:: Dev environment startup script for Alfresco Community ::
|
|
||||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
|
||||||
@echo off
|
|
||||||
|
|
||||||
set MAVEN_OPTS=-Xms1G -Xmx2G
|
|
||||||
|
|
||||||
mvnDebug clean install alfresco:run
|
|
||||||
|
|
@@ -1,3 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
MAVEN_OPTS="-Xms1G -Xmx2G" mvnDebug clean install alfresco:run
|
|
@@ -1,300 +0,0 @@
|
|||||||
<?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">
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
<groupId>${groupId}</groupId>
|
|
||||||
<artifactId>${artifactId}</artifactId>
|
|
||||||
<version>${version}</version>
|
|
||||||
<name>DEPRECATED - UNSUPPORTED - EXPERIMENTAL ${artifactId} Activiti Jar Module - SDK 3</name>
|
|
||||||
<description>DEPRECATED - UNSUPPORTED - EXPERIMENTAL Activiti JAR Module that produces a JAR file with Java extensions such as service task delegates. It also produces an application ZIP with workflow definition, forms etc that can be deployed via /activiti-app - SDK 3</description>
|
|
||||||
<packaging>jar</packaging>
|
|
||||||
|
|
||||||
<!-- DEPRECATION NOTICE -->
|
|
||||||
<!-- This archetype has been deprecated in SDK 3.1 and will be removed or replaced in SDK 4.0 -->
|
|
||||||
<!-- This archetype was introduced as experimental support for Activiti 1.5 Enterprise. -->
|
|
||||||
<!-- The archetype and Activiti/APS features present in the SDK is NOT supported, use at your own risk -->
|
|
||||||
|
|
||||||
<properties>
|
|
||||||
<!-- Alfresco Maven Plugin version to use -->
|
|
||||||
<alfresco.sdk.version>@@alfresco.sdk.parent.version@@</alfresco.sdk.version>
|
|
||||||
|
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
||||||
|
|
||||||
<!-- Base directory for all RDBMS data and Content data -->
|
|
||||||
<activiti.datadir>${project.basedir}/activiti_data_dev</activiti.datadir>
|
|
||||||
|
|
||||||
<!-- Properties used in dependency declarations, you don't usually need to change these -->
|
|
||||||
<activiti.groupId>com.activiti</activiti.groupId>
|
|
||||||
<activiti.app.war.artifactId>activiti-app</activiti.app.war.artifactId> <!--This contains the Alfresco Activiti webapp, including the workflow engine. This webapp is also the user interface for people involved in the task and processes running in the Activiti engine. You also use this webapp to create and manage process definitions, and to display and define analytics reports on users' tasks and processes. -->
|
|
||||||
<activiti.admin.war.artifactId>activiti-admin</activiti.admin.war.artifactId> <!-- This contains the Alfresco Activiti Administrator webapp. You use this to administer and monitor your Alfresco Activiti engines.-->
|
|
||||||
|
|
||||||
<!-- The version of the Alfresco Activiti Enterprise Workflow Engine that the customization will run in -->
|
|
||||||
<activiti.version>1.5.3</activiti.version>
|
|
||||||
|
|
||||||
<!-- JRebel Hot reloading of classpath stuff and web resource stuff -->
|
|
||||||
<jrebel.version>1.1.6</jrebel.version>
|
|
||||||
|
|
||||||
<!-- Compile with Java 7, default is 5 -->
|
|
||||||
<maven.compiler.source>1.7</maven.compiler.source>
|
|
||||||
<maven.compiler.target>1.7</maven.compiler.target>
|
|
||||||
</properties>
|
|
||||||
|
|
||||||
<dependencies>
|
|
||||||
<!-- The main Activiti Enterprise application dependency that brings in all
|
|
||||||
needed classes to compile your customizations -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>${activiti.groupId}</groupId>
|
|
||||||
<artifactId>activiti-app-logic</artifactId>
|
|
||||||
<version>${activiti.version}</version>
|
|
||||||
<exclusions>
|
|
||||||
<!-- Exclude the SLF4J JAR so we don't get multiple binding warnings when running -->
|
|
||||||
<exclusion>
|
|
||||||
<groupId>org.slf4j</groupId>
|
|
||||||
<artifactId>slf4j-log4j12</artifactId>
|
|
||||||
</exclusion>
|
|
||||||
</exclusions>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<!-- Testing -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>junit</groupId>
|
|
||||||
<artifactId>junit</artifactId>
|
|
||||||
<version>4.12</version>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<!-- Logging, maybe needed for testing....
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.slf4j</groupId>
|
|
||||||
<artifactId>slf4j-log4j12</artifactId>
|
|
||||||
<version>1.7.5</version>
|
|
||||||
</dependency>
|
|
||||||
-->
|
|
||||||
</dependencies>
|
|
||||||
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<!-- Create the BAR with project process definitions, forms etc -->
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-antrun-plugin</artifactId>
|
|
||||||
<version>1.3</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>create-app-zip</id>
|
|
||||||
<phase>package</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>run</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<tasks>
|
|
||||||
<zip destfile="${project.build.directory}/${project.artifactId}-app-${project.version}.zip">
|
|
||||||
<fileset dir="src/main/resources/apps/helloworld">
|
|
||||||
<include name="**"/>
|
|
||||||
</fileset>
|
|
||||||
</zip>
|
|
||||||
</tasks>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
The Alfresco Maven Plugin contains all the logic to run the extension
|
|
||||||
in an embedded Tomcat with the H2 database.
|
|
||||||
-->
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.alfresco.maven.plugin</groupId>
|
|
||||||
<artifactId>alfresco-maven-plugin</artifactId>
|
|
||||||
<version>${alfresco.sdk.version}</version>
|
|
||||||
<configuration>
|
|
||||||
<!-- We need the flat file H2 database to run Activiti -->
|
|
||||||
<enableH2>true</enableH2>
|
|
||||||
|
|
||||||
<!-- Bring in the Activiti Workflow Engine and Management webapp (i.e. activiti-app.war) -->
|
|
||||||
<enableActivitiApp>true</enableActivitiApp>
|
|
||||||
|
|
||||||
<!-- Optionally bring in the Activiti Admin App (i.e. activiti-admin.war) -->
|
|
||||||
<enableActivitiAdmin>false</enableActivitiAdmin>
|
|
||||||
|
|
||||||
<!-- Disable all Alfresco ECM apps by default -->
|
|
||||||
<alfrescoEdition>community</alfrescoEdition>
|
|
||||||
<enablePlatform>false</enablePlatform>
|
|
||||||
<enableSolr>false</enableSolr>
|
|
||||||
<enableShare>false</enableShare>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
JARs that should be overlayed/applied to the Activiti App WAR
|
|
||||||
(i.e. activiti-app.war)
|
|
||||||
-->
|
|
||||||
<activitiModules>
|
|
||||||
<!-- Bring in this JAR project, need to be included here, otherwise resources from META-INF
|
|
||||||
will not be loaded, such as the test.html page
|
|
||||||
-->
|
|
||||||
<moduleDependency>
|
|
||||||
<groupId>${project.groupId}</groupId>
|
|
||||||
<artifactId>${project.artifactId}</artifactId>
|
|
||||||
<version>${project.version}</version>
|
|
||||||
</moduleDependency>
|
|
||||||
</activitiModules>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
|
|
||||||
<!-- Hot reloading with JRebel -->
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.zeroturnaround</groupId>
|
|
||||||
<artifactId>jrebel-maven-plugin</artifactId>
|
|
||||||
<version>${jrebel.version}</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>generate-rebel-xml</id>
|
|
||||||
<phase>process-resources</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>generate</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
<configuration>
|
|
||||||
<!-- For more information about how to configure JRebel plugin see:
|
|
||||||
http://manuals.zeroturnaround.com/jrebel/standalone/maven.html#maven-rebel-xml -->
|
|
||||||
<classpath>
|
|
||||||
<fallback>all</fallback>
|
|
||||||
<resources>
|
|
||||||
<resource>
|
|
||||||
<!--
|
|
||||||
Empty resource element marks default configuration. By
|
|
||||||
default it is placed first in generated configuration.
|
|
||||||
-->
|
|
||||||
</resource>
|
|
||||||
</resources>
|
|
||||||
</classpath>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
alwaysGenerate - default is false
|
|
||||||
If 'false' - rebel.xml is generated if timestamps of pom.xml and the current rebel.xml file are not equal.
|
|
||||||
If 'true' - rebel.xml will always be generated
|
|
||||||
-->
|
|
||||||
<alwaysGenerate>true</alwaysGenerate>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-resources-plugin</artifactId>
|
|
||||||
<version>3.0.1</version>
|
|
||||||
<configuration>
|
|
||||||
<encoding>UTF-8</encoding>
|
|
||||||
<nonFilteredFileExtensions> <!-- jpg, jpeg, gif, bmp and png are added automatically -->
|
|
||||||
<nonFilteredFileExtension>ftl</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>acp</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>svg</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>pdf</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>doc</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>docx</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>xls</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>xlsx</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>ppt</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>pptx</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>bin</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>lic</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>swf</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>zip</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>msg</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>jar</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>ttf</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>eot</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>woff</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>woff2</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>css</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>ico</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>psd</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>js</nonFilteredFileExtension>
|
|
||||||
</nonFilteredFileExtensions>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
|
|
||||||
<resources>
|
|
||||||
<!-- Filter the resource files in this project and do property substitutions -->
|
|
||||||
<resource>
|
|
||||||
<directory>src/main/resources</directory>
|
|
||||||
<filtering>true</filtering>
|
|
||||||
<!-- The Project JAR Should not contain any process definition stuff,
|
|
||||||
it cannot be deployed via JAR in Activiti Enterprise -->
|
|
||||||
<excludes>
|
|
||||||
<exclude>apps/**</exclude>
|
|
||||||
</excludes>
|
|
||||||
</resource>
|
|
||||||
</resources>
|
|
||||||
<testResources>
|
|
||||||
<!-- Filter the test resource files in this project and do property substitutions -->
|
|
||||||
<testResource>
|
|
||||||
<directory>src/test/resources</directory>
|
|
||||||
<filtering>true</filtering>
|
|
||||||
</testResource>
|
|
||||||
<!-- Copy over the Activiti license to the classpath -->
|
|
||||||
<testResource>
|
|
||||||
<directory>src/test/license</directory>
|
|
||||||
<filtering>false</filtering>
|
|
||||||
</testResource>
|
|
||||||
</testResources>
|
|
||||||
</build>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Alfresco Maven Repositories
|
|
||||||
-->
|
|
||||||
<repositories>
|
|
||||||
<!-- Alfresco ECM -->
|
|
||||||
<repository>
|
|
||||||
<id>alfresco-public</id>
|
|
||||||
<url>https://artifacts.alfresco.com/nexus/content/groups/public</url>
|
|
||||||
</repository>
|
|
||||||
<repository>
|
|
||||||
<id>alfresco-public-snapshots</id>
|
|
||||||
<url>https://artifacts.alfresco.com/nexus/content/groups/public-snapshots</url>
|
|
||||||
<snapshots>
|
|
||||||
<enabled>true</enabled>
|
|
||||||
<updatePolicy>daily</updatePolicy>
|
|
||||||
</snapshots>
|
|
||||||
</repository>
|
|
||||||
<!-- Alfresco Enterprise Edition Artifacts, put username/pwd for server in settings.xml -->
|
|
||||||
<repository>
|
|
||||||
<id>alfresco-private-repository</id>
|
|
||||||
<url>https://artifacts.alfresco.com/nexus/content/groups/private</url>
|
|
||||||
</repository>
|
|
||||||
|
|
||||||
<!-- Activiti BPM -->
|
|
||||||
<repository>
|
|
||||||
<id>activiti-public</id>
|
|
||||||
<url>https://artifacts.alfresco.com/nexus/content/repositories/activiti-releases/</url>
|
|
||||||
</repository>
|
|
||||||
<repository>
|
|
||||||
<id>activiti-public-snapshots</id>
|
|
||||||
<url>https://artifacts.alfresco.com/nexus/content/groups/public-snapshots</url>
|
|
||||||
<snapshots>
|
|
||||||
<enabled>true</enabled>
|
|
||||||
<updatePolicy>daily</updatePolicy>
|
|
||||||
</snapshots>
|
|
||||||
</repository>
|
|
||||||
<!-- Activiti Enterprise Edition Artifacts, put username/pwd for server in settings.xml -->
|
|
||||||
<repository>
|
|
||||||
<id>activiti-private-repository</id>
|
|
||||||
<url>https://artifacts.alfresco.com/nexus/content/repositories/activiti-enterprise-releases</url>
|
|
||||||
</repository>
|
|
||||||
</repositories>
|
|
||||||
<pluginRepositories>
|
|
||||||
<pluginRepository>
|
|
||||||
<id>alfresco-plugin-public</id>
|
|
||||||
<url>https://artifacts.alfresco.com/nexus/content/groups/public</url>
|
|
||||||
</pluginRepository>
|
|
||||||
<pluginRepository>
|
|
||||||
<id>alfresco-plugin-public-snapshots</id>
|
|
||||||
<url>https://artifacts.alfresco.com/nexus/content/groups/public-snapshots</url>
|
|
||||||
<snapshots>
|
|
||||||
<enabled>true</enabled>
|
|
||||||
<updatePolicy>daily</updatePolicy>
|
|
||||||
</snapshots>
|
|
||||||
</pluginRepository>
|
|
||||||
</pluginRepositories>
|
|
||||||
|
|
||||||
</project>
|
|
@@ -1,8 +0,0 @@
|
|||||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
|
||||||
:: Dev environment startup script for Alfresco Community ::
|
|
||||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
|
||||||
@echo off
|
|
||||||
|
|
||||||
set MAVEN_OPTS=-Xms1G -Xmx2G
|
|
||||||
|
|
||||||
mvn clean install alfresco:run
|
|
@@ -1,3 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
MAVEN_OPTS="-Xms1G -Xmx2G" mvn clean install alfresco:run
|
|
@@ -1,38 +0,0 @@
|
|||||||
#set( $symbol_pound = '#' )
|
|
||||||
#set( $symbol_dollar = '$' )
|
|
||||||
#set( $symbol_escape = '\' )
|
|
||||||
/*
|
|
||||||
Licensed to the Apache Software Foundation (ASF) under one or more
|
|
||||||
contributor license agreements. See the NOTICE file distributed with
|
|
||||||
this work for additional information regarding copyright ownership.
|
|
||||||
The ASF licenses this file to You under the Apache License, Version 2.0
|
|
||||||
(the "License"); you may not use this file except in compliance with
|
|
||||||
the License. You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
*/
|
|
||||||
package ${package}.tasks.service;
|
|
||||||
|
|
||||||
import org.activiti.engine.delegate.DelegateExecution;
|
|
||||||
import org.activiti.engine.delegate.JavaDelegate;
|
|
||||||
import org.slf4j.Logger;
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* A sample service task Java implementation
|
|
||||||
*
|
|
||||||
* @author martin.bergljung@alfresco.com
|
|
||||||
*/
|
|
||||||
public class HelloWorldServiceTask implements JavaDelegate {
|
|
||||||
private static Logger logger = LoggerFactory.getLogger(HelloWorldServiceTask.class);
|
|
||||||
|
|
||||||
public void execute(DelegateExecution execution) throws Exception {
|
|
||||||
logger.debug("Hello World from the Java Service Task!");
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,20 +0,0 @@
|
|||||||
{
|
|
||||||
"models": [
|
|
||||||
{
|
|
||||||
"id": 2005,
|
|
||||||
"name": "Hello World",
|
|
||||||
"version": 1,
|
|
||||||
"modelType": 0,
|
|
||||||
"description": "The Hello World business process that is part of the Alfresco SDK 3.0 Activiti JAR Module Maven archetype",
|
|
||||||
"stencilSetId": 0,
|
|
||||||
"createdByFullName": " Administrator",
|
|
||||||
"createdBy": 1,
|
|
||||||
"lastUpdatedByFullName": " Administrator",
|
|
||||||
"lastUpdatedBy": 1,
|
|
||||||
"lastUpdated": "2016-09-29T12:38:13.716+0000"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"theme": "theme-1",
|
|
||||||
"icon": "glyphicon-cog",
|
|
||||||
"publishIdentityInfo": []
|
|
||||||
}
|
|
@@ -1,141 +0,0 @@
|
|||||||
#set( $symbol_pound = '#' )
|
|
||||||
#set( $symbol_dollar = '$' )
|
|
||||||
#set( $symbol_escape = '\' )
|
|
||||||
<?xml version='1.0' encoding='UTF-8'?>
|
|
||||||
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:activiti="http://activiti.org/bpmn"
|
|
||||||
xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
|
|
||||||
xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI"
|
|
||||||
typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath"
|
|
||||||
targetNamespace="http://www.activiti.org/processdef" xmlns:modeler="http://activiti.com/modeler"
|
|
||||||
modeler:version="1.0en" modeler:exportDateTime="20160930093425488" modeler:modelId="2005"
|
|
||||||
modeler:modelVersion="11" modeler:modelLastUpdated="1475224420676">
|
|
||||||
<process id="HelloWorld" name="Hello World" isExecutable="true">
|
|
||||||
<documentation>The Hello World business process that is part of the Alfresco SDK 3.0 Activiti JAR Module Maven
|
|
||||||
archetype
|
|
||||||
</documentation>
|
|
||||||
|
|
||||||
<startEvent id="startHelloWorld" activiti:formKey="2006">
|
|
||||||
<extensionElements>
|
|
||||||
<modeler:form-reference-id><![CDATA[2006]]></modeler:form-reference-id>
|
|
||||||
<modeler:form-reference-name><![CDATA[Hello World Start]]></modeler:form-reference-name>
|
|
||||||
<modeler:editor-resource-id><![CDATA[startEvent1]]></modeler:editor-resource-id>
|
|
||||||
</extensionElements>
|
|
||||||
</startEvent>
|
|
||||||
|
|
||||||
<sequenceFlow id="sid-4A014247-BF0C-436D-B3CE-EA297F2A18FA" sourceRef="startHelloWorld"
|
|
||||||
targetRef="decideGreeting">
|
|
||||||
<extensionElements>
|
|
||||||
<modeler:editor-resource-id>
|
|
||||||
<![CDATA[sid-4A014247-BF0C-436D-B3CE-EA297F2A18FA]]></modeler:editor-resource-id>
|
|
||||||
</extensionElements>
|
|
||||||
</sequenceFlow>
|
|
||||||
|
|
||||||
<serviceTask id="decideGreeting" name="Decide greeting"
|
|
||||||
activiti:delegateExpression="${activiti_executeDecisionDelegate}">
|
|
||||||
<extensionElements>
|
|
||||||
<activiti:field name="decisionTableReferenceKey">
|
|
||||||
<activiti:string><![CDATA[DecideWhatGreeting]]></activiti:string>
|
|
||||||
</activiti:field>
|
|
||||||
<modeler:decisiontable-reference modeler:decisiontablereferenceid="2007"
|
|
||||||
modeler:decisiontablereferencename="Decide What Greeting"/>
|
|
||||||
<modeler:editor-resource-id>
|
|
||||||
<![CDATA[sid-B4E2D526-60B7-47B9-856C-FC824DA15708]]></modeler:editor-resource-id>
|
|
||||||
</extensionElements>
|
|
||||||
</serviceTask>
|
|
||||||
|
|
||||||
<sequenceFlow id="sid-E8B736FE-874D-4EDF-85A6-8B602F1503FD" sourceRef="decideGreeting"
|
|
||||||
targetRef="printGreetingFromJava">
|
|
||||||
<extensionElements>
|
|
||||||
<modeler:editor-resource-id>
|
|
||||||
<![CDATA[sid-E8B736FE-874D-4EDF-85A6-8B602F1503FD]]></modeler:editor-resource-id>
|
|
||||||
</extensionElements>
|
|
||||||
</sequenceFlow>
|
|
||||||
|
|
||||||
<serviceTask id="printGreetingFromJava" name="Print Greeting From Java"
|
|
||||||
activiti:class="${package}.tasks.service.HelloWorldServiceTask">
|
|
||||||
<extensionElements>
|
|
||||||
<modeler:editor-resource-id>
|
|
||||||
<![CDATA[sid-61E86F19-FC5F-4814-B9AB-2394B03171D6]]></modeler:editor-resource-id>
|
|
||||||
</extensionElements>
|
|
||||||
</serviceTask>
|
|
||||||
|
|
||||||
<sequenceFlow id="sid-AD10A830-F8B1-4DBA-9C48-DFD5136E3810" sourceRef="printGreetingFromJava"
|
|
||||||
targetRef="sid-68AE120D-AB55-4ED2-AFD5-845139236AD3">
|
|
||||||
<extensionElements>
|
|
||||||
<modeler:editor-resource-id>
|
|
||||||
<![CDATA[sid-AD10A830-F8B1-4DBA-9C48-DFD5136E3810]]></modeler:editor-resource-id>
|
|
||||||
</extensionElements>
|
|
||||||
</sequenceFlow>
|
|
||||||
|
|
||||||
<scriptTask id="sid-68AE120D-AB55-4ED2-AFD5-845139236AD3" name="Print Greeting from JS"
|
|
||||||
scriptFormat="JavaScript" activiti:autoStoreVariables="false">
|
|
||||||
<extensionElements>
|
|
||||||
<modeler:editor-resource-id>
|
|
||||||
<![CDATA[sid-68AE120D-AB55-4ED2-AFD5-845139236AD3]]></modeler:editor-resource-id>
|
|
||||||
</extensionElements>
|
|
||||||
<script><![CDATA[print("Hello World from JavaScript task:");
|
|
||||||
var userId = initiator;
|
|
||||||
print(dayGreeting + " " + userInfoBean.getUser(userId).getFullName());
|
|
||||||
print("You entered '" + greeting + "' as a greeting text.");
|
|
||||||
]]></script>
|
|
||||||
</scriptTask>
|
|
||||||
|
|
||||||
<sequenceFlow id="sid-6105A21B-6A76-41EC-B88E-78B3BE4A826F" sourceRef="sid-68AE120D-AB55-4ED2-AFD5-845139236AD3"
|
|
||||||
targetRef="endHelloWorld">
|
|
||||||
<extensionElements>
|
|
||||||
<modeler:editor-resource-id>
|
|
||||||
<![CDATA[sid-6105A21B-6A76-41EC-B88E-78B3BE4A826F]]></modeler:editor-resource-id>
|
|
||||||
</extensionElements>
|
|
||||||
</sequenceFlow>
|
|
||||||
|
|
||||||
<endEvent id="endHelloWorld">
|
|
||||||
<extensionElements>
|
|
||||||
<modeler:editor-resource-id>
|
|
||||||
<![CDATA[sid-9F0B5A13-7D1F-4ADF-8A08-7B9F0D851DA6]]></modeler:editor-resource-id>
|
|
||||||
</extensionElements>
|
|
||||||
<terminateEventDefinition/>
|
|
||||||
</endEvent>
|
|
||||||
</process>
|
|
||||||
|
|
||||||
<bpmndi:BPMNDiagram id="BPMNDiagram_HelloWorld">
|
|
||||||
<bpmndi:BPMNPlane bpmnElement="HelloWorld" id="BPMNPlane_HelloWorld">
|
|
||||||
<bpmndi:BPMNShape bpmnElement="startHelloWorld" id="BPMNShape_startHelloWorld">
|
|
||||||
<omgdc:Bounds height="30.0" width="30.0" x="90.0" y="190.0"/>
|
|
||||||
</bpmndi:BPMNShape>
|
|
||||||
<bpmndi:BPMNShape bpmnElement="decideGreeting" id="BPMNShape_decideGreeting">
|
|
||||||
<omgdc:Bounds height="80.0" width="100.0" x="210.0" y="165.0"/>
|
|
||||||
</bpmndi:BPMNShape>
|
|
||||||
<bpmndi:BPMNShape bpmnElement="sid-68AE120D-AB55-4ED2-AFD5-845139236AD3"
|
|
||||||
id="BPMNShape_sid-68AE120D-AB55-4ED2-AFD5-845139236AD3">
|
|
||||||
<omgdc:Bounds height="80.0" width="100.0" x="675.0" y="165.0"/>
|
|
||||||
</bpmndi:BPMNShape>
|
|
||||||
<bpmndi:BPMNShape bpmnElement="endHelloWorld" id="BPMNShape_endHelloWorld">
|
|
||||||
<omgdc:Bounds height="28.0" width="28.0" x="915.0" y="191.0"/>
|
|
||||||
</bpmndi:BPMNShape>
|
|
||||||
<bpmndi:BPMNShape bpmnElement="printGreetingFromJava" id="BPMNShape_printGreetingFromJava">
|
|
||||||
<omgdc:Bounds height="80.0" width="100.0" x="443.0" y="165.0"/>
|
|
||||||
</bpmndi:BPMNShape>
|
|
||||||
<bpmndi:BPMNEdge bpmnElement="sid-AD10A830-F8B1-4DBA-9C48-DFD5136E3810"
|
|
||||||
id="BPMNEdge_sid-AD10A830-F8B1-4DBA-9C48-DFD5136E3810">
|
|
||||||
<omgdi:waypoint x="543.0" y="205.0"/>
|
|
||||||
<omgdi:waypoint x="675.0" y="205.0"/>
|
|
||||||
</bpmndi:BPMNEdge>
|
|
||||||
<bpmndi:BPMNEdge bpmnElement="sid-4A014247-BF0C-436D-B3CE-EA297F2A18FA"
|
|
||||||
id="BPMNEdge_sid-4A014247-BF0C-436D-B3CE-EA297F2A18FA">
|
|
||||||
<omgdi:waypoint x="120.0" y="205.0"/>
|
|
||||||
<omgdi:waypoint x="210.0" y="205.0"/>
|
|
||||||
</bpmndi:BPMNEdge>
|
|
||||||
<bpmndi:BPMNEdge bpmnElement="sid-E8B736FE-874D-4EDF-85A6-8B602F1503FD"
|
|
||||||
id="BPMNEdge_sid-E8B736FE-874D-4EDF-85A6-8B602F1503FD">
|
|
||||||
<omgdi:waypoint x="310.0" y="205.0"/>
|
|
||||||
<omgdi:waypoint x="443.0" y="205.0"/>
|
|
||||||
</bpmndi:BPMNEdge>
|
|
||||||
<bpmndi:BPMNEdge bpmnElement="sid-6105A21B-6A76-41EC-B88E-78B3BE4A826F"
|
|
||||||
id="BPMNEdge_sid-6105A21B-6A76-41EC-B88E-78B3BE4A826F">
|
|
||||||
<omgdi:waypoint x="775.0" y="205.0"/>
|
|
||||||
<omgdi:waypoint x="915.0" y="205.0"/>
|
|
||||||
</bpmndi:BPMNEdge>
|
|
||||||
</bpmndi:BPMNPlane>
|
|
||||||
</bpmndi:BPMNDiagram>
|
|
||||||
</definitions>
|
|
@@ -1,403 +0,0 @@
|
|||||||
#set( $symbol_pound = '#' )
|
|
||||||
#set( $symbol_dollar = '$' )
|
|
||||||
#set( $symbol_escape = '\' )
|
|
||||||
{
|
|
||||||
"resourceId": 2005,
|
|
||||||
"properties": {
|
|
||||||
"process_id": "HelloWorld",
|
|
||||||
"name": "Hello World",
|
|
||||||
"documentation": "The Hello World business process that is part of the Alfresco SDK 3.0 Activiti JAR Module Maven archetype",
|
|
||||||
"process_author": "",
|
|
||||||
"process_version": "",
|
|
||||||
"process_namespace": "http://www.activiti.org/processdef",
|
|
||||||
"executionlisteners": "",
|
|
||||||
"eventlisteners": "",
|
|
||||||
"signaldefinitions": "",
|
|
||||||
"messagedefinitions": "",
|
|
||||||
"executionvariables": "",
|
|
||||||
"metadata": ""
|
|
||||||
},
|
|
||||||
"stencil": {
|
|
||||||
"id": "BPMNDiagram"
|
|
||||||
},
|
|
||||||
"childShapes": [
|
|
||||||
{
|
|
||||||
"resourceId": "startEvent1",
|
|
||||||
"properties": {
|
|
||||||
"overrideid": "startHelloWorld",
|
|
||||||
"name": "",
|
|
||||||
"documentation": "",
|
|
||||||
"executionlisteners": "",
|
|
||||||
"initiator": "",
|
|
||||||
"formkeydefinition": "",
|
|
||||||
"formreference": {
|
|
||||||
"id": 2006,
|
|
||||||
"name": "Hello World Start",
|
|
||||||
"referenceId": 2005,
|
|
||||||
"variablesmapping": []
|
|
||||||
},
|
|
||||||
"fieldstovariables": "",
|
|
||||||
"formproperties": ""
|
|
||||||
},
|
|
||||||
"stencil": {
|
|
||||||
"id": "StartNoneEvent"
|
|
||||||
},
|
|
||||||
"childShapes": [],
|
|
||||||
"outgoing": [
|
|
||||||
{
|
|
||||||
"resourceId": "sid-4A014247-BF0C-436D-B3CE-EA297F2A18FA"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"bounds": {
|
|
||||||
"lowerRight": {
|
|
||||||
"x": 120,
|
|
||||||
"y": 220
|
|
||||||
},
|
|
||||||
"upperLeft": {
|
|
||||||
"x": 90,
|
|
||||||
"y": 190
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"dockers": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"resourceId": "sid-B4E2D526-60B7-47B9-856C-FC824DA15708",
|
|
||||||
"properties": {
|
|
||||||
"overrideid": "decideGreeting",
|
|
||||||
"name": "Decide greeting",
|
|
||||||
"documentation": "",
|
|
||||||
"asynchronousdefinition": "false",
|
|
||||||
"exclusivedefinition": "false",
|
|
||||||
"executionlisteners": "",
|
|
||||||
"multiinstance_type": "None",
|
|
||||||
"multiinstance_cardinality": "",
|
|
||||||
"multiinstance_collection": "",
|
|
||||||
"multiinstance_variable": "",
|
|
||||||
"multiinstance_condition": "",
|
|
||||||
"isforcompensation": "false",
|
|
||||||
"decisiontaskdecisiontablereference": {
|
|
||||||
"id": 2007,
|
|
||||||
"name": "Decide What Greeting",
|
|
||||||
"referenceId": 2005,
|
|
||||||
"variablesmapping": []
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"stencil": {
|
|
||||||
"id": "DecisionTask"
|
|
||||||
},
|
|
||||||
"childShapes": [],
|
|
||||||
"outgoing": [
|
|
||||||
{
|
|
||||||
"resourceId": "sid-E8B736FE-874D-4EDF-85A6-8B602F1503FD"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"bounds": {
|
|
||||||
"lowerRight": {
|
|
||||||
"x": 310,
|
|
||||||
"y": 245
|
|
||||||
},
|
|
||||||
"upperLeft": {
|
|
||||||
"x": 210,
|
|
||||||
"y": 165
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"dockers": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"resourceId": "sid-4A014247-BF0C-436D-B3CE-EA297F2A18FA",
|
|
||||||
"properties": {
|
|
||||||
"overrideid": "",
|
|
||||||
"name": "",
|
|
||||||
"documentation": "",
|
|
||||||
"conditionsequenceflow": "",
|
|
||||||
"executionlisteners": "",
|
|
||||||
"defaultflow": "false"
|
|
||||||
},
|
|
||||||
"stencil": {
|
|
||||||
"id": "SequenceFlow"
|
|
||||||
},
|
|
||||||
"childShapes": [],
|
|
||||||
"outgoing": [
|
|
||||||
{
|
|
||||||
"resourceId": "sid-B4E2D526-60B7-47B9-856C-FC824DA15708"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"bounds": {
|
|
||||||
"lowerRight": {
|
|
||||||
"x": 209.3515625,
|
|
||||||
"y": 205
|
|
||||||
},
|
|
||||||
"upperLeft": {
|
|
||||||
"x": 120.53125,
|
|
||||||
"y": 205
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"dockers": [
|
|
||||||
{
|
|
||||||
"x": 15,
|
|
||||||
"y": 15
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"x": 50,
|
|
||||||
"y": 40
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"target": {
|
|
||||||
"resourceId": "sid-B4E2D526-60B7-47B9-856C-FC824DA15708"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"resourceId": "sid-68AE120D-AB55-4ED2-AFD5-845139236AD3",
|
|
||||||
"properties": {
|
|
||||||
"scriptformat": "JavaScript",
|
|
||||||
"scripttext": "print(\"Hello World from JavaScript task:\");\nvar userId = initiator;\nprint(dayGreeting + \" \" + userInfoBean.getUser(userId).getFullName());\nprint(\"You entered '\" + greeting + \"' as a greeting text.\");\n",
|
|
||||||
"executionvariables": "",
|
|
||||||
"overrideid": "",
|
|
||||||
"name": "Print Greeting from JS",
|
|
||||||
"documentation": "",
|
|
||||||
"asynchronousdefinition": "false",
|
|
||||||
"exclusivedefinition": "false",
|
|
||||||
"executionlisteners": "",
|
|
||||||
"multiinstance_type": "None",
|
|
||||||
"multiinstance_cardinality": "",
|
|
||||||
"multiinstance_collection": "",
|
|
||||||
"multiinstance_variable": "",
|
|
||||||
"multiinstance_condition": "",
|
|
||||||
"isforcompensation": "false"
|
|
||||||
},
|
|
||||||
"stencil": {
|
|
||||||
"id": "ScriptTask"
|
|
||||||
},
|
|
||||||
"childShapes": [],
|
|
||||||
"outgoing": [
|
|
||||||
{
|
|
||||||
"resourceId": "sid-6105A21B-6A76-41EC-B88E-78B3BE4A826F"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"bounds": {
|
|
||||||
"lowerRight": {
|
|
||||||
"x": 775,
|
|
||||||
"y": 245
|
|
||||||
},
|
|
||||||
"upperLeft": {
|
|
||||||
"x": 675,
|
|
||||||
"y": 165
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"dockers": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"resourceId": "sid-9F0B5A13-7D1F-4ADF-8A08-7B9F0D851DA6",
|
|
||||||
"properties": {
|
|
||||||
"overrideid": "endHelloWorld",
|
|
||||||
"name": "",
|
|
||||||
"documentation": "",
|
|
||||||
"executionlisteners": ""
|
|
||||||
},
|
|
||||||
"stencil": {
|
|
||||||
"id": "EndTerminateEvent"
|
|
||||||
},
|
|
||||||
"childShapes": [],
|
|
||||||
"outgoing": [],
|
|
||||||
"bounds": {
|
|
||||||
"lowerRight": {
|
|
||||||
"x": 943,
|
|
||||||
"y": 219
|
|
||||||
},
|
|
||||||
"upperLeft": {
|
|
||||||
"x": 915,
|
|
||||||
"y": 191
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"dockers": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"resourceId": "sid-6105A21B-6A76-41EC-B88E-78B3BE4A826F",
|
|
||||||
"properties": {
|
|
||||||
"overrideid": "",
|
|
||||||
"name": "",
|
|
||||||
"documentation": "",
|
|
||||||
"conditionsequenceflow": "",
|
|
||||||
"executionlisteners": "",
|
|
||||||
"defaultflow": "false"
|
|
||||||
},
|
|
||||||
"stencil": {
|
|
||||||
"id": "SequenceFlow"
|
|
||||||
},
|
|
||||||
"childShapes": [],
|
|
||||||
"outgoing": [
|
|
||||||
{
|
|
||||||
"resourceId": "sid-9F0B5A13-7D1F-4ADF-8A08-7B9F0D851DA6"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"bounds": {
|
|
||||||
"lowerRight": {
|
|
||||||
"x": 914.453125,
|
|
||||||
"y": 205
|
|
||||||
},
|
|
||||||
"upperLeft": {
|
|
||||||
"x": 775.40625,
|
|
||||||
"y": 205
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"dockers": [
|
|
||||||
{
|
|
||||||
"x": 50,
|
|
||||||
"y": 40
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"x": 14,
|
|
||||||
"y": 14
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"target": {
|
|
||||||
"resourceId": "sid-9F0B5A13-7D1F-4ADF-8A08-7B9F0D851DA6"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"resourceId": "sid-61E86F19-FC5F-4814-B9AB-2394B03171D6",
|
|
||||||
"properties": {
|
|
||||||
"overrideid": "printGreetingFromJava",
|
|
||||||
"name": "Print Greeting From Java",
|
|
||||||
"documentation": "",
|
|
||||||
"asynchronousdefinition": "false",
|
|
||||||
"exclusivedefinition": "false",
|
|
||||||
"executionlisteners": "",
|
|
||||||
"multiinstance_type": "None",
|
|
||||||
"multiinstance_cardinality": "",
|
|
||||||
"multiinstance_collection": "",
|
|
||||||
"multiinstance_variable": "",
|
|
||||||
"multiinstance_condition": "",
|
|
||||||
"isforcompensation": "false",
|
|
||||||
"servicetaskclass": "${package}.tasks.service.HelloWorldServiceTask",
|
|
||||||
"servicetaskexpression": "",
|
|
||||||
"servicetaskdelegateexpression": "",
|
|
||||||
"servicetaskfields": "",
|
|
||||||
"servicetaskresultvariable": "",
|
|
||||||
"executionvariables": ""
|
|
||||||
},
|
|
||||||
"stencil": {
|
|
||||||
"id": "ServiceTask"
|
|
||||||
},
|
|
||||||
"childShapes": [],
|
|
||||||
"outgoing": [
|
|
||||||
{
|
|
||||||
"resourceId": "sid-AD10A830-F8B1-4DBA-9C48-DFD5136E3810"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"bounds": {
|
|
||||||
"lowerRight": {
|
|
||||||
"x": 543,
|
|
||||||
"y": 245
|
|
||||||
},
|
|
||||||
"upperLeft": {
|
|
||||||
"x": 443,
|
|
||||||
"y": 165
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"dockers": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"resourceId": "sid-AD10A830-F8B1-4DBA-9C48-DFD5136E3810",
|
|
||||||
"properties": {
|
|
||||||
"overrideid": "",
|
|
||||||
"name": "",
|
|
||||||
"documentation": "",
|
|
||||||
"conditionsequenceflow": "",
|
|
||||||
"executionlisteners": "",
|
|
||||||
"defaultflow": "false"
|
|
||||||
},
|
|
||||||
"stencil": {
|
|
||||||
"id": "SequenceFlow"
|
|
||||||
},
|
|
||||||
"childShapes": [],
|
|
||||||
"outgoing": [
|
|
||||||
{
|
|
||||||
"resourceId": "sid-68AE120D-AB55-4ED2-AFD5-845139236AD3"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"bounds": {
|
|
||||||
"lowerRight": {
|
|
||||||
"x": 674.15625,
|
|
||||||
"y": 205
|
|
||||||
},
|
|
||||||
"upperLeft": {
|
|
||||||
"x": 543.84375,
|
|
||||||
"y": 205
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"dockers": [
|
|
||||||
{
|
|
||||||
"x": 50,
|
|
||||||
"y": 40
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"x": 50,
|
|
||||||
"y": 40
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"target": {
|
|
||||||
"resourceId": "sid-68AE120D-AB55-4ED2-AFD5-845139236AD3"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"resourceId": "sid-E8B736FE-874D-4EDF-85A6-8B602F1503FD",
|
|
||||||
"properties": {
|
|
||||||
"overrideid": "",
|
|
||||||
"name": "",
|
|
||||||
"documentation": "",
|
|
||||||
"conditionsequenceflow": "",
|
|
||||||
"executionlisteners": "",
|
|
||||||
"defaultflow": "false",
|
|
||||||
"showdiamondmarker": false
|
|
||||||
},
|
|
||||||
"stencil": {
|
|
||||||
"id": "SequenceFlow"
|
|
||||||
},
|
|
||||||
"childShapes": [],
|
|
||||||
"outgoing": [
|
|
||||||
{
|
|
||||||
"resourceId": "sid-61E86F19-FC5F-4814-B9AB-2394B03171D6"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"bounds": {
|
|
||||||
"lowerRight": {
|
|
||||||
"x": 443,
|
|
||||||
"y": 205
|
|
||||||
},
|
|
||||||
"upperLeft": {
|
|
||||||
"x": 310.59375,
|
|
||||||
"y": 205
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"dockers": [
|
|
||||||
{
|
|
||||||
"x": 50,
|
|
||||||
"y": 40
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"x": 1,
|
|
||||||
"y": 40
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"target": {
|
|
||||||
"resourceId": "sid-61E86F19-FC5F-4814-B9AB-2394B03171D6"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"bounds": {
|
|
||||||
"lowerRight": {
|
|
||||||
"x": 1200,
|
|
||||||
"y": 1050
|
|
||||||
},
|
|
||||||
"upperLeft": {
|
|
||||||
"x": 0,
|
|
||||||
"y": 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"stencilset": {
|
|
||||||
"url": "stencilsets/bpmn2.0/bpmn2.0.json",
|
|
||||||
"namespace": "http://b3mn.org/stencilset/bpmn2.0#"
|
|
||||||
},
|
|
||||||
"ssextensions": []
|
|
||||||
}
|
|
Binary file not shown.
Before Width: | Height: | Size: 1.0 KiB |
@@ -1,53 +0,0 @@
|
|||||||
{
|
|
||||||
"referenceId": 2005,
|
|
||||||
"name": "Decide What Greeting",
|
|
||||||
"description": "Decide, depending on time of day, what greeting to display.",
|
|
||||||
"editorJson": {
|
|
||||||
"id": 2007,
|
|
||||||
"name": "Decide What Greeting",
|
|
||||||
"key": "DecideWhatGreeting",
|
|
||||||
"description": "Decide, depending on time of day, what greeting to display.",
|
|
||||||
"hitIndicator": "FIRST",
|
|
||||||
"inputExpressions": [
|
|
||||||
{
|
|
||||||
"id": "3",
|
|
||||||
"variableId": "timeofday",
|
|
||||||
"variableType": "formfield",
|
|
||||||
"type": "string",
|
|
||||||
"label": "Time of day",
|
|
||||||
"entries": null,
|
|
||||||
"newVariable": false
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"outputExpressions": [
|
|
||||||
{
|
|
||||||
"id": "4",
|
|
||||||
"variableId": "dayGreeting",
|
|
||||||
"variableType": "variable",
|
|
||||||
"type": "string",
|
|
||||||
"label": "DayGreeting",
|
|
||||||
"entries": null,
|
|
||||||
"newVariable": true
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"rules": [
|
|
||||||
{
|
|
||||||
"3": "== \"time_of_day_morning\"",
|
|
||||||
"4": "\"Good Morning!\""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"3": "== \"time_of_day_lunch\"",
|
|
||||||
"4": "\"Good Day!\""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"3": "== \"time_of_day_dinner\"",
|
|
||||||
"4": "\"Good Evening!\""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"3": "== \"time_of_day_night\"",
|
|
||||||
"4": "\"Good Night!\""
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"executionVariables": []
|
|
||||||
}
|
|
||||||
}
|
|
Binary file not shown.
Before Width: | Height: | Size: 4.2 KiB |
@@ -1,201 +0,0 @@
|
|||||||
{
|
|
||||||
"referenceId": 2005,
|
|
||||||
"name": "Hello World Start",
|
|
||||||
"description": "The form for the Start task in the Hello World business process.",
|
|
||||||
"editorJson": {
|
|
||||||
"tabs": [],
|
|
||||||
"fields": [
|
|
||||||
{
|
|
||||||
"fieldType": "ContainerRepresentation",
|
|
||||||
"id": "1475149613209",
|
|
||||||
"name": "Label",
|
|
||||||
"type": "container",
|
|
||||||
"value": null,
|
|
||||||
"required": false,
|
|
||||||
"readOnly": false,
|
|
||||||
"overrideId": false,
|
|
||||||
"colspan": 1,
|
|
||||||
"placeholder": null,
|
|
||||||
"minLength": 0,
|
|
||||||
"maxLength": 0,
|
|
||||||
"minValue": null,
|
|
||||||
"maxValue": null,
|
|
||||||
"regexPattern": null,
|
|
||||||
"optionType": null,
|
|
||||||
"hasEmptyValue": null,
|
|
||||||
"options": null,
|
|
||||||
"restUrl": null,
|
|
||||||
"restResponsePath": null,
|
|
||||||
"restIdProperty": null,
|
|
||||||
"restLabelProperty": null,
|
|
||||||
"tab": null,
|
|
||||||
"className": null,
|
|
||||||
"dateDisplayFormat": null,
|
|
||||||
"layout": null,
|
|
||||||
"sizeX": 2,
|
|
||||||
"sizeY": 1,
|
|
||||||
"row": -1,
|
|
||||||
"col": -1,
|
|
||||||
"visibilityCondition": null,
|
|
||||||
"numberOfColumns": 2,
|
|
||||||
"fields": {
|
|
||||||
"1": [
|
|
||||||
{
|
|
||||||
"fieldType": "FormFieldRepresentation",
|
|
||||||
"id": "greeting",
|
|
||||||
"name": "Greeting",
|
|
||||||
"type": "text",
|
|
||||||
"value": null,
|
|
||||||
"required": true,
|
|
||||||
"readOnly": false,
|
|
||||||
"overrideId": false,
|
|
||||||
"colspan": 1,
|
|
||||||
"placeholder": null,
|
|
||||||
"minLength": 0,
|
|
||||||
"maxLength": 0,
|
|
||||||
"minValue": null,
|
|
||||||
"maxValue": null,
|
|
||||||
"regexPattern": null,
|
|
||||||
"optionType": null,
|
|
||||||
"hasEmptyValue": null,
|
|
||||||
"options": null,
|
|
||||||
"restUrl": null,
|
|
||||||
"restResponsePath": null,
|
|
||||||
"restIdProperty": null,
|
|
||||||
"restLabelProperty": null,
|
|
||||||
"tab": null,
|
|
||||||
"className": null,
|
|
||||||
"params": {
|
|
||||||
"existingColspan": 1,
|
|
||||||
"maxColspan": 2
|
|
||||||
},
|
|
||||||
"dateDisplayFormat": null,
|
|
||||||
"layout": {
|
|
||||||
"row": -1,
|
|
||||||
"column": -1,
|
|
||||||
"colspan": 1
|
|
||||||
},
|
|
||||||
"sizeX": 1,
|
|
||||||
"sizeY": 1,
|
|
||||||
"row": -1,
|
|
||||||
"col": -1,
|
|
||||||
"visibilityCondition": null
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"2": []
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"fieldType": "ContainerRepresentation",
|
|
||||||
"id": "1475149862241",
|
|
||||||
"name": "Label",
|
|
||||||
"type": "container",
|
|
||||||
"value": null,
|
|
||||||
"required": false,
|
|
||||||
"readOnly": false,
|
|
||||||
"overrideId": false,
|
|
||||||
"colspan": 1,
|
|
||||||
"placeholder": null,
|
|
||||||
"minLength": 0,
|
|
||||||
"maxLength": 0,
|
|
||||||
"minValue": null,
|
|
||||||
"maxValue": null,
|
|
||||||
"regexPattern": null,
|
|
||||||
"optionType": null,
|
|
||||||
"hasEmptyValue": null,
|
|
||||||
"options": null,
|
|
||||||
"restUrl": null,
|
|
||||||
"restResponsePath": null,
|
|
||||||
"restIdProperty": null,
|
|
||||||
"restLabelProperty": null,
|
|
||||||
"tab": null,
|
|
||||||
"className": null,
|
|
||||||
"dateDisplayFormat": null,
|
|
||||||
"layout": null,
|
|
||||||
"sizeX": 2,
|
|
||||||
"sizeY": 1,
|
|
||||||
"row": -1,
|
|
||||||
"col": -1,
|
|
||||||
"visibilityCondition": null,
|
|
||||||
"numberOfColumns": 2,
|
|
||||||
"fields": {
|
|
||||||
"1": [
|
|
||||||
{
|
|
||||||
"fieldType": "RestFieldRepresentation",
|
|
||||||
"id": "timeofday",
|
|
||||||
"name": "Time of Day",
|
|
||||||
"type": "dropdown",
|
|
||||||
"value": "Choose one...",
|
|
||||||
"required": false,
|
|
||||||
"readOnly": false,
|
|
||||||
"overrideId": false,
|
|
||||||
"colspan": 1,
|
|
||||||
"placeholder": null,
|
|
||||||
"minLength": 0,
|
|
||||||
"maxLength": 0,
|
|
||||||
"minValue": null,
|
|
||||||
"maxValue": null,
|
|
||||||
"regexPattern": null,
|
|
||||||
"optionType": null,
|
|
||||||
"hasEmptyValue": true,
|
|
||||||
"options": [
|
|
||||||
{
|
|
||||||
"id": "empty",
|
|
||||||
"name": "Choose one..."
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "time_of_day_morning",
|
|
||||||
"name": "Morning"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "time_of_day_lunch",
|
|
||||||
"name": "Lunch"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "time_of_day_dinner",
|
|
||||||
"name": "Dinner"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "time_of_day_night",
|
|
||||||
"name": "Night"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"restUrl": null,
|
|
||||||
"restResponsePath": null,
|
|
||||||
"restIdProperty": null,
|
|
||||||
"restLabelProperty": null,
|
|
||||||
"tab": null,
|
|
||||||
"className": null,
|
|
||||||
"params": {
|
|
||||||
"existingColspan": 1,
|
|
||||||
"maxColspan": 2
|
|
||||||
},
|
|
||||||
"dateDisplayFormat": null,
|
|
||||||
"layout": {
|
|
||||||
"row": -1,
|
|
||||||
"column": -1,
|
|
||||||
"colspan": 1
|
|
||||||
},
|
|
||||||
"sizeX": 1,
|
|
||||||
"sizeY": 1,
|
|
||||||
"row": -1,
|
|
||||||
"col": -1,
|
|
||||||
"visibilityCondition": null,
|
|
||||||
"endpoint": null,
|
|
||||||
"requestHeaders": null
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"2": []
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"outcomes": [],
|
|
||||||
"javascriptEvents": [],
|
|
||||||
"className": "",
|
|
||||||
"style": "",
|
|
||||||
"customFieldTemplates": {},
|
|
||||||
"metadata": {},
|
|
||||||
"variables": [],
|
|
||||||
"gridsterForm": false
|
|
||||||
}
|
|
||||||
}
|
|
Binary file not shown.
Before Width: | Height: | Size: 1.9 KiB |
@@ -1,9 +0,0 @@
|
|||||||
# Enterprise License location
|
|
||||||
|
|
||||||
Put the Activiti Enterprise license file (activiti.lic) in this directory.
|
|
||||||
It will then be copied into the WAR..............
|
|
||||||
|
|
||||||
And then not be part of any other classpaths.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@@ -1,35 +0,0 @@
|
|||||||
server.onpremise=true
|
|
||||||
server.stencil.custom.allowed=true
|
|
||||||
server.contextroot=/activiti-app
|
|
||||||
|
|
||||||
# Database connection
|
|
||||||
datasource.driver=org.h2.Driver
|
|
||||||
datasource.url=jdbc:h2:${activiti.datadir}/h2/activiti;AUTO_SERVER=TRUE;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=10000;MVCC=FALSE;LOCK_MODE=0
|
|
||||||
datasource.username=alfresco
|
|
||||||
datasource.password=alfresco
|
|
||||||
hibernate.dialect=org.hibernate.dialect.H2Dialect
|
|
||||||
|
|
||||||
# Elastic Search server config for historical process data
|
|
||||||
elastic-search.server.type=none
|
|
||||||
elastic-search.cluster.name=activiti-elastic-search-cluster-dev
|
|
||||||
elastic-search.enable.http=true
|
|
||||||
elastic-search.data.path=${activiti.datadir}/es
|
|
||||||
|
|
||||||
event.generation.enabled=true
|
|
||||||
event.processing.enabled=true
|
|
||||||
|
|
||||||
# Administrator login username = email
|
|
||||||
admin.email=admin@app.activiti.com
|
|
||||||
# koala
|
|
||||||
admin.passwordHash=4efe081594ce25ee4efd9f7067f7f678a347bccf2de201f3adf2a3eb544850b465b4e51cdc3fcdde
|
|
||||||
admin.lastname=Administrator
|
|
||||||
admin.group=Superusers
|
|
||||||
|
|
||||||
# Where to store any uploaded files
|
|
||||||
contentstorage.fs.rootFolder=${activiti.datadir}/contentstore
|
|
||||||
contentstorage.fs.createRoot=true
|
|
||||||
contentstorage.fs.depth=4
|
|
||||||
contentstorage.fs.blockSize=1024
|
|
||||||
|
|
||||||
# Disable Cross-Site-Request-Forgery (CSRF) protection, so we can access from other client app via REST
|
|
||||||
security.csrf.disabled=true
|
|
@@ -1,3 +0,0 @@
|
|||||||
ldap.authentication.enabled=false
|
|
||||||
ldap.synchronization.full.enabled=false
|
|
||||||
ldap.synchronization.differential.enabled=false
|
|
@@ -1,40 +0,0 @@
|
|||||||
#set( $symbol_pound = '#' )
|
|
||||||
#set( $symbol_dollar = '$' )
|
|
||||||
#set( $symbol_escape = '\' )
|
|
||||||
|
|
||||||
# This file is copied (with RunMojo) into target/activitiApp-war/WEB-INF/classes dir before webapp deployment
|
|
||||||
#
|
|
||||||
|
|
||||||
log4j.rootLogger=INFO, CA, File
|
|
||||||
|
|
||||||
# ConsoleAppender
|
|
||||||
log4j.appender.CA=org.apache.log4j.ConsoleAppender
|
|
||||||
log4j.appender.CA.layout=org.apache.log4j.PatternLayout
|
|
||||||
log4j.appender.CA.layout.ConversionPattern= %d{hh:mm:ss,SSS} [%t] %-5p %c %x - %m%n
|
|
||||||
|
|
||||||
# File Appender
|
|
||||||
log4j.appender.File=org.apache.log4j.RollingFileAppender
|
|
||||||
log4j.appender.File.File=${project.build.directory}/activiti.log
|
|
||||||
log4j.appender.File.threshold=INFO
|
|
||||||
log4j.appender.File.layout=org.apache.log4j.PatternLayout
|
|
||||||
log4j.appender.File.layout.ConversionPattern=%d{ISO8601} %-5p [%c] %m%n
|
|
||||||
log4j.appender.File.MaxFileSize=100MB
|
|
||||||
log4j.appender.File.MaxBackupIndex=1
|
|
||||||
|
|
||||||
# Custom tweaks
|
|
||||||
log4j.logger.org.apache.ibatis.level=INFO
|
|
||||||
log4j.logger.javax.activation.level=INFO
|
|
||||||
log4j.logger.com.codahale.metrics=WARN
|
|
||||||
log4j.logger.com.ryantenney=WARN
|
|
||||||
log4j.logger.com.zaxxer=WARN
|
|
||||||
log4j.logger.org.apache=WARN
|
|
||||||
log4j.logger.org.hibernate=WARN
|
|
||||||
log4j.logger.org.hibernate.engine.internal=WARN
|
|
||||||
log4j.logger.org.hibernate.validator=WARN
|
|
||||||
log4j.logger.org.springframework=WARN
|
|
||||||
log4j.logger.org.springframework.web=WARN
|
|
||||||
log4j.logger.org.springframework.security=WARN
|
|
||||||
|
|
||||||
|
|
||||||
# Custom classes logging
|
|
||||||
log4j.logger.${package}.tasks.service=DEBUG
|
|
@@ -1,6 +0,0 @@
|
|||||||
log4j.rootLogger=WARN, CA
|
|
||||||
|
|
||||||
# ConsoleAppender
|
|
||||||
log4j.appender.CA=org.apache.log4j.ConsoleAppender
|
|
||||||
log4j.appender.CA.layout=org.apache.log4j.PatternLayout
|
|
||||||
log4j.appender.CA.layout.ConversionPattern= %d{hh:mm:ss,SSS} [%t] %-5p %c %x - %m%n
|
|
@@ -1,5 +0,0 @@
|
|||||||
version=0.1-SNAPSHOT
|
|
||||||
groupId=archetype.it
|
|
||||||
artifactId=activitiJARTest
|
|
||||||
package=it.pkg
|
|
||||||
|
|
@@ -1 +0,0 @@
|
|||||||
verify -Dmaven.test.skip=true
|
|
@@ -1,4 +0,0 @@
|
|||||||
version=0.1-SNAPSHOT
|
|
||||||
groupId=archetype.it
|
|
||||||
artifactId=activitiJARTestRun
|
|
||||||
package=it.pkg
|
|
@@ -1 +0,0 @@
|
|||||||
install
|
|
@@ -62,7 +62,7 @@ public abstract class AbstractRunMojo extends AbstractMojo {
|
|||||||
|
|
||||||
public static final String PLATFORM_WAR_PREFIX_NAME = "platform";
|
public static final String PLATFORM_WAR_PREFIX_NAME = "platform";
|
||||||
public static final String SHARE_WAR_PREFIX_NAME = "share";
|
public static final String SHARE_WAR_PREFIX_NAME = "share";
|
||||||
public static final String ACTIVITI_APP_WAR_PREFIX_NAME = "activitiApp";
|
|
||||||
|
|
||||||
public static final String ALFRESCO_ENTERPRISE_EDITION = "enterprise";
|
public static final String ALFRESCO_ENTERPRISE_EDITION = "enterprise";
|
||||||
public static final String ALFRESCO_COMMUNITY_EDITION = "community";
|
public static final String ALFRESCO_COMMUNITY_EDITION = "community";
|
||||||
@@ -185,27 +185,6 @@ public abstract class AbstractRunMojo extends AbstractMojo {
|
|||||||
@Parameter(property = "maven.alfresco.enableApiExplorer", defaultValue = "false")
|
@Parameter(property = "maven.alfresco.enableApiExplorer", defaultValue = "false")
|
||||||
protected boolean enableApiExplorer;
|
protected boolean enableApiExplorer;
|
||||||
|
|
||||||
/**
|
|
||||||
* Deprecated as of SDK 3.1
|
|
||||||
* Switch to enable/disable Alfresco Activiti Workflow Engine (activiti-app.war) when running embedded Tomcat.
|
|
||||||
* This contains the Alfresco Activiti webapp, including the workflow engine.
|
|
||||||
* This webapp is also the user interface for people involved in the task and processes
|
|
||||||
* running in the Activiti engine.
|
|
||||||
* You also use this webapp to create and manage process definitions, and to display and define analytics
|
|
||||||
* reports on users' tasks and processes.
|
|
||||||
*/
|
|
||||||
@Parameter(property = "maven.alfresco.enableActivitiApp", defaultValue = "false")
|
|
||||||
protected boolean enableActivitiApp;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Deprecated as of SDK 3.1
|
|
||||||
* Switch to enable/disable Alfresco Activiti Admin (activiti-admin.war) when running embedded Tomcat.
|
|
||||||
* This contains the Alfresco Activiti Administrator webapp. You use this to administer and monitor your
|
|
||||||
* Alfresco Activiti engines.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
@Parameter(property = "maven.alfresco.enableActivitiAdmin", defaultValue = "false")
|
|
||||||
protected boolean enableActivitiAdmin;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Switch to enable/disable test properties when running embedded Tomcat.
|
* Switch to enable/disable test properties when running embedded Tomcat.
|
||||||
@@ -243,12 +222,6 @@ public abstract class AbstractRunMojo extends AbstractMojo {
|
|||||||
@Parameter(property = "maven.alfresco.share.modules", defaultValue = "")
|
@Parameter(property = "maven.alfresco.share.modules", defaultValue = "")
|
||||||
protected List<ModuleDependency> shareModules;
|
protected List<ModuleDependency> shareModules;
|
||||||
|
|
||||||
/**
|
|
||||||
* Deprecated as of SDK 3.1
|
|
||||||
* JARs that should be overlayed/applied to the Activiti App WAR (i.e. activiti-app.war)
|
|
||||||
*/
|
|
||||||
@Parameter(property = "maven.activiti.modules", defaultValue = "")
|
|
||||||
protected List<ModuleDependency> activitiModules;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Community Edition or Enterprise Edition? (i.e community or enterprise)
|
* Community Edition or Enterprise Edition? (i.e community or enterprise)
|
||||||
@@ -299,12 +272,6 @@ public abstract class AbstractRunMojo extends AbstractMojo {
|
|||||||
@Parameter(property = "alfresco.groupId", defaultValue = "org.alfresco")
|
@Parameter(property = "alfresco.groupId", defaultValue = "org.alfresco")
|
||||||
protected String alfrescoGroupId;
|
protected String alfrescoGroupId;
|
||||||
|
|
||||||
/**
|
|
||||||
* Deprecated as of SDK 3.1
|
|
||||||
*/
|
|
||||||
@Parameter(property = "activiti.groupId", defaultValue = "com.activiti")
|
|
||||||
protected String activitiGroupId;
|
|
||||||
|
|
||||||
@Parameter(property = "alfresco.platform.war.artifactId", defaultValue = "alfresco-platform")
|
@Parameter(property = "alfresco.platform.war.artifactId", defaultValue = "alfresco-platform")
|
||||||
protected String alfrescoPlatformWarArtifactId;
|
protected String alfrescoPlatformWarArtifactId;
|
||||||
|
|
||||||
@@ -317,18 +284,6 @@ public abstract class AbstractRunMojo extends AbstractMojo {
|
|||||||
@Parameter(property = "alfresco.api.explorer.artifactId", defaultValue = "api-explorer")
|
@Parameter(property = "alfresco.api.explorer.artifactId", defaultValue = "api-explorer")
|
||||||
protected String alfrescoApiExplorerArtifactId;
|
protected String alfrescoApiExplorerArtifactId;
|
||||||
|
|
||||||
/**
|
|
||||||
* Deprecated as of SDK 3.1
|
|
||||||
*/
|
|
||||||
|
|
||||||
@Parameter(property = "activiti.app.war.artifactId", defaultValue = "activiti-app")
|
|
||||||
protected String activitiAppWarArtifactId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Deprecated as of SDK 3.1
|
|
||||||
*/
|
|
||||||
@Parameter(property = "activiti.admin.war.artifactId", defaultValue = "activiti-admin")
|
|
||||||
protected String activitiAdminWarArtifactId;
|
|
||||||
|
|
||||||
@Parameter(property = "alfresco.platform.version", defaultValue = "5.2.f")
|
@Parameter(property = "alfresco.platform.version", defaultValue = "5.2.f")
|
||||||
protected String alfrescoPlatformVersion;
|
protected String alfrescoPlatformVersion;
|
||||||
@@ -339,11 +294,6 @@ public abstract class AbstractRunMojo extends AbstractMojo {
|
|||||||
@Parameter(property = "alfresco.api.explorer.version", defaultValue = "5.2.e")
|
@Parameter(property = "alfresco.api.explorer.version", defaultValue = "5.2.e")
|
||||||
protected String alfrescoApiExplorerVersion;
|
protected String alfrescoApiExplorerVersion;
|
||||||
|
|
||||||
/**
|
|
||||||
* Deprecated as of SDK 3.1
|
|
||||||
*/
|
|
||||||
@Parameter(property = "activiti.version", defaultValue = "1.5.3")
|
|
||||||
protected String activitiVersion;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Directory that contains the Alfresco Solr 4 configuration
|
* Directory that contains the Alfresco Solr 4 configuration
|
||||||
@@ -352,7 +302,7 @@ public abstract class AbstractRunMojo extends AbstractMojo {
|
|||||||
protected String solrHome;
|
protected String solrHome;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Maven GAV properties for customized alfresco.war, share.war, activiti-app.war
|
* Maven GAV properties for customized alfresco.war and share.war
|
||||||
* Used by the Maven Tomcat 7 Plugin
|
* Used by the Maven Tomcat 7 Plugin
|
||||||
*/
|
*/
|
||||||
private String runnerAlfrescoGroupId;
|
private String runnerAlfrescoGroupId;
|
||||||
@@ -360,9 +310,6 @@ public abstract class AbstractRunMojo extends AbstractMojo {
|
|||||||
private String runnerAlfrescoShareWarArtifactId;
|
private String runnerAlfrescoShareWarArtifactId;
|
||||||
private String runnerAlfrescoPlatformVersion;
|
private String runnerAlfrescoPlatformVersion;
|
||||||
private String runnerAlfrescoShareVersion;
|
private String runnerAlfrescoShareVersion;
|
||||||
private String runnerActivitiAppGroupId;
|
|
||||||
private String runnerActivitiAppWarArtifactId;
|
|
||||||
private String runnerActivitiAppVersion;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Maven environment that this mojo is executed in
|
* The Maven environment that this mojo is executed in
|
||||||
@@ -882,39 +829,6 @@ public abstract class AbstractRunMojo extends AbstractMojo {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Copy the Activiti Log4J Dev config into the activitiApp-war/WEB-INF/classes dir.
|
|
||||||
*
|
|
||||||
* @throws MojoExecutionException
|
|
||||||
*/
|
|
||||||
protected void copyActivitiLog4JDevConfig() throws MojoExecutionException {
|
|
||||||
final String warOutputDir = getWarOutputDir(ACTIVITI_APP_WAR_PREFIX_NAME);
|
|
||||||
final String logConfDestDir = warOutputDir + "/WEB-INF/classes";
|
|
||||||
|
|
||||||
getLog().info("Copying Activiti log4j-dev.properties to: " + logConfDestDir);
|
|
||||||
|
|
||||||
executeMojo(
|
|
||||||
plugin(
|
|
||||||
groupId("org.apache.maven.plugins"),
|
|
||||||
artifactId("maven-resources-plugin"),
|
|
||||||
version(MAVEN_RESOURCE_PLUGIN_VERSION)
|
|
||||||
),
|
|
||||||
goal("copy-resources"),
|
|
||||||
configuration(
|
|
||||||
element(name("outputDirectory"), logConfDestDir),
|
|
||||||
element(name("resources"),
|
|
||||||
element(name("resource"),
|
|
||||||
element(name("directory"), "src/test/resources"),
|
|
||||||
element(name("includes"),
|
|
||||||
element(name("include"), "log4j-dev.properties")
|
|
||||||
),
|
|
||||||
element(name("filtering"), "true")
|
|
||||||
)
|
|
||||||
)
|
|
||||||
),
|
|
||||||
execEnv
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1074,24 +988,6 @@ public abstract class AbstractRunMojo extends AbstractMojo {
|
|||||||
runnerAlfrescoShareVersion = "${project.version}";
|
runnerAlfrescoShareVersion = "${project.version}";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Build the customized Activiti App webapp (i.e. the activiti-app.war)
|
|
||||||
* that should be deployed by Tomcat by applying all JARs from
|
|
||||||
* the {@code <activitiModules> } configuration.
|
|
||||||
*/
|
|
||||||
protected void buildActivitiAppWar() throws MojoExecutionException {
|
|
||||||
buildCustomWarInDir(ACTIVITI_APP_WAR_PREFIX_NAME, activitiModules,
|
|
||||||
activitiGroupId, activitiAppWarArtifactId, activitiVersion);
|
|
||||||
|
|
||||||
copyActivitiLog4JDevConfig();
|
|
||||||
|
|
||||||
String activitiAppWarArtifactId = packageAndInstallCustomWar(ACTIVITI_APP_WAR_PREFIX_NAME);
|
|
||||||
|
|
||||||
// Set up the custom share war to be run by Tomcat plugin
|
|
||||||
runnerActivitiAppGroupId = "${project.groupId}";
|
|
||||||
runnerActivitiAppWarArtifactId = activitiAppWarArtifactId;
|
|
||||||
runnerActivitiAppVersion = "${project.version}";
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Build a customized webapp in a directory,
|
* Build a customized webapp in a directory,
|
||||||
@@ -1266,8 +1162,8 @@ public abstract class AbstractRunMojo extends AbstractMojo {
|
|||||||
* Check that a database configuration has been supplied correctly
|
* Check that a database configuration has been supplied correctly
|
||||||
*/
|
*/
|
||||||
protected void checkDatabaseConfig() throws MojoExecutionException {
|
protected void checkDatabaseConfig() throws MojoExecutionException {
|
||||||
// Only do this check if we are running alfresco.war or activiti-app.war that needs a database.
|
// Only do this check if we are running alfresco.war that needs a database.
|
||||||
if (enablePlatform || enableActivitiApp) {
|
if (enablePlatform) {
|
||||||
if (enableH2 && !enableMySQL && !enablePostgreSQL) {
|
if (enableH2 && !enableMySQL && !enablePostgreSQL) {
|
||||||
// Run with the H2 database
|
// Run with the H2 database
|
||||||
return;
|
return;
|
||||||
@@ -1363,17 +1259,6 @@ public abstract class AbstractRunMojo extends AbstractMojo {
|
|||||||
"/api-explorer", null));
|
"/api-explorer", null));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (enableActivitiApp) {
|
|
||||||
|
|
||||||
webapps2Deploy.add(createWebAppElement(
|
|
||||||
runnerActivitiAppGroupId, runnerActivitiAppWarArtifactId, runnerActivitiAppVersion,
|
|
||||||
"/activiti-app", null));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (enableActivitiAdmin) {
|
|
||||||
webapps2Deploy.add(createWebAppElement(
|
|
||||||
activitiGroupId, activitiAdminWarArtifactId, activitiVersion, "/activiti-admin", null));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (tomcatCustomWebapps != null && !tomcatCustomWebapps.isEmpty()) {
|
if (tomcatCustomWebapps != null && !tomcatCustomWebapps.isEmpty()) {
|
||||||
// We got extra custom webapps to deploy
|
// We got extra custom webapps to deploy
|
||||||
@@ -1394,10 +1279,6 @@ public abstract class AbstractRunMojo extends AbstractMojo {
|
|||||||
if (enableSolr) {
|
if (enableSolr) {
|
||||||
systemProps.add(element(name("solr.solr.home"), solrHome + "/"));
|
systemProps.add(element(name("solr.solr.home"), solrHome + "/"));
|
||||||
}
|
}
|
||||||
if (enableActivitiApp) {
|
|
||||||
// Should be in activiti-jar/src/test/resources
|
|
||||||
systemProps.add(element(name("log4j.configuration"), "log4j-dev.properties"));
|
|
||||||
}
|
|
||||||
// Add custom system properties defined in plugin config
|
// Add custom system properties defined in plugin config
|
||||||
if (tomcatSystemProperties != null && !tomcatSystemProperties.isEmpty()) {
|
if (tomcatSystemProperties != null && !tomcatSystemProperties.isEmpty()) {
|
||||||
for (Map.Entry<String, String> sysProp : tomcatSystemProperties.entrySet()) {
|
for (Map.Entry<String, String> sysProp : tomcatSystemProperties.entrySet()) {
|
||||||
|
@@ -111,9 +111,6 @@ public class IntegrationTestMojo extends AbstractRunMojo {
|
|||||||
buildShareWar();
|
buildShareWar();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (enableActivitiApp) {
|
|
||||||
buildActivitiAppWar();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (startTomcat) {
|
if (startTomcat) {
|
||||||
boolean fork = true;
|
boolean fork = true;
|
||||||
|
@@ -46,29 +46,7 @@ public class RunMojo extends AbstractRunMojo {
|
|||||||
pluginManager
|
pluginManager
|
||||||
);
|
);
|
||||||
|
|
||||||
if (enableActivitiApp || enableActivitiAdmin) {
|
|
||||||
getLog().warn("*************************************************************************************************************");
|
|
||||||
getLog().warn("*");
|
|
||||||
getLog().warn("*");
|
|
||||||
getLog().warn("*");
|
|
||||||
getLog().warn("*");
|
|
||||||
getLog().warn("*");
|
|
||||||
getLog().warn("*");
|
|
||||||
getLog().warn("*");
|
|
||||||
getLog().warn("*");
|
|
||||||
getLog().warn("*\tWARNING" );
|
|
||||||
getLog().warn("*\tThe Activiti features in SDK 3.x are UNSUPPORTED.");
|
|
||||||
getLog().warn("*\tIt has been marked for deprecation (SDK 3.1) and will be removed in SDK 4.0.");
|
|
||||||
getLog().warn("*");
|
|
||||||
getLog().warn("*");
|
|
||||||
getLog().warn("*");
|
|
||||||
getLog().warn("*");
|
|
||||||
getLog().warn("*");
|
|
||||||
getLog().warn("*");
|
|
||||||
getLog().warn("*");
|
|
||||||
getLog().warn("*************************************************************************************************************");
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
if (enableSolr) {
|
if (enableSolr) {
|
||||||
unpackSolrConfig();
|
unpackSolrConfig();
|
||||||
@@ -91,10 +69,6 @@ public class RunMojo extends AbstractRunMojo {
|
|||||||
buildShareWar();
|
buildShareWar();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (enableActivitiApp) {
|
|
||||||
buildActivitiAppWar();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (startTomcat) {
|
if (startTomcat) {
|
||||||
checkDatabaseConfig();
|
checkDatabaseConfig();
|
||||||
boolean fork = false;
|
boolean fork = false;
|
||||||
|
2
pom.xml
2
pom.xml
@@ -113,10 +113,8 @@
|
|||||||
<module>plugins/alfresco-maven-plugin</module>
|
<module>plugins/alfresco-maven-plugin</module>
|
||||||
<!-- Archetypes -->
|
<!-- Archetypes -->
|
||||||
<module>archetypes/alfresco-platform-jar-archetype</module>
|
<module>archetypes/alfresco-platform-jar-archetype</module>
|
||||||
|
|
||||||
<module>archetypes/alfresco-share-jar-archetype</module>
|
<module>archetypes/alfresco-share-jar-archetype</module>
|
||||||
<module>archetypes/alfresco-allinone-archetype</module>
|
<module>archetypes/alfresco-allinone-archetype</module>
|
||||||
<module>archetypes/activiti-jar-archetype</module>
|
|
||||||
|
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user