JBPM - Opentaps 1.x Integration Prototype

From Opentaps Wiki

Jump to: navigation, search

To get started with BPM we decided to investigate how to integrate an existing BPM implementation, jBPM, with opentaps 1.4. As jBPM 4 is scheduled for release in July 2009 we decided to use beta 2 version for this prototype (latest jBPM build available at the time of this writing).

For the communication between opentaps and jBPM we use Apache Tuscany 1.5 SCA ESB. The SCA bidirectional interface provides a direct call and a callback interface; jBPM can call opentaps and opentaps can fire events (callbacks) to jBPM.

Apache Tuscany is deployable as a set of OSGi bundles; we will embed Apache Felix OSGi runtime in opentaps and we will deploy Apache Tuscany as OSGi bundles. This will further enhance the extensibility options for opentaps.

We will implement the following business process: The sales person creates a quote. if the quote price (QP) is up to 5% below recommended retail price (QRRP) then she can submit the quote to customer otherwise she needs manager approval. The quote is converted to order and send to manufacturing after the customer deposited 50% of quoted price.

Main scenario looks like this:

  • sales person: creates quote
  • if QP < 95% QRRP
    • manager: approves quote
  • else
    • BPM: approves quote automatically
  • accounts receivable: receives 50% QP deposit
  • accounts receivable: convert quote to order

The steps are:

  • opentaps: fires an event to jBPM when a new quote is created (passing QP and QRRP to jBPM)
  • jBPM: if QP < 95% QRRP
    • jBPM: assign quote to manager for approval
  • jBPM: assign quote to accounts receivable officer to monitor for 50% QP deposit
  • accounts receivable officer: updates jBPM when 50% QP is received
  • jBPM: calls opentaps to convert quote to order

Relevant information can be found at:

The Prototype

Image:jBPM.4b2_opentaps.1.4_Integration.png

Details about my investigations are coming soon ...



© 2008-2010 Open Source Strategies, Inc. Development of this documentation site is sponsored by Open Source Strategies, Inc.
Help support opentaps with a subscription to this documentation site.



Join our mailing list to learn more about opentaps Open Source ERP + CRM