Bug 1314404

Summary: JBOSS BPM Process Model Error
Product: OpenShift Online Reporter: jon_mckinley
Component: BuildAssignee: Vu Dinh <vdinh>
Status: CLOSED NOTABUG QA Contact: Wenjing Zheng <wzheng>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.xCC: aos-bugs, jon_mckinley, kverlaen, vdinh
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-04 11:50:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description jon_mckinley 2016-03-03 13:57:31 UTC
Description of problem:
The web based process modeler in JBOSS BPM reports an error when you try and place a boundary event on a scripting task. It reports the following error:

"unable to parse xml : Exception class java.lang.IllegalArgumentException : Boundary events are supported only on StateBasedNode, found node: org.jbpm.workflow.core.node.ActionNode [_7FD9BA47-A0BE-4B4E-B8A8-CB9FF29ABB31]"

A quick search shows this is a known issues that has been fixed. Here is the link to that information: https://bugs.eclipse.org/bugs/show_bug.cgi?id=488290

However, I do not know how to apply this fix to the JBOSS Application in OpenShift since d not control the environment. 


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.Place a scripting task in the process modeler
2.Attempt to drop a boundary event on it (it will not let you).

Alternatively
1. Place an unspecified task into the process modeler
2. Drop a boundary event on it (it will let you)
3. Try to compile the solution (you get the error message)

Actual results:
You can not develop a model that uses a boundary event on a scripting task
or
You can not compile a model that uses a boundary event on a scripting task


Expected results:
You should be able to place a boundary event on a scripting task and it should compile.


Additional info:

Comment 1 Kris Verlaenen 2016-03-05 22:13:27 UTC
The core process engine does not support boundary events on scripting tasks (only for compensation).  The error that is returned is therefore correct.  The main reason is that script task are executed synchronously, using boundary events in this case is not useful in general.

Could you explain for what use case you would like to use a boundary event for on a script task?

Comment 2 Kris Verlaenen 2016-03-05 22:14:58 UTC
Additional note: the bugzillas linked are regarding a fix for the Eclipse Bpmn2 Modeler, not the web-based Designer.  For Designer, the following might be relevant: https://bugzilla.redhat.com/show_bug.cgi?id=994408

Comment 3 jon_mckinley 2016-03-15 12:10:15 UTC
I was working an example from a BPMN book (jBPMN 6 Developer's Guide) that shows a error boundary event on an abstract task that represents a reason why the task can't be completed. This must be an error in the book and I just happened to find an IDE example of a similar... but different issue.  Or I am just not familiar enough with BPMN yet to understand what I am asking. I apologize for my error.