cancel
Showing results for 
Search instead for 
Did you mean: 

Embedding Activiti REST API in own webapp

mproch
Champ in-the-making
Champ in-the-making
Hi all,

I noticed that there is a some confusion about using activiti in webapp together with REST API:
http://jira.codehaus.org/browse/ACT-609
http://forums.activiti.org/en/viewtopic.php?f=6&t=1124
so I created simple maven project. It build webapp which
- runs process engine and deploys process which uses some custom spring 'services'
- exposes REST API using the same process engine.

The sourcecode is on github: https://github.com/mproch/activitiWebappSample

The activiti-rest webapp is included in target webapp using maven plugins, so that source code is not much affected by this - only web.xml contains some REST API specific parts.
Hope it'll help if someone wants to do similar thing.
3 REPLIES 3

frederikherema1
Star Contributor
Star Contributor
Maciek,

Thats a clean webapp-skeleton you created there, thanks!

It's indeed not very clear/straight forward now how to expose the engine-rest API in your own webapp. We're planning on looking into this further in the coming releases…

jcanon
Champ in-the-making
Champ in-the-making
In the source code I see that we have to build Activiti from source because activiti-webapp-rest-classes is not included in distro but after compilation, I don't find where are those classes ! Can you give me the exact location and name ?
Thanks

jbarrez
Star Contributor
Star Contributor
They are included in the rest war that is built in the distro.
Alternatively, you can build the module https://github.com/Activiti/Activiti/tree/master/modules/activiti-rest on itself (if the dependent modules have been built)