I got this error when trying to deploy bpmn using rest API. I followed the tutorial below
Please help. Thank you
Please help. Thank you
@allnomigid which camunda version are you using? What are the dependencies added in the classpath?
I use camunda 7.13.0
Here is my pom.xml
4.0.0
<groupId>org.camunda.bpm.getstarted</groupId>
<artifactId>charge-card-worker</artifactId>
<version>0.0.1-SNAPSHOT</version>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>org.camunda.bpm</groupId>
<artifactId>camunda-external-task-client</artifactId>
<version>1.3.1</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.6.1</version>
</dependency>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
</dependency>
</dependencies>
I am getting the same issue with Camunda version 7.14.0, I have deployed this camunda-engine-rest-7.14.0-wildfly.war, but getting the following response
{
âtypeâ: âInvalidRequestExceptionâ,
âmessageâ: âNo process engine availableâ
}
What request are you making?
I am making this request http://localhost:8080/engine-rest/engine/default/process-definition.
I have also installed camunda-bpm-wildfly-7-3 when running the ./start-camunda.sh script then above endpoint works fine.
But when I have deployed the camunda-engine-rest-7.14.0.war running in the wildflyâs deployment folder embedded in the Vagrant then getting the error
Have added this in the standalone.xml
<subsystem xmlns="urn:org.camunda.bpm.jboss:1.1">
<process-engines>
<process-engine name="default" default="true">
<datasource>java:jboss/datasources/ProcessEngine</datasource>
<history-level>full</history-level>
<properties>
<property name="jobExecutorAcquisitionName">default</property>
<property name="isAutoSchemaUpdate">true</property>
<property name="authorizationEnabled">true</property>
<property name="jobExecutorDeploymentAware">true</property>
<property name="historyCleanupBatchWindowStartTime">00:01</property>
</properties>
<plugins>
<plugin>
<class>org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerPlugin</class>
</plugin>
<plugin>
<class>org.camunda.spin.plugin.impl.SpinProcessEnginePlugin</class>
</plugin>
<plugin>
<class>org.camunda.connect.plugin.impl.ConnectProcessEnginePlugin</class>
</plugin>
</plugins>
</process-engine>
</process-engines>
<job-executor>
<core-threads>3</core-threads>
<max-threads>5</max-threads>
<queue-length>10</queue-length>
<job-acquisitions>
<job-acquisition name="default">
<properties>
<property name="lockTimeInMillis">300000</property>
<property name="waitTimeInMillis">5000</property>
<property name="maxJobsPerAcquisition">3</property>
</properties>
</job-acquisition>
</job-acquisitions>
</job-executor>
</subsystem>
What if instead of that you try:
http://localhost:8080/engine-rest/process-definition
With just http://localhost:8080/engine-rest/process-definition getting this error:
{
âtypeâ: âNotFoundExceptionâ,
âmessageâ: âRESTEASY003210: Could not find resource for full path: http://localhost:8080/engine-rest/engine/process-definitionâ
}
tried to add some more stuffs in the standalone.xml but now getting this error:
10:17:04,517 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation (âaddâ) failed - address: ([
(âsubsystemâ => âcamunda-bpm-platformâ),
(âprocess-enginesâ => âdefaultâ)
]) - failure description: {
âWFLYCTL0412: Required services that are not installed:â => [
âorg.camunda.bpm.platform.executor-serviceâ,
âjboss.naming.context.java.âDS.workmanagementââ,
âorg.camunda.bpm.platform.job-executor.defaultâ
],
âWFLYCTL0180: Services with missing/unavailable dependenciesâ => [âorg.camunda.bpm.platform.process-engine.default is missing [org.camunda.bpm.platform.executor-service, jboss.naming.context.java.âDS.workmanagementâ, org.camunda.bpm.platform.job-executor.default]â]
I had same scenario EXCEPT, I was using process engine name and not âdefaultâ. After lot of reading and suggestions, I could able to get it with below url
http://localhost:8080/commercial-banking/engine-rest/engine/${engineNameInProcessXML}/variable-instance/count?variableValues=name_eq_pramod
If you have process engine name other than default then syntaxt is
GET host/context-path(if any)/engine-rest/engine/${enginename}/api_url