initial commit
This commit is contained in:
commit
28939c481d
34 changed files with 1097 additions and 0 deletions
39
Rechnungseingang/.classpath
Normal file
39
Rechnungseingang/.classpath
Normal file
|
@ -0,0 +1,39 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="src" output="target/classes" path="src/main/java">
|
||||
<attributes>
|
||||
<attribute name="optional" value="true"/>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
|
||||
<attributes>
|
||||
<attribute name="optional" value="true"/>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
<attribute name="test" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
<attribute name="test" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="output" path="target/classes"/>
|
||||
</classpath>
|
37
Rechnungseingang/.project
Normal file
37
Rechnungseingang/.project
Normal file
|
@ -0,0 +1,37 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>Rechnungseingang</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.wst.common.project.facet.core.builder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.wst.validation.validationbuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.m2e.core.maven2Builder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
|
||||
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
<nature>org.eclipse.m2e.core.maven2Nature</nature>
|
||||
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
|
||||
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
13
Rechnungseingang/.settings/.jsdtscope
Normal file
13
Rechnungseingang/.settings/.jsdtscope
Normal file
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="src/main/webapp"/>
|
||||
<classpathentry kind="src" path="target/m2e-wtp/web-resources"/>
|
||||
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
|
||||
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
|
||||
<attributes>
|
||||
<attribute name="hide" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
|
||||
<classpathentry kind="output" path=""/>
|
||||
</classpath>
|
|
@ -0,0 +1,6 @@
|
|||
eclipse.preferences.version=1
|
||||
encoding//src/main/java=UTF-8
|
||||
encoding//src/main/resources=UTF-8
|
||||
encoding//src/test/java=UTF-8
|
||||
encoding//src/test/resources=UTF-8
|
||||
encoding/<project>=UTF-8
|
9
Rechnungseingang/.settings/org.eclipse.jdt.core.prefs
Normal file
9
Rechnungseingang/.settings/org.eclipse.jdt.core.prefs
Normal file
|
@ -0,0 +1,9 @@
|
|||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
|
||||
org.eclipse.jdt.core.compiler.compliance=1.8
|
||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
|
||||
org.eclipse.jdt.core.compiler.release=disabled
|
||||
org.eclipse.jdt.core.compiler.source=1.8
|
4
Rechnungseingang/.settings/org.eclipse.m2e.core.prefs
Normal file
4
Rechnungseingang/.settings/org.eclipse.m2e.core.prefs
Normal file
|
@ -0,0 +1,4 @@
|
|||
activeProfiles=
|
||||
eclipse.preferences.version=1
|
||||
resolveWorkspaceProjects=true
|
||||
version=1
|
10
Rechnungseingang/.settings/org.eclipse.wst.common.component
Normal file
10
Rechnungseingang/.settings/org.eclipse.wst.common.component
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
|
||||
<wb-module deploy-name="Rechnungseingang">
|
||||
<wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/>
|
||||
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
|
||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
|
||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
|
||||
<property name="context-root" value="Rechnungseingang"/>
|
||||
<property name="java-output-path" value="/Rechnungseingang/target/classes"/>
|
||||
</wb-module>
|
||||
</project-modules>
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<faceted-project>
|
||||
<fixed facet="wst.jsdt.web"/>
|
||||
<installed facet="java" version="1.8"/>
|
||||
<installed facet="jst.web" version="3.1"/>
|
||||
<installed facet="wst.jsdt.web" version="1.0"/>
|
||||
</faceted-project>
|
|
@ -0,0 +1 @@
|
|||
org.eclipse.wst.jsdt.launching.baseBrowserLibrary
|
|
@ -0,0 +1 @@
|
|||
Window
|
|
@ -0,0 +1,2 @@
|
|||
disabled=06target
|
||||
eclipse.preferences.version=1
|
107
Rechnungseingang/README.md
Normal file
107
Rechnungseingang/README.md
Normal file
|
@ -0,0 +1,107 @@
|
|||
# Camunda BPM Process Application
|
||||
A Process Application for [Camunda BPM](http://docs.camunda.org).
|
||||
|
||||
This project has been generated by the Maven archetype
|
||||
[camunda-archetype-servlet-war-7.11.1](http://docs.camunda.org/latest/guides/user-guide/#process-applications-maven-project-templates-archetypes).
|
||||
|
||||
## Show me the important parts!
|
||||
[BPMN Process](src/main/resources/process.bpmn)
|
||||
|
||||
![BPMN Process](src/main/resources/process.png)
|
||||
|
||||
## How does it work?
|
||||
|
||||
## How to use it?
|
||||
|
||||
### Unit Test
|
||||
You can run the JUnit test [InMemoryH2Test](src/main/resources/archetype-resources/src/test/java/InMemoryH2Test.java) in your IDE or using:
|
||||
```bash
|
||||
mvn clean test
|
||||
```
|
||||
|
||||
### Deployment to an Application Server
|
||||
You can also build and deploy the process application to an application server.
|
||||
For an easy start you can download Apache Tomcat with a pre-installed Camunda
|
||||
from our [Download Page](https://camunda.com/download/).
|
||||
|
||||
#### Manually
|
||||
1. Build the application using:
|
||||
```bash
|
||||
mvn clean package
|
||||
```
|
||||
2. Copy the *.war file from the `target` directory to the deployment directory
|
||||
of your application server e.g. `tomcat/webapps` or `wildfly/standalone/deployments`.
|
||||
For a faster 1-click (re-)deployment see the alternatives below.
|
||||
|
||||
#### Apache Tomcat (using Maven AntRun Plugin)
|
||||
1. First copy the file `build.properties.example` to `build.properties`
|
||||
2. Edit the `build.properties` file and put the path to your Tomcat into `deploy.tomcat.dir`.
|
||||
3. Build and deploy the process application using:
|
||||
```bash
|
||||
mvn clean package antrun:run
|
||||
```
|
||||
|
||||
Alternatively, you can also copy the `build.properties` file to `${user.home}/.camunda/build.properties`
|
||||
to have a central configuration that works with all projects generated by the
|
||||
[Camunda Maven Archetypes](http://docs.camunda.org/latest/guides/user-guide/#process-applications-maven-project-templates-archetypes) e.g. the [examples provided by the Camunda Consulting Team](https://github.com/camunda-consulting/code).
|
||||
|
||||
#### Apache Tomcat (using Tomcat Maven Plugin)
|
||||
1. Create a user in Tomcat with the role `manager-script`.
|
||||
2. Add the user's credentials to the `tomcat7-maven-plugin` configuration in the [pom.xml](pom.xml) file.
|
||||
3. Build and deploy the process application using:
|
||||
```bash
|
||||
mvn clean tomcat7:deploy
|
||||
```
|
||||
|
||||
#### Wildfly (using Wildfly Maven Plugin)
|
||||
1. Build and deploy the process application using:
|
||||
```bash
|
||||
mvn clean wildfly:deploy
|
||||
```
|
||||
|
||||
#### JBoss AS7 (using JBoss AS Maven Plugin)
|
||||
1. Build and deploy the process application using:
|
||||
```bash
|
||||
mvn clean jboss-as:deploy
|
||||
```
|
||||
|
||||
#### Ant (and Maven)
|
||||
1. First copy the file `build.properties.example` to `build.properties`
|
||||
2. Edit the `build.properties` file and put the path to your application server inside it.
|
||||
3. Build and deploy the process application using:
|
||||
```bash
|
||||
ant deploy.tomcat
|
||||
```
|
||||
or
|
||||
```bash
|
||||
ant deploy.jboss
|
||||
```
|
||||
|
||||
Alternatively, you can also copy the `build.properties` file to `${user.home}/.camunda/build.properties`
|
||||
to have a central configuration that works with all projects generated by the
|
||||
[Camunda Maven Archetypes](http://docs.camunda.org/latest/guides/user-guide/#process-applications-maven-project-templates-archetypes) e.g. the [examples provided by the Camunda Consulting Team](https://github.com/camunda-consulting/code).
|
||||
|
||||
### Run and Inspect with Tasklist and Cockpit
|
||||
Once you deployed the application you can run it using
|
||||
[Camunda Tasklist](http://docs.camunda.org/latest/guides/user-guide/#tasklist)
|
||||
and inspect it using
|
||||
[Camunda Cockpit](http://docs.camunda.org/latest/guides/user-guide/#cockpit).
|
||||
|
||||
## Environment Restrictions
|
||||
Built and tested against Camunda BPM version 7.11.0.
|
||||
|
||||
## Known Limitations
|
||||
|
||||
## License
|
||||
[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0).
|
||||
|
||||
<!-- HTML snippet for index page
|
||||
<tr>
|
||||
<td><img src="snippets/Rechnungseingang/src/main/resources/process.png" width="100"></td>
|
||||
<td><a href="snippets/Rechnungseingang">Camunda BPM Process Application</a></td>
|
||||
<td>A Process Application for [Camunda BPM](http://docs.camunda.org).</td>
|
||||
</tr>
|
||||
-->
|
||||
<!-- Tweet
|
||||
New @Camunda example: Camunda BPM Process Application - A Process Application for [Camunda BPM](http://docs.camunda.org). https://github.com/camunda-consulting/code/tree/master/snippets/Rechnungseingang
|
||||
-->
|
208
Rechnungseingang/pom.xml
Normal file
208
Rechnungseingang/pom.xml
Normal file
|
@ -0,0 +1,208 @@
|
|||
<?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>com.bpmn</groupId>
|
||||
<artifactId>Rechnungseingang</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
|
||||
<packaging>war</packaging>
|
||||
|
||||
<name>Camunda BPM Process Application</name>
|
||||
<description>A Process Application for [Camunda BPM](http://docs.camunda.org). [The project has been generated by the Maven archetype 'camunda-archetype-servlet-war-7.11.1']</description>
|
||||
|
||||
<properties>
|
||||
<camunda.version>7.11.0</camunda.version>
|
||||
<!--
|
||||
Adjust if you want to use Camunda Enterprise Edition (EE):
|
||||
<camunda.version>7.11.0-ee</camunda.version>
|
||||
Make sure you also switch to EE repository below
|
||||
-->
|
||||
<maven.compiler.source>1.8</maven.compiler.source>
|
||||
<maven.compiler.target>1.8</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<failOnMissingWebXml>false</failOnMissingWebXml>
|
||||
</properties>
|
||||
|
||||
<dependencyManagement>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.camunda.bpm</groupId>
|
||||
<artifactId>camunda-bom</artifactId>
|
||||
<version>${camunda.version}</version>
|
||||
<scope>import</scope>
|
||||
<type>pom</type>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<!-- process engine, needs to be 'provided' because it's already a shared library in the container -->
|
||||
<groupId>org.camunda.bpm</groupId>
|
||||
<artifactId>camunda-engine</artifactId>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<!-- AssertJ Testing Library -->
|
||||
<groupId>org.camunda.bpm.extension</groupId>
|
||||
<artifactId>camunda-bpm-assert</artifactId>
|
||||
<version>1.2</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<!-- Required to use Spin dataformat support in unit tests -->
|
||||
<dependency>
|
||||
<groupId>org.camunda.spin</groupId>
|
||||
<artifactId>camunda-spin-dataformat-all</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.camunda.bpm</groupId>
|
||||
<artifactId>camunda-engine-plugin-spin</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<!-- Required to use Templates in unit tests -->
|
||||
<dependency>
|
||||
<groupId>org.camunda.template-engines</groupId>
|
||||
<artifactId>camunda-template-engines-freemarker</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.camunda.template-engines</groupId>
|
||||
<artifactId>camunda-template-engines-velocity</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>javax.servlet</groupId>
|
||||
<artifactId>javax.servlet-api</artifactId>
|
||||
<version>3.1.0</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>4.12</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<!-- Needed for InMemoryH2Test -->
|
||||
<groupId>com.h2database</groupId>
|
||||
<artifactId>h2</artifactId>
|
||||
<version>1.4.197</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<!-- Used to generate test coverage reports, see https://github.com/camunda/camunda-consulting/tree/master/snippets/camunda-bpm-process-test-coverage -->
|
||||
<groupId>org.camunda.bpm.extension</groupId>
|
||||
<artifactId>camunda-bpm-process-test-coverage</artifactId>
|
||||
<version>0.3.2</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<!-- use logback as logger -->
|
||||
<groupId>ch.qos.logback</groupId>
|
||||
<artifactId>logback-classic</artifactId>
|
||||
<version>1.1.3</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<!-- apache commons logging => slf4j -->
|
||||
<artifactId>jcl-over-slf4j</artifactId>
|
||||
<version>1.7.25</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<!-- java util logging => slf4j -->
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>jul-to-slf4j</artifactId>
|
||||
<version>1.7.25</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<!-- Add your own dependencies here, if in compile scope, they are added to the war -->
|
||||
|
||||
</dependencies>
|
||||
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>camunda-bpm-nexus</id>
|
||||
<name>Camunda Maven Repository</name>
|
||||
<url>https://app.camunda.com/nexus/content/groups/public</url>
|
||||
</repository>
|
||||
<!-- enable this for EE dependencies (requires credentials in ~/.m2/settings.xml)
|
||||
<repository>
|
||||
<id>camunda-bpm-nexus-ee</id>
|
||||
<name>Camunda Enterprise Maven Repository</name>
|
||||
<url>https://app.camunda.com/nexus/content/repositories/camunda-bpm-ee</url>
|
||||
</repository>
|
||||
-->
|
||||
</repositories>
|
||||
|
||||
<build>
|
||||
<finalName>${project.artifactId}</finalName>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<!-- Deploy to Tomcat using: mvn clean package antrun:run
|
||||
Follow the instructions in build.properties.example to make it work!-->
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-antrun-plugin</artifactId>
|
||||
<configuration>
|
||||
<tasks>
|
||||
<ant antfile="${basedir}/build.xml">
|
||||
<target name="copy.war.into.tomcat" />
|
||||
</ant>
|
||||
</tasks>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<!-- Tomcat Maven Plugin
|
||||
|
||||
Deploy to Tomcat using:
|
||||
mvn clean tomcat7:deploy
|
||||
|
||||
Redeploy:
|
||||
mvn clean tomcat7:redeploy
|
||||
|
||||
Undeploy:
|
||||
mvn tomcat7:undeploy
|
||||
|
||||
To use this plugin, add these lines to your tomcat-users.xml: (inside the <tomcat-users>-tag)
|
||||
<role rolename="manager-script"/>
|
||||
<user username="admin" password="admin" roles="manager-script"/>
|
||||
|
||||
-->
|
||||
<plugin>
|
||||
<groupId>org.apache.tomcat.maven</groupId>
|
||||
<artifactId>tomcat7-maven-plugin</artifactId>
|
||||
<version>2.2</version>
|
||||
<configuration>
|
||||
<url>http://localhost:8080/manager/text</url>
|
||||
<username>admin</username>
|
||||
<password>admin</password>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<!-- Deploy to JBoss AS7: mvn clean jboss-as:deploy See also: https://docs.jboss.org/jbossas/7/plugins/maven/latest/examples/deployment-example.html -->
|
||||
<groupId>org.jboss.as.plugins</groupId>
|
||||
<artifactId>jboss-as-maven-plugin</artifactId>
|
||||
<version>7.9.Final</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<!-- Deploy to Wildfly: mvn clean wildfly:deploy See also: https://docs.jboss.org/wildfly/plugins/maven/latest/examples/deployment-example.html -->
|
||||
<groupId>org.wildfly.plugins</groupId>
|
||||
<artifactId>wildfly-maven-plugin</artifactId>
|
||||
<version>1.2.1.Final</version>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
|
@ -0,0 +1,33 @@
|
|||
package com.bpmn.Rechnungseingang;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import org.camunda.bpm.application.PostDeploy;
|
||||
import org.camunda.bpm.application.ProcessApplication;
|
||||
import org.camunda.bpm.application.impl.ServletProcessApplication;
|
||||
import org.camunda.bpm.engine.ProcessEngine;
|
||||
|
||||
/**
|
||||
* Process Application exposing this application's resources the process engine.
|
||||
*/
|
||||
@ProcessApplication
|
||||
public class CamundaBpmProcessApplication extends ServletProcessApplication {
|
||||
|
||||
private static final String PROCESS_DEFINITION_KEY = "Rechnungseingang";
|
||||
|
||||
/**
|
||||
* In a @PostDeploy Hook you can interact with the process engine and access
|
||||
* the processes the application has deployed.
|
||||
*/
|
||||
@PostDeploy
|
||||
public void onDeploymentFinished(ProcessEngine processEngine) {
|
||||
|
||||
// start an initial process instance
|
||||
// Map<String, Object> variables = new HashMap<String, Object>();
|
||||
// variables.put("name", "John");
|
||||
//
|
||||
// processEngine.getRuntimeService().startProcessInstanceByKey(PROCESS_DEFINITION_KEY, variables);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
package com.bpmn.Rechnungseingang;
|
||||
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import org.camunda.bpm.engine.delegate.DelegateExecution;
|
||||
import org.camunda.bpm.engine.delegate.JavaDelegate;
|
||||
|
||||
/**
|
||||
* This is an easy adapter implementation
|
||||
* illustrating how a Java Delegate can be used
|
||||
* from within a BPMN 2.0 Service Task.
|
||||
*/
|
||||
public class LoggerDelegate implements JavaDelegate {
|
||||
|
||||
private final Logger LOGGER = Logger.getLogger(LoggerDelegate.class.getName());
|
||||
|
||||
public void execute(DelegateExecution execution) throws Exception {
|
||||
|
||||
LOGGER.info("\n\n ... LoggerDelegate invoked by "
|
||||
+ "processDefinitionId=" + execution.getProcessDefinitionId()
|
||||
+ ", activtyId=" + execution.getCurrentActivityId()
|
||||
+ ", activtyName='" + execution.getCurrentActivityName() + "'"
|
||||
+ ", processInstanceId=" + execution.getProcessInstanceId()
|
||||
+ ", businessKey=" + execution.getProcessBusinessKey()
|
||||
+ ", executionId=" + execution.getId()
|
||||
+ " \n\n");
|
||||
|
||||
}
|
||||
|
||||
}
|
14
Rechnungseingang/src/main/resources/META-INF/processes.xml
Normal file
14
Rechnungseingang/src/main/resources/META-INF/processes.xml
Normal file
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<process-application
|
||||
xmlns="http://www.camunda.org/schema/1.0/ProcessApplication"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
|
||||
<process-archive>
|
||||
<process-engine>default</process-engine>
|
||||
<properties>
|
||||
<property name="isDeleteUponUndeploy">false</property>
|
||||
<property name="isScanForProcessDefinitions">true</property>
|
||||
</properties>
|
||||
</process-archive>
|
||||
|
||||
</process-application>
|
32
Rechnungseingang/src/main/resources/process.bpmn
Normal file
32
Rechnungseingang/src/main/resources/process.bpmn
Normal file
|
@ -0,0 +1,32 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn">
|
||||
<bpmn:process id="Rechnungseingang" name="Rechnungseingang" isExecutable="true">
|
||||
<bpmn:startEvent id="StartEventProcessStarted" name="Process started">
|
||||
<bpmn:outgoing>SequenceFlow1</bpmn:outgoing>
|
||||
</bpmn:startEvent>
|
||||
<bpmn:endEvent id="EndEventProcessEnded" name="Process ended">
|
||||
<bpmn:incoming>SequenceFlow1</bpmn:incoming>
|
||||
</bpmn:endEvent>
|
||||
<bpmn:sequenceFlow id="SequenceFlow1" sourceRef="StartEventProcessStarted" targetRef="EndEventProcessEnded" />
|
||||
</bpmn:process>
|
||||
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
||||
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Rechnungseingang">
|
||||
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEventProcessStarted">
|
||||
<dc:Bounds x="173" y="102" width="36" height="36" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="EndEvent_0fkea3f_di" bpmnElement="EndEventProcessEnded">
|
||||
<dc:Bounds x="556" y="102" width="36" height="36" />
|
||||
<bpmndi:BPMNLabel>
|
||||
<dc:Bounds x="529" y="138" width="90" height="20" />
|
||||
</bpmndi:BPMNLabel>
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNEdge id="SequenceFlow_08va5r8_di" bpmnElement="SequenceFlow1">
|
||||
<di:waypoint xsi:type="dc:Point" x="209" y="120" />
|
||||
<di:waypoint xsi:type="dc:Point" x="556" y="120" />
|
||||
<bpmndi:BPMNLabel>
|
||||
<dc:Bounds x="337.5" y="110" width="90" height="20" />
|
||||
</bpmndi:BPMNLabel>
|
||||
</bpmndi:BPMNEdge>
|
||||
</bpmndi:BPMNPlane>
|
||||
</bpmndi:BPMNDiagram>
|
||||
</bpmn:definitions>
|
24
Rechnungseingang/src/main/webapp/forms/start-form.html
Normal file
24
Rechnungseingang/src/main/webapp/forms/start-form.html
Normal file
|
@ -0,0 +1,24 @@
|
|||
<strong>Here you would put the actual form to start the process</strong>
|
||||
|
||||
<p>
|
||||
You can use this form through Camunda Tasklist
|
||||
by setting the formKey of a BPMN Start Event to:
|
||||
<code>embedded:app:forms/start-form.html</code>
|
||||
</p>
|
||||
|
||||
<form class="form-horizontal">
|
||||
<div class="form-group">
|
||||
<label class="control-label">Your Name</label>
|
||||
<div class="controls">
|
||||
<input type="text"
|
||||
cam-variable-name="name"
|
||||
cam-variable-type="String"
|
||||
required
|
||||
class="form-control" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script cam-script type="text/form-script">
|
||||
// custom JavaScript goes here
|
||||
</script>
|
||||
</form>
|
33
Rechnungseingang/src/main/webapp/forms/task-form.html
Normal file
33
Rechnungseingang/src/main/webapp/forms/task-form.html
Normal file
|
@ -0,0 +1,33 @@
|
|||
<strong>Here you would put the actual form to work on the task</strong>
|
||||
|
||||
<p>
|
||||
You can use this form through Camunda Tasklist
|
||||
by setting the formKey of a BPMN User Task to:
|
||||
<code>embedded:app:forms/task-form.html</code>
|
||||
</p>
|
||||
|
||||
<form class="form-horizontal">
|
||||
<div class="form-group">
|
||||
<label class="control-label">Name</label>
|
||||
<div class="controls">
|
||||
<input type="text"
|
||||
cam-variable-name="name"
|
||||
readonly="true"
|
||||
class="form-control" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label">Approve?</label>
|
||||
<div class="controls">
|
||||
<input type="checkbox"
|
||||
cam-variable-name="approved"
|
||||
cam-variable-type="Boolean"
|
||||
name="approved"
|
||||
class="form-control" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script cam-script type="text/form-script">
|
||||
// custom JavaScript goes here
|
||||
</script>
|
||||
</form>
|
|
@ -0,0 +1,53 @@
|
|||
package com.bpmn.Rechnungseingang;
|
||||
|
||||
import org.apache.ibatis.logging.LogFactory;
|
||||
import org.camunda.bpm.engine.runtime.ProcessInstance;
|
||||
import org.camunda.bpm.engine.test.ProcessEngineRule;
|
||||
import org.camunda.bpm.extension.process_test_coverage.junit.rules.TestCoverageProcessEngineRuleBuilder;
|
||||
import org.camunda.bpm.engine.test.Deployment;
|
||||
import org.junit.Before;
|
||||
import org.junit.ClassRule;
|
||||
import org.junit.Rule;
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.camunda.bpm.engine.test.assertions.ProcessEngineTests.*;
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
/**
|
||||
* Test case starting an in-memory database-backed Process Engine.
|
||||
*/
|
||||
public class ProcessUnitTest {
|
||||
|
||||
@ClassRule
|
||||
@Rule
|
||||
public static ProcessEngineRule rule = TestCoverageProcessEngineRuleBuilder.create().build();
|
||||
|
||||
private static final String PROCESS_DEFINITION_KEY = "Rechnungseingang";
|
||||
|
||||
static {
|
||||
LogFactory.useSlf4jLogging(); // MyBatis
|
||||
}
|
||||
|
||||
@Before
|
||||
public void setup() {
|
||||
init(rule.getProcessEngine());
|
||||
}
|
||||
|
||||
/**
|
||||
* Just tests if the process definition is deployable.
|
||||
*/
|
||||
@Test
|
||||
@Deployment(resources = "process.bpmn")
|
||||
public void testParsingAndDeployment() {
|
||||
// nothing is done here, as we just want to check for exceptions during deployment
|
||||
}
|
||||
|
||||
@Test
|
||||
@Deployment(resources = "process.bpmn")
|
||||
public void testHappyPath() {
|
||||
//ProcessInstance processInstance = processEngine().getRuntimeService().startProcessInstanceByKey(PROCESS_DEFINITION_KEY);
|
||||
|
||||
// Now: Drive the process by API and assert correct behavior by camunda-bpm-assert
|
||||
}
|
||||
|
||||
}
|
19
Rechnungseingang/src/test/resources/camunda.cfg.xml
Normal file
19
Rechnungseingang/src/test/resources/camunda.cfg.xml
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
|
||||
|
||||
<bean id="processEngineConfiguration" class="org.camunda.bpm.extension.process_test_coverage.junit.rules.ProcessCoverageInMemProcessEngineConfiguration">
|
||||
<property name="history" value="full" />
|
||||
<property name="expressionManager">
|
||||
<bean class="org.camunda.bpm.engine.test.mock.MockExpressionManager"/>
|
||||
</property>
|
||||
<property name="processEnginePlugins">
|
||||
<list>
|
||||
<bean class="org.camunda.spin.plugin.impl.SpinProcessEnginePlugin" />
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
</beans>
|
63
Rechnungseingang/src/test/resources/logback-test.xml
Normal file
63
Rechnungseingang/src/test/resources/logback-test.xml
Normal file
|
@ -0,0 +1,63 @@
|
|||
<configuration>
|
||||
|
||||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<!-- encoders are assigned the type
|
||||
ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
|
||||
<encoder>
|
||||
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<logger name="org.apache.ibatis" level="info" />
|
||||
<!--
|
||||
<logger name="org.apache.ibatis" level="DEBUG"/>
|
||||
-->
|
||||
|
||||
<logger name="javax.activation" level="info" />
|
||||
|
||||
<logger name="org.springframework" level="info" />
|
||||
|
||||
<logger name="org.camunda" level="info" />
|
||||
<!--
|
||||
<logger name="org.camunda" level="DEBUG"/>
|
||||
-->
|
||||
|
||||
<logger name="org.camunda.bpm.engine.test" level="debug" />
|
||||
|
||||
<!--
|
||||
<logger name="org.camunda.bpm.engine.bpmn.parser" level="debug" />
|
||||
<logger name="org.camunda.bpm.engine.bpmn.behavior" level="debug" />
|
||||
|
||||
<logger name="org.camunda.bpm.engine.cmmn.transformer" level="debug" />
|
||||
<logger name="org.camunda.bpm.engine.cmmn.behavior" level="debug" />
|
||||
<logger name="org.camunda.bpm.engine.cmmn.operation" level="debug" />
|
||||
|
||||
<logger name="org.camunda.bpm.engine.cmd" level="debug" />
|
||||
<logger name="org.camunda.bpm.engine.persistence" level="debug" />
|
||||
<logger name="org.camunda.bpm.engine.impl.persistence.entity" level="debug" />
|
||||
<logger name="org.camunda.bpm.engine.impl.history.event" level="debug" />
|
||||
<logger name="org.camunda.bpm.engine.impl.batch.history" level="debug" />
|
||||
<logger name="org.camunda.bpm.engine.impl.batch" level="debug" />
|
||||
<logger name="org.camunda.bpm.engine.history" level="debug" />
|
||||
<logger name="org.camunda.bpm.engine.impl.cmmn.entity.repository" level="debug" />
|
||||
<logger name="org.camunda.bpm.engine.impl.cmmn.entity.runtime" level="debug" />
|
||||
<logger name="org.camunda.bpm.engine.impl.dmn.entity.repository" level="debug" />
|
||||
<logger name="org.camunda.bpm.engine.tx" level="debug" />
|
||||
<logger name="org.camunda.bpm.engine.cfg" level="debug" />
|
||||
<logger name="org.camunda.bpm.engine.jobexecutor" level="debug" />
|
||||
<logger name="org.camunda.bpm.engine.context" level="debug" />
|
||||
<logger name="org.camunda.bpm.engine.core" level="debug" />
|
||||
<logger name="org.camunda.bpm.engine.pvm" level="debug" />
|
||||
|
||||
<logger name="org.camunda.bpm.engine.metrics" level="debug" />
|
||||
<logger name="org.camunda.bpm.engine.util" level="debug" />
|
||||
|
||||
<logger name="org.camunda.bpm.application" level="debug" />
|
||||
<logger name="org.camunda.bpm.container" level="debug" />
|
||||
-->
|
||||
|
||||
<root level="debug">
|
||||
<appender-ref ref="STDOUT" />
|
||||
</root>
|
||||
|
||||
</configuration>
|
2
Rechnungseingang/src/test/resources/logging.properties
Normal file
2
Rechnungseingang/src/test/resources/logging.properties
Normal file
|
@ -0,0 +1,2 @@
|
|||
#register SLF4JBridgeHandler as handler for the j.u.l. root logger
|
||||
handlers = org.slf4j.bridge.SLF4JBridgeHandler
|
14
Rechnungseingang/target/classes/META-INF/processes.xml
Normal file
14
Rechnungseingang/target/classes/META-INF/processes.xml
Normal file
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<process-application
|
||||
xmlns="http://www.camunda.org/schema/1.0/ProcessApplication"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
|
||||
<process-archive>
|
||||
<process-engine>default</process-engine>
|
||||
<properties>
|
||||
<property name="isDeleteUponUndeploy">false</property>
|
||||
<property name="isScanForProcessDefinitions">true</property>
|
||||
</properties>
|
||||
</process-archive>
|
||||
|
||||
</process-application>
|
Binary file not shown.
Binary file not shown.
32
Rechnungseingang/target/classes/process.bpmn
Normal file
32
Rechnungseingang/target/classes/process.bpmn
Normal file
|
@ -0,0 +1,32 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn">
|
||||
<bpmn:process id="Rechnungseingang" name="Rechnungseingang" isExecutable="true">
|
||||
<bpmn:startEvent id="StartEventProcessStarted" name="Process started">
|
||||
<bpmn:outgoing>SequenceFlow1</bpmn:outgoing>
|
||||
</bpmn:startEvent>
|
||||
<bpmn:endEvent id="EndEventProcessEnded" name="Process ended">
|
||||
<bpmn:incoming>SequenceFlow1</bpmn:incoming>
|
||||
</bpmn:endEvent>
|
||||
<bpmn:sequenceFlow id="SequenceFlow1" sourceRef="StartEventProcessStarted" targetRef="EndEventProcessEnded" />
|
||||
</bpmn:process>
|
||||
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
||||
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Rechnungseingang">
|
||||
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEventProcessStarted">
|
||||
<dc:Bounds x="173" y="102" width="36" height="36" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="EndEvent_0fkea3f_di" bpmnElement="EndEventProcessEnded">
|
||||
<dc:Bounds x="556" y="102" width="36" height="36" />
|
||||
<bpmndi:BPMNLabel>
|
||||
<dc:Bounds x="529" y="138" width="90" height="20" />
|
||||
</bpmndi:BPMNLabel>
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNEdge id="SequenceFlow_08va5r8_di" bpmnElement="SequenceFlow1">
|
||||
<di:waypoint xsi:type="dc:Point" x="209" y="120" />
|
||||
<di:waypoint xsi:type="dc:Point" x="556" y="120" />
|
||||
<bpmndi:BPMNLabel>
|
||||
<dc:Bounds x="337.5" y="110" width="90" height="20" />
|
||||
</bpmndi:BPMNLabel>
|
||||
</bpmndi:BPMNEdge>
|
||||
</bpmndi:BPMNPlane>
|
||||
</bpmndi:BPMNDiagram>
|
||||
</bpmn:definitions>
|
|
@ -0,0 +1,5 @@
|
|||
Manifest-Version: 1.0
|
||||
Built-By: Lukas
|
||||
Build-Jdk: 1.8.0_241
|
||||
Created-By: Maven Integration for Eclipse
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
#Generated by Maven Integration for Eclipse
|
||||
#Thu May 21 16:42:00 CEST 2020
|
||||
version=0.0.1-SNAPSHOT
|
||||
groupId=com.bpmn
|
||||
m2e.projectName=Rechnungseingang
|
||||
m2e.projectLocation=C\:\\Users\\Lukas\\Desktop\\6 Semester - Seminararbeit\\Rechnungseingang
|
||||
artifactId=Rechnungseingang
|
|
@ -0,0 +1,208 @@
|
|||
<?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>com.bpmn</groupId>
|
||||
<artifactId>Rechnungseingang</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
|
||||
<packaging>war</packaging>
|
||||
|
||||
<name>Camunda BPM Process Application</name>
|
||||
<description>A Process Application for [Camunda BPM](http://docs.camunda.org). [The project has been generated by the Maven archetype 'camunda-archetype-servlet-war-7.11.1']</description>
|
||||
|
||||
<properties>
|
||||
<camunda.version>7.11.0</camunda.version>
|
||||
<!--
|
||||
Adjust if you want to use Camunda Enterprise Edition (EE):
|
||||
<camunda.version>7.11.0-ee</camunda.version>
|
||||
Make sure you also switch to EE repository below
|
||||
-->
|
||||
<maven.compiler.source>1.8</maven.compiler.source>
|
||||
<maven.compiler.target>1.8</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<failOnMissingWebXml>false</failOnMissingWebXml>
|
||||
</properties>
|
||||
|
||||
<dependencyManagement>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.camunda.bpm</groupId>
|
||||
<artifactId>camunda-bom</artifactId>
|
||||
<version>${camunda.version}</version>
|
||||
<scope>import</scope>
|
||||
<type>pom</type>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<!-- process engine, needs to be 'provided' because it's already a shared library in the container -->
|
||||
<groupId>org.camunda.bpm</groupId>
|
||||
<artifactId>camunda-engine</artifactId>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<!-- AssertJ Testing Library -->
|
||||
<groupId>org.camunda.bpm.extension</groupId>
|
||||
<artifactId>camunda-bpm-assert</artifactId>
|
||||
<version>1.2</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<!-- Required to use Spin dataformat support in unit tests -->
|
||||
<dependency>
|
||||
<groupId>org.camunda.spin</groupId>
|
||||
<artifactId>camunda-spin-dataformat-all</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.camunda.bpm</groupId>
|
||||
<artifactId>camunda-engine-plugin-spin</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<!-- Required to use Templates in unit tests -->
|
||||
<dependency>
|
||||
<groupId>org.camunda.template-engines</groupId>
|
||||
<artifactId>camunda-template-engines-freemarker</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.camunda.template-engines</groupId>
|
||||
<artifactId>camunda-template-engines-velocity</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>javax.servlet</groupId>
|
||||
<artifactId>javax.servlet-api</artifactId>
|
||||
<version>3.1.0</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>4.12</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<!-- Needed for InMemoryH2Test -->
|
||||
<groupId>com.h2database</groupId>
|
||||
<artifactId>h2</artifactId>
|
||||
<version>1.4.197</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<!-- Used to generate test coverage reports, see https://github.com/camunda/camunda-consulting/tree/master/snippets/camunda-bpm-process-test-coverage -->
|
||||
<groupId>org.camunda.bpm.extension</groupId>
|
||||
<artifactId>camunda-bpm-process-test-coverage</artifactId>
|
||||
<version>0.3.2</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<!-- use logback as logger -->
|
||||
<groupId>ch.qos.logback</groupId>
|
||||
<artifactId>logback-classic</artifactId>
|
||||
<version>1.1.3</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<!-- apache commons logging => slf4j -->
|
||||
<artifactId>jcl-over-slf4j</artifactId>
|
||||
<version>1.7.25</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<!-- java util logging => slf4j -->
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>jul-to-slf4j</artifactId>
|
||||
<version>1.7.25</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<!-- Add your own dependencies here, if in compile scope, they are added to the war -->
|
||||
|
||||
</dependencies>
|
||||
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>camunda-bpm-nexus</id>
|
||||
<name>Camunda Maven Repository</name>
|
||||
<url>https://app.camunda.com/nexus/content/groups/public</url>
|
||||
</repository>
|
||||
<!-- enable this for EE dependencies (requires credentials in ~/.m2/settings.xml)
|
||||
<repository>
|
||||
<id>camunda-bpm-nexus-ee</id>
|
||||
<name>Camunda Enterprise Maven Repository</name>
|
||||
<url>https://app.camunda.com/nexus/content/repositories/camunda-bpm-ee</url>
|
||||
</repository>
|
||||
-->
|
||||
</repositories>
|
||||
|
||||
<build>
|
||||
<finalName>${project.artifactId}</finalName>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<!-- Deploy to Tomcat using: mvn clean package antrun:run
|
||||
Follow the instructions in build.properties.example to make it work!-->
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-antrun-plugin</artifactId>
|
||||
<configuration>
|
||||
<tasks>
|
||||
<ant antfile="${basedir}/build.xml">
|
||||
<target name="copy.war.into.tomcat" />
|
||||
</ant>
|
||||
</tasks>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<!-- Tomcat Maven Plugin
|
||||
|
||||
Deploy to Tomcat using:
|
||||
mvn clean tomcat7:deploy
|
||||
|
||||
Redeploy:
|
||||
mvn clean tomcat7:redeploy
|
||||
|
||||
Undeploy:
|
||||
mvn tomcat7:undeploy
|
||||
|
||||
To use this plugin, add these lines to your tomcat-users.xml: (inside the <tomcat-users>-tag)
|
||||
<role rolename="manager-script"/>
|
||||
<user username="admin" password="admin" roles="manager-script"/>
|
||||
|
||||
-->
|
||||
<plugin>
|
||||
<groupId>org.apache.tomcat.maven</groupId>
|
||||
<artifactId>tomcat7-maven-plugin</artifactId>
|
||||
<version>2.2</version>
|
||||
<configuration>
|
||||
<url>http://localhost:8080/manager/text</url>
|
||||
<username>admin</username>
|
||||
<password>admin</password>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<!-- Deploy to JBoss AS7: mvn clean jboss-as:deploy See also: https://docs.jboss.org/jbossas/7/plugins/maven/latest/examples/deployment-example.html -->
|
||||
<groupId>org.jboss.as.plugins</groupId>
|
||||
<artifactId>jboss-as-maven-plugin</artifactId>
|
||||
<version>7.9.Final</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<!-- Deploy to Wildfly: mvn clean wildfly:deploy See also: https://docs.jboss.org/wildfly/plugins/maven/latest/examples/deployment-example.html -->
|
||||
<groupId>org.wildfly.plugins</groupId>
|
||||
<artifactId>wildfly-maven-plugin</artifactId>
|
||||
<version>1.2.1.Final</version>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
19
Rechnungseingang/target/test-classes/camunda.cfg.xml
Normal file
19
Rechnungseingang/target/test-classes/camunda.cfg.xml
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
|
||||
|
||||
<bean id="processEngineConfiguration" class="org.camunda.bpm.extension.process_test_coverage.junit.rules.ProcessCoverageInMemProcessEngineConfiguration">
|
||||
<property name="history" value="full" />
|
||||
<property name="expressionManager">
|
||||
<bean class="org.camunda.bpm.engine.test.mock.MockExpressionManager"/>
|
||||
</property>
|
||||
<property name="processEnginePlugins">
|
||||
<list>
|
||||
<bean class="org.camunda.spin.plugin.impl.SpinProcessEnginePlugin" />
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
</beans>
|
Binary file not shown.
63
Rechnungseingang/target/test-classes/logback-test.xml
Normal file
63
Rechnungseingang/target/test-classes/logback-test.xml
Normal file
|
@ -0,0 +1,63 @@
|
|||
<configuration>
|
||||
|
||||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<!-- encoders are assigned the type
|
||||
ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
|
||||
<encoder>
|
||||
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<logger name="org.apache.ibatis" level="info" />
|
||||
<!--
|
||||
<logger name="org.apache.ibatis" level="DEBUG"/>
|
||||
-->
|
||||
|
||||
<logger name="javax.activation" level="info" />
|
||||
|
||||
<logger name="org.springframework" level="info" />
|
||||
|
||||
<logger name="org.camunda" level="info" />
|
||||
<!--
|
||||
<logger name="org.camunda" level="DEBUG"/>
|
||||
-->
|
||||
|
||||
<logger name="org.camunda.bpm.engine.test" level="debug" />
|
||||
|
||||
<!--
|
||||
<logger name="org.camunda.bpm.engine.bpmn.parser" level="debug" />
|
||||
<logger name="org.camunda.bpm.engine.bpmn.behavior" level="debug" />
|
||||
|
||||
<logger name="org.camunda.bpm.engine.cmmn.transformer" level="debug" />
|
||||
<logger name="org.camunda.bpm.engine.cmmn.behavior" level="debug" />
|
||||
<logger name="org.camunda.bpm.engine.cmmn.operation" level="debug" />
|
||||
|
||||
<logger name="org.camunda.bpm.engine.cmd" level="debug" />
|
||||
<logger name="org.camunda.bpm.engine.persistence" level="debug" />
|
||||
<logger name="org.camunda.bpm.engine.impl.persistence.entity" level="debug" />
|
||||
<logger name="org.camunda.bpm.engine.impl.history.event" level="debug" />
|
||||
<logger name="org.camunda.bpm.engine.impl.batch.history" level="debug" />
|
||||
<logger name="org.camunda.bpm.engine.impl.batch" level="debug" />
|
||||
<logger name="org.camunda.bpm.engine.history" level="debug" />
|
||||
<logger name="org.camunda.bpm.engine.impl.cmmn.entity.repository" level="debug" />
|
||||
<logger name="org.camunda.bpm.engine.impl.cmmn.entity.runtime" level="debug" />
|
||||
<logger name="org.camunda.bpm.engine.impl.dmn.entity.repository" level="debug" />
|
||||
<logger name="org.camunda.bpm.engine.tx" level="debug" />
|
||||
<logger name="org.camunda.bpm.engine.cfg" level="debug" />
|
||||
<logger name="org.camunda.bpm.engine.jobexecutor" level="debug" />
|
||||
<logger name="org.camunda.bpm.engine.context" level="debug" />
|
||||
<logger name="org.camunda.bpm.engine.core" level="debug" />
|
||||
<logger name="org.camunda.bpm.engine.pvm" level="debug" />
|
||||
|
||||
<logger name="org.camunda.bpm.engine.metrics" level="debug" />
|
||||
<logger name="org.camunda.bpm.engine.util" level="debug" />
|
||||
|
||||
<logger name="org.camunda.bpm.application" level="debug" />
|
||||
<logger name="org.camunda.bpm.container" level="debug" />
|
||||
-->
|
||||
|
||||
<root level="debug">
|
||||
<appender-ref ref="STDOUT" />
|
||||
</root>
|
||||
|
||||
</configuration>
|
2
Rechnungseingang/target/test-classes/logging.properties
Normal file
2
Rechnungseingang/target/test-classes/logging.properties
Normal file
|
@ -0,0 +1,2 @@
|
|||
#register SLF4JBridgeHandler as handler for the j.u.l. root logger
|
||||
handlers = org.slf4j.bridge.SLF4JBridgeHandler
|
Loading…
Reference in a new issue