This is supplementary code to the tutorial on how to setup multi-tenancy by using one process engine and one database schema per tenant. Find the documentation on docs.camunda.org.
The test class ProcessIntegrationTest uses Arquillian to verify the behavior.
Follow the steps to run the test:
- download the Camunda BPM JBoss distribution
- replace the
camunda-bpm-jboss-{version}/server/jboss-as-{version}/standalone/configuration/standalone.xml
with- standalone.xml (two schemas - requires manual schema creation) or
- standalone_test.xml (two databases - auto schema creation)
- start the server using the script
camunda-bpm-jboss-{version}/start-camunda.bat
- go to project directory and run the test with the Maven command
mvn test