How to configure Activiti Explorer and REST to use the same database
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2013 02:23 PM
As a test, I started some processes in Explorer and tried to list them using the REST API, but active processes list, deployments and tasks method calls return empty. Using the REST API, I removed Gonzo from the Marketing group, but in Explorer Gonzo is still in it.
Is there a way in which I can tell Explorer and the REST API to use the very same H2 database? Or do I have to use a persistent one (Postgre, Oracle, MySQL…)?
Thanks in advance!
- Labels:
-
Archive

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-26-2013 12:04 AM
Running H2 in server mode did the trick though.
- To run in server mode, locate the jar and issue a command like: <code> java -cp h2-1.3.171.jar org.h2.tools.Server -tcpPort 2962</code>. (The port number appeared to vary on each run, so I gave it a fixed port.)
- Update the JDBC urls in the db.properties files for both web apps. <code>jdbc.url=jdbc:h2:tcp://localhost:2962/~/test</code> (if the server binds to a specific IP address, you may need to use that)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-28-2013 05:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2014 07:22 AM
I am trying to do the same thing but with a MySQL database.
Both my db.properties file for the activiti-explorer and activiti-rest look like this:
db=mysql
jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/activiti
jdbc.username={mysql user}
jdbc.password={mysql password}
Any chance you could provide a guide on how to configure them to see the same MySQL database.
Sorry for the trouble and thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-17-2014 05:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2014 03:27 AM
Thanks for the reply. The configuration is working, I just wanted to make sure I understood correctly as am new at Activiti.
Once again, thanks for the kind help.
Regards

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2015 02:34 PM
I’ve created a sample process(with just 2 user tasks in sequence) and deployed through REST and all the REST API calls work fine. When I deploy the activiti explorer war along with the REST(both pointing to same DB), I could see the process and the tasks in the explorer. However, if I the restart the server, it’s not persisting the state of the process instance. For example, if I complete task1 and restart the server, it doesn’t show that instance nor task2 anymore. However, it works fine with just the rest.
Can someone please let me know if I missed configuring something?
Thanks!
Feroz.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-13-2015 06:22 AM
By default activity is configured in memory DB.
If you want to persist state, configure another data source to store the data.
Regards
Martin

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-13-2015 09:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2015 07:08 AM
