Common DB for activiti-app and activiti-rest?

cancel
Showing results for 
Search instead for 
Did you mean: 
nbppp2
Member II

Re: Common DB for activiti-app and activiti-rest?

Jump to solution

First of all, thank you for the help. 

Secondly I copied over the MySQL connector, and activiti-rest launches. However I still can't seem to get the same data via the web editor and the REST API. I am still just getting only demo data from the REST API, the process I created via the web editor is not listed when I go to http://localhost:8080/activiti-rest/service/repository/process-definitions.

Looking at the DB I see the data in 2 different tables. act_de_models and act_re_models. 

Is there some additional configuration needed to have them use the same tables?

daisuke-yoshimo
Senior Member

Re: Common DB for activiti-app and activiti-rest?

Jump to solution

> However I still can't seem to get the same data via the web editor and the REST API.
> I am still just getting only demo data from the REST API, the process I created via the web editor is not listed when I go to http://localhost:8080/activiti-rest/service/repository/process-definitions.

Have you published your app(inclued your models)?
The REST API that you used is to get process definitions that deployed in process engine.

If you haven't published, you cannot get your models from the REST API(service/repository/process-definitions).

upliu
Member II

Re: Common DB for activiti-app and activiti-rest?

Jump to solution

hello, i copied webapps\activiti-app\WEB-INF\lib\mysql-connector-java-5.1.30.jar to webapps\activiti-rest\WEB-INF\lib\ 

I also copied webapps\activiti-app\WEB-INF\lib\mysql-connector-java-5.1.30.jar to tomcat\lib.

It show me "  java.lang.ClassNotFoundException: com.mysql.jdbc.Driver  ".

Can u help me? thanks