cancel
Showing results for 
Search instead for 
Did you mean: 

deploying process with custom service task

zap
Champ in-the-making
Champ in-the-making
hi there,

I was wondering how can I deploy process (created with Activiti designer plugin in Eclipse Classic Helios) with custom service task to Activiti Probe?

when I upload single bpmn20.xml file it is worth nothing, because it misses my custom service java class.
.bar packs only bpmn.xml and png, so it is worthless, too.
and if I upload zip, with a package, that includes java class, the probe is unable to find out there is o bpmn20.xml file in my zip.

Any help, or link to guidelines, how to upload processes with a custom tasks? thx all
1 REPLY 1

frederikherema1
Star Contributor
Star Contributor
Business archives

To deploy processes, they have to be wrapped in a business archive. A business archive is the unit of deployment to an Activiti Engine. Basically a business archive is equivalent to a zip file. It can contain BPMN 2.0 processes, task forms, rules and any other type of file. In general, a business archive contains a collection of named resources.

When a business archive is deployed, it is scanned for BPMN files with a .bpmn20.xml extension. Each of those will be parsed and potentially contains multiple process definitions.

Note that Java classes present in the business archive will not be added to the classpath. All custom classes used in process definitions in the business archive (for example Java service tasks or event listener implementations) should be present on the activiti-engine's classpath in order to run the processes.

Add it to the activiti-rest webapp's lib.