Issue Details (XML | Word | Printable)

Key: MULE-3591
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Scott Clasen
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Mule

BPMS interface too simplified, or JBPM implementation incomplete

Created: 30/Jul/08 03:48 PM   Updated: 25/Nov/08 05:58 PM
Component/s: Transport: BPM / BPEL
Affects Version/s: 2.0.2
Fix Version/s: 2.x Product Backlog

Time Tracking:
Not Specified

File Attachments: 1. Java Source File JbpmWorkaround.java (4 kB)
2. Java Source File SendMuleEventWorkaround.java (1.0 kB)


Labels:
User impact: High


 Description  « Hide
The current jbpm implementation of the BPMS interface, or the BPMS interface itself is too simplified. Processes that have Forks in them (parallel execution) will not work.

There should be a way to signal a token within a fork of a jbpm process. The current implementation is somewhat naive and only anticipates a single thread of execution throughtout the , which takes away a lot of the power of a BPM.

2 possible solutions. Alter the BPMS interface to accept a tokenId (or more generically named) parameter along with processId for all methods, or have the JBPM implementation pull the token id out of variables that are passed in and signal the appropriate token.



 All   Comments   Work Log   Change History   Transitions   FishEye      Sort Order: Ascending order - Click to sort in descending order
Scott Clasen added a comment - 30/Jul/08 03:51 PM
Similarly there is no way to update the token scoped state of the process, you can only update global process scoped state.

Scott Clasen added a comment - 31/Jul/08 09:14 AM
This is an example of support for forks in a process definiton, using a variable to pass around the token id.

Scott Clasen added a comment - 31/Jul/08 12:51 PM
You will also need to update the SendMuleEvent jbpm action handler to pass the tokenId in an outgoing message

Scott Clasen added a comment - 23/Sep/08 01:16 PM
Here is an example workaround to SendMuleEvent that propogates the Jbpm Token ID as well as the process ID.