Our software uses:
Java 8
WildFly 19 (to host our software as a webapp)
Hibernate Framework (DB)
Camunda (workflows)
What we’re trying to do:
Execute processes on other machines that have a Camunda engine
Problem we’re facing:
Our processes are not running on computers other than the main one. We have added the other engines to our standalone-full.xml files, but all processes are executing on the main machine. The “service tasks” are mentioned in the other installations’ DB, so we know it’s able to connect to their DB, but it’s just not running any processes on them.
We would like to know if there’s a specific java method needed to run a service task remotely, if our standalone-full.xml files need tweaking, or if Camunda is just unable to run processes on other installations.
This is not a firewall related issue as we have the domain firewall disabled. It’s also not an issue with our code as it’s able to call service tasks on the main machine, just not on other machines.
**The main installation's standalone-full.xml process engines section:**
<subsystem xmlns="urn:org.camunda.bpm.jboss:1.1">
<process-engines>
<process-engine name="ITI101088" default="true">
<datasource>java:jboss/dexdxsDS</datasource>
<history-level>full</history-level>
<properties>
<property name="jobExecutorAcquisitionName">
default
</property>
<property name="isAutoSchemaUpdate">
false
</property>
<property name="authorizationEnabled">
true
</property>
<property name="jobExecutorDeploymentAware">
false
</property>
<property name="userResourceWhitelistPattern">
\S.*
</property>
<property name="historyCleanupBatchWindowStartTime">
00:01
</property>
<property name="jobExecutorActivate">
true
</property>
<property name="jdbcBatchProcessing">
true
</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-engine name="dexwin10" default="false">
<datasource>java:jboss/dexdtsDS</datasource>
<history-level>full</history-level>
<properties>
<property name="jobExecutorAcquisitionName">
default
</property>
<property name="isAutoSchemaUpdate">
true
</property>
<property name="authorizationEnabled">
false
</property>
<property name="jobExecutorDeploymentAware">
true
</property>
<property name="userResourceWhitelistPattern">
\S.*
</property>
<property name="historyCleanupBatchWindowStartTime">
00:01
</property>
<property name="jobExecutorActivate">
true
</property>
<property name="jdbcBatchProcessing">
true
</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>
The other installation's standalone-full.xml process engines section:
<subsystem xmlns="urn:org.camunda.bpm.jboss:1.1">
<process-engines>
<process-engine name="dexwin10" default="true">
<datasource>java:jboss/dexdtsDS</datasource>
<history-level>full</history-level>
<properties>
<property name="jobExecutorAcquisitionName">
default
</property>
<property name="isAutoSchemaUpdate">
false
</property>
<property name="authorizationEnabled">
true
</property>
<property name="jobExecutorDeploymentAware">
false
</property>
<property name="userResourceWhitelistPattern">
\S.*
</property>
<property name="historyCleanupBatchWindowStartTime">
00:01
</property>
<property name="jobExecutorActivate">
true
</property>
<property name="jdbcBatchProcessing">
true
</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>