After spending some time testing out Camunda, I decided to include a Mule call from within a Camunda process. This would be useful when designing processes which require information from external components, so as to be able to leverage Mule’s connectivity.
I decided to start with Camunda’s very good quick start guide where you will be able to get a simple BPM process running in no time.
The following depicts the BPMN process for this example where a customer applies for a loan and this is to be approved. The service task points to the class “ProcessRequestDelegate” which is executed when processing the request:
Below is the processRequestdelegate class which makes an HTTP call to Mule via the Mule Client:
The following are two dependencies required in the Camunda application pom.xml file in order to make an HTTP Mule client call to Mule:
In Mule, a simple flow with an inbound HTTP endpoint has been created. This flow may be used to request any required information from external components.