Mule, JBPM and spring framework is one of the best combinations to implement SOA framework. These combinations are very famous among open source and easy to implement. Integration among this technology is always a challenge. I am adding some integration bullet point to make this integration easy.
These file are involved to integration among JBPM, spring and Mule ESB.
1) ApplicationContext.xml – spring framework
2) mule-config.xml – Mule ESB
3) jbpm.cfg.xml – JBPM file
4) All library for spring, JBPM and Mule ESB jar file
mule-config.xml
Add these lines into mule-config.xml file
- <mule xmlns="http://www.mulesource.org/schema/mule/core/2.2"
.....
xmlns:bpm="http://www.mulesource.org/schema/mule/bpm/2.2"
xmlns:spring-context="http://www.springframework.org/schema/context"
xmlns:spring="http://www.springframework.org/schema/beans"
... >
- <spring:beans>
<spring:import resource="applicationContext.xml"/>
</spring:beans>
<spring:bean id="jbpm-ref" parent="jbpm" />
- <bpm:connector name="jBpmConnector" bpms-ref="jbpm-ref"
allowGlobalReceiver="true" allowGlobalDispatcher="true"
processIdField="requestId">
<custom-exception-strategy class="com.vanrish.exception.ApplicationExceptionStrategy"/>
<!—This is custom exception class based on your business logic --><
</bpm:connector>
applicationContext.xml
This is spring specific file. So we are defining jbpm specific configuration to call from mule.
<bean id="jbpm" class="org.mule.transport.bpm.jbpm.JbpmImpl" destroy-method="destroy">
<property name="configuration">
<value>classpath:jbpm.cfg.xml</value>
</property>
property name="processDefinitionsResources">
<list>
<value>classpath:verifyAge.xml</value>
.....
<!-- Define JBPM specific process file -->
</list>
</property>
<property name="createSchema">
<value>false</value>
</property>
</bean>

Rajnish Kumar, the CTO of Vanrish Technology, brings over 25 years of experience across various industries and technologies. He has been recognized with the “AI Advocate and MuleSoft Community Influencer Award” from the Salesforce/MuleSoft Community, showcasing his dedication to advancing technology. Rajnish is actively involved as a MuleSoft Mentor/Meetup leader, demonstrating his commitment to sharing knowledge and fostering growth in the tech community.
His passion for innovation shines through in his work, particularly in cutting-edge areas such as APIs, the Internet Of Things (IOT), Artificial Intelligence (AI) ecosystem, and Cybersecurity. Rajnish actively engages with audiences on platforms like Salesforce Dreamforce, World Tour, Podcasts, and other avenues, where he shares his insights and expertise to assist customers on their digital transformation journey.