Marc Rufer bio photo

Marc Rufer

Software engineer
@d-fens GmbH

Twitter LinkedIn Github Stackoverflow
RSS Feed

Limitations when running Activiti in H2 Embedded Mode

Marc Rufer 16 Jun 2015 Activiti development

While playing around with the docker image eternnoir/activiti I had some troubles accessing deployments, process instances and other data created in activiti explorer over the REST endpoint. It took me some time to find out why the data from explorer was not accessible over REST.

If nothing else specified activiti runs with an embedded H2 database. For playing around and trying out I supposed running activiti with the H2 embedded database would be fine. This assumption was wrong for my case. I wanted to create and deploy a process with activiti explorer and then start it over the REST api. The REST api and the activiti explorer are two different war files, which will be deployed on a websever (i.e. Tomcat). Here comes the problem. When running acitivi in H2 embedded mode the REST api service and the activiti explorer will have their own H2 database instance with different data stored in it. The reason for that behaviour is, that H2 database in embedded mode only allows one connection at the same time. To test my case I had to connect both services to an external mysql database. The docker image I used allowed to connect the activiti container to a mysql container (For more details have a look at the manual). After connecting activiti with mysql I could access the processes designed in activiti explorer over the REST api.

comments powered by Disqus

Posts

HOWTO Access Azure File Share in PowerShell Script executed by a Scheduled Task BUG "Task Scheduler service is not available" Error, if specifying Network Connection Condition HOWTO Sync OneDrive on Server even if Windows User not logged in HOWTO Access Microsoft Access Database with PowerShell Get NetworkCredential from PSCredential splits Username into Username and Domain HOWTO Create LocalDB File (.mdf) manually in Visual Studio 2015 HOWTO Set Cookie Header on DefaultRequestHeaders of HttpClient HOWTO Set up PowerShell Remote Session Configuration HOWTO Analyze PowerShell Scripts with PSScriptAnalyzer HOWTO Sign PDF with SuisseID NoBrainer PUT/PATCH/MERGE with OData Service Client Apply Commit from one Repository to another GitHub Repository creation with PowerShell HOWTO Sign PowerShell Script with SuisseID Swissunihockey game schedule PDF generator HOWTO Maven Release on JetBrains TeamCity Limitations when running Activiti in H2 Embedded Mode HOWTO Pylint Integration in IntelliJ 14 HOWTO Install Windows 10 IoT Core on Raspberry PI 2 from a VM First steps with Dropwizard Allman code style for IntelliJ First steps with Flyway IntelliJ - Setup custom inspection profiles Configuration properties meta-data support in IntelliJ AMQP Integration with spring integration OCA Java SE 7 Programmer I Certification Guide Swissunihockey key matcher Swisscom SMS-API-Client Some hints concerning logging with Log4j IFTTT A brilliant service Run deltacloud on a VirtualBox-VM Project specific maven settings in IntelliJ AngularJS Javascript for beginners Liferay in Action