If someone wants to merge the activiti-explorer and activiti-rest web application of Activiti 5.22, than this blog would be very useful for them.
There are few steps to deploy both web application together on a single process engine so that they can share database on single engine.
I have found other approach on web to merge both the webs manually. As per my understanding it's a little bit challenging and not recommended for production environment.
I have used below setups.
Steps are:
Testing Steps:
Thanks
Ratik Singhal
There are few steps to deploy both web application together on a single process engine so that they can share database on single engine.
I have found other approach on web to merge both the webs manually. As per my understanding it's a little bit challenging and not recommended for production environment.
I have used below setups.
- Apache tomcat 8.0.27
- MySql
- Activiti 5.22.0
Steps are:
- Create Database in MySql (e.g activiti_exp_rest)
- In new instance of tomcat, put a Activti-explorer war in webapps folder of Tomcat
- Start the tomcat and monitor the logs.
- Shutdown the Server
- Now go to [Tomcat]/webapps/activiti-rest/WEB-INF/classes and open files db.properties and activiti-custom-context.xml
- In file db.properties, add the entry related to created db.
- In file activiti-custom-context.xml, un-comment the beans to register dbProperties, datasource, transcationManager, processEngineConfiguration, processEngine and other services too.
- Add the DB dialect in Tomcat]/lib
- Start the tomcat and monitor the logs. Server should start without any problem.
- Now to Deploy Activit-Rest on same server, Shutdown server again.
- Put a Activti-restwar in webapps folder of Tomcat
- Repeat steps 3,4 and 5
- Now open file engine.properties from [Tomcat]/webapps/webapps/activiti-rest/WEB-INF folder
- We don't need to create again demo properties, make those false.
- Start the tomcat and monitor the logs.
- Deployed a process using REST API
- Verified in Activiti-Explorer UI
- Verified in databases tables.
Thanks
Ratik Singhal
this is perfect just for test, but what about with a expressions on BPM like custom Java service invoked directly in task from BPM?
ReplyDeleteThis case just share database but not context to both application