Hello Everyone,
I’ve been trying several times to create a camunda BPMN process that includes “META-INF” folder and processes.xml file through eclipse.
I’m actually using Maven inside eclipse to manage project dependencies.
So you could ask me: Why do you need a BPMN Process with processes.xml file.
In fact, I need this because my BPMN process starts automatically by a timer cycle that will run from X to X time.
If camunda goes down, for some reason, we want to keep this timer and not to restart it (this way we will lose track of everything that were counting previously).
By searching information on the internet I have found information about how to setup a java project for BPMN 2.0.
Every step of this tutorial goes well, the “.jar” file is created inside target folder and it’s build compiles successfully.
The problem arrives when i try to use this previous generated “.jar” file.
I have downloaded camunda community in order to host it in my local computer.
I already tried to copy that “.jar” file to “Root_Camunda_Folder”/internal/webapps and also to “example” folder.
Nothing happens and when i launch camunda and access it through localhost:8080, the process doesn’t show up.
Also I think that I’m using springboot version of camunda (community open source version downloaded from their website)
Am I Processing: bpmnprocesstest.7z…
missing some configuration that is needed on local camunda instance, to read the new BPMN Process .jar file?
Have you experienced this before?
Extra Information:
My pom.xml file:
<?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.camunda.bpmnprocesstest</groupId>
<artifactId>bpmnprocesstest</artifactId>
<version>0.1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<properties>
<camunda.version>7.16.0</camunda.version>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</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>
<groupId>org.camunda.bpm</groupId>
<artifactId>camunda-engine</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.3</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
</plugins>
</build>
</project>
Processes.xml file
<?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>
Java Class:
package com.org.camunda.bpmnprocesstest;
import org.camunda.bpm.application.ProcessApplication;
import org.camunda.bpm.application.impl.ServletProcessApplication;
@ProcessApplication("bpmnprocesstest")
public class StartClass extends ServletProcessApplication {
// empty implementation
}
bpmnprocesstest.bpmn (3.0 KB)