cancel
Showing results for 
Search instead for 
Did you mean: 

How to Embed/Expose Activiti REST API with our own WebApplication

imkeshav
Confirmed Champ
Confirmed Champ
We are building the custom web application. We want to create the different workflow for each registered customer. Workflow generated by the customer on the fly.

We configured/embedded Activti engine into our application, and its working fine(Configured Activti to use application database).

Now we want to deploy bpmn process dynamically without any server restart. As per user guide, this can be done using Activiti REST API.

How to embed or expose the services of Activiti REST API into my web application?

We are using Java, Spring and Apache CXF(instead of Spring MVC) for REST configuration.


Thanks in Advance,
Keshav
3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
If you are using java, why not call the deployment method directly on the repositoryService?

Thanks for reply. I did it, its working. smiley

I have one more query: We are storing all customer specific process definition files(xml) in DB, how to load customer specific processes on startup?
I am new to Activiti, not much aware of Activit API.

Thanks in Advance.

jbarrez
Star Contributor
Star Contributor
You don't need to, the Activiti engine will fetch them whenever they are needed. This is a quite fast operation, so no need to load them all at startup into memory.