cancel
Showing results for 
Search instead for 
Did you mean: 

Deployment of Activiti Engine with REST API in spring

rohitdev
Champ in-the-making
Champ in-the-making
Hi,
I intend to deploy Activiti(5.7) as an embedded workflow engine.
The following is how my architecture looks like.
I will have a Spring container(we have a standalone app) in which i would be plugging in Jetty,CXF,Activiti(with external DB).
All the 3 component will be initialised as & when needed.I don't want an OSGi/etc. deployment container, i would take care of them as beans & use Spring lifecycle to control the respective beans

Now how do i expose Activiti as an REST api from within an Spring container.I read in the documentation
"Instead of making sure that all process engines have all the delegation classes on their classpath and use the right spring configuration, you can consider to include the Activiti rest webapp inside your own webapp so that there is only one single ProcessEngine."

But this is not a clean way since REST webapp has loads of libraries+its own source code to maintain which would pollute my code repository.

How do  i structure my app so as to have a clean deployment ?
1 REPLY 1

trademak
Star Contributor
Star Contributor
Hi,

If you want to use the Activiti REST API you get the dependencies with it of course.
But there are not a lot extra dependencies actually. It's foremost Restlet. What are your concerns with just including the REST API?

Best regards,