cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a new process deployment using ZipInputStream

krishnanganapat
Champ in-the-making
Champ in-the-making
We are experimenting with Activiti for use in our application to create and manage workflows on the fly. Ideally we would be packaging new workflows in the form of a zip file and would be uploading it into our app. The process definition should get added to the repository on the fly.

We were looking at using the processEngine.getRepositoryService().createDeployment().addZipInputStream(zipInputStream) method to do so. However we are not finding suitable documentation on how to use i.e. how the zip file should be packaged, where the bpmn20.xml should be placed (under META-INF/ or any other folder) and what other contents can be include in the zip file. We were looking at Activity 5.7, the javadocs dont give much info into it. Can someone point me to a place where i can get this info.

Thanks
Krishnan
3 REPLIES 3

tstephen
Champ on-the-rise
Champ on-the-rise
Hi Krishnan,

If you install Activiti Designer into your Eclipse environment (be careful to use Eclipse 3.6 not 3.7) you can create projects containing bpmn and then turn those into bar files for you to examine.

Having said that it looks like everything is simply kept in the root of the zip to me.

regards,
Tim

roig
Champ in-the-making
Champ in-the-making
just wrap a zip file with whatever name you like. Inside it put your *.bpmn20.xml and *.png files (png and xml files for the same process should have the same name)

krishnanganapat
Champ in-the-making
Champ in-the-making
Thanks for the tips. I did find a para devoted to this in the user guide. Missed it initially because of oversight.
Will try it and get back on this forum.

Cheers
Krishnan