# camunda BPM platform OSGi presents: integration with Process Application API

I am happy to announce that there is a new way to configure a ProcessEngine and deploy processes.  
You can now use the [Process Application API](http://docs.camunda.org/latest/guides/user-guide/#process-applications).  
Luckily, using this API in your project is quite easy.  
There are three things you have to do:  

1.   provide a [processes.xml](http://docs.camunda.org/latest/guides/user-guide/#process-applications-the-processesxml-deployment-descriptor) file
2.   make a subclass of `org.camunda.bpm.extension.osgi.application.OSGiProcessApplication`
3.  export it as OSGi service

After that the process will be deployed and the engine will be started and exported.  
To show you how easy it can be I created an [example project](https://github.com/rbraeunlich/camunda-bpm-processapplication-example).  
  
Please note that the feature is right now only usable when using Blueprint.  
Also you'll have to build [camunda-bpm-platform](https://github.com/camunda/camunda-bpm-platform) and [camunda-bpm-platform-osgi](https://github.com/camunda/camunda-bpm-platform-osgi) yourself. But the next releases should be right around the corner ;-)  
  
Unfortunately, I wasn't able to activate the process application local scan for process definitions (see [here](http://docs.camunda.org/latest/api-references/deployment-descriptors/#tags-process-archive-configuration-configuration-properties)). I couldn't figure out a way to find resources inside an embedded jar.  
Neil Bartlett [mentioned](https://twitter.com/nbartlett/status/515077421859872769) the BundleWiring class. Seems like I have to wait until we upgrade the project to OSGi 4.3.  
If anyone knows a way please let me know.  
  
So, enjoy the OSGiProcessApplication and give me some feedback if you want to!
