Great Write-up of Mule+Camel with Activiti
- June 7, 2011
- 0 Comments
The Activiti in Action blog has some great content with regard to integrating Mule ESB or Apache Camel with Activiti. The technical discussion is motivated with the following preamble:
The Activiti Engine provides a powerful Java API that makes it very easy to for example deploy process definitions, implement custom logic and unit test your processes. When you want to connect remotely to the Activiti Engine there’s a REST API to communicate with the process engine. But what if you want to start a new process instance by sending a JMS message, or invoke a web service from a BPMN 2.0 process?
By default, the BPMN 2.0 specification provides support for doing web service calls via a specific web service task. The Activiti Engine also provides support for a web service task, but it may be a bit cumbersome to implement due to the large amount of additional XML elements needed. And this task does only SOAP web service calls, so JMS messages etc.
Luckily the Activiti community comes to the rescue. In the next release of Activiti you’ll see two interesting new Activiti modules, one for Mule ESB integration and one for Apache Camel integration. A big thumbs up to Esteban (Mule ESB contribution) and Maciek (Apache Camel contribution). But if you already want to play around, just checkout the Activiti source code at http://svn.codehaus.org/activiti/. Let’s walk through some simple examples to get a good overview of these modules.
It is really a great, detailed post with lots of example code and explanation. It is one of the things I’ve always liked about a good open source community – the level of shared examples and how-tos is outstanding.
(Note: the “next release” referenced above has now been released)