Reading Time: 4 minutes

What is BPM and why would you use it with Mule?

BPM stands for Business Process Management and simplistically can be thought of as a system which automates business processes. Typically a BPM system will have a graphical interface which allows you to model your business processes visually so that a business analyst or other non-programmer can easily understand them and verify that they indeed reflect the reality of your business.

process.subprocess.document

jBPM is arguably the best-of-breed open source software in this space and has a similar philosophy to Mule when it comes to valuing simplicity and functionality over adhering to cumbersome “standards” such as BPEL.

latest report
Learn why we are the Leaders in API management and iPaaS

Mule ESB integrates with jBPM, allowing you to send/receive messages to/from a running process. A message from Mule can start or advance a process, the message can be used as a process variable, and a process can send messages to any endpoint in your Mule config.

jbpm_logo

So when might you consider using jBPM with your Mule application?

  • If the execution in your flow has discrete steps and/or multiple paths based on decision criteria, modeling it as a process may help better visualize it.
  • If your business logic is in constant flux, BPM might be a good way to decouple the logic from your integration.
  • If your business logic or processes need to be reviewed or updated by non-programmers, BPM makes that possible.
  • If a flow does not go from start to finish within a few minutes, it’s probably a good candidate for BPM because intermediate process state is persisted so it does not need to be held in memory.
  • If your integration requires human input, BPM lets you add a human step to your process via task management and a web app.
  • If your application needs a step-by-step audit trail, BPM might be a good option because process history is kept in a database.
loan.executions

Mule has had integration with jBPM since around 1.3, but we have recently improved our support for Mule 3.0, including an upgrade to the latest major version of jBPM (4.3), much simplified configuration, and cleaner integration with Mule from your process definition, including custom process elements. For more information, refer to the Mule 3 documentation.

Process Definition Snippet using custom Mule elements