Bug 1133478 - BPM Example app: when example web service not deployed, "Troubleshoot" human task not created
Summary: BPM Example app: when example web service not deployed, "Troubleshoot" human ...
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: Business Central
Version: unspecified
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: CR1
: ---
Assignee: Kris Verlaenen
QA Contact: Lukáš Petrovický
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-08-25 09:02 UTC by Jan Hrcek
Modified: 2020-03-27 20:07 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-03-27 20:07:17 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
server.log with exception (search for DefaulSignalManager) (198.87 KB, text/x-log)
2014-08-25 09:02 UTC, Jan Hrcek
no flags Details

Description Jan Hrcek 2014-08-25 09:02:16 UTC
Created attachment 930388 [details]
server.log with exception (search for DefaulSignalManager)

Description of problem:
In BPMS 6.0.3 ER1 there is a bug in behavior of BPM Example app:
The example app defines single process (Mortgage application). This process contains a web service task which calls an example web service. In case there's an error calling web service (e.g. it is not deployed) the "Troubleshoot" human task should be created (that was the correct behavior in 6.0.2 GA).

In 6.0.3 ER1 there is the following buggy behavior: after filling in process start form with valid input data (see steps to reproduce) The modal dialog with the folowing error appears and process instance is NOT started:

"Process Instances failed to start: [com.redhat.bpms.examples.mortgage.MortgageApplication:2 - Validation:17] -- Unexpected exception executing action org.jbpm.process.instance.event.DefaultSignalManager$SignalAction@32954bd8"

There's also exception in server.log (attached)


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

How reproducible:
Always

Steps to Reproduce:
1. Setup BPM Example aplicaton (packaged in http://dev138.mw.lab.eng.bos.redhat.com/candidate/bpms-6.0.3-ER1/jboss-bpms-brms-6.0.2.GA-redhat-6-quickstarts.zip)
2. Do NOT deploy the example web service jboss-mortgage-demo-ws.war which is provided with the example
3. build and deploy the example project
4. Try starting the example process in UI with the following CORRECT input data:
Name: Jan
Address: 12300 Wilshire Blvd., Los Angele, CA
Social Security Number: 333224444
Annual Income: 200000
Sale Price: 1000000
Down Payment: 200000
Amortization: 30

Actual results:
Modal with eror is displayed (see description), exception in server.log (attached)

Expected results:
The "Troubleshoot" human task containing stack trace should be created and process should be able to continue normally (that's the way it worked in 6.0.2 GA)

Additional info:
When you create process with INCORRECT data (e.g. use 28 as value for Amortization) the process IS STARTED, but the same problem happens when you try to complete the Data Correction Human taks.

Comment 2 Kris Verlaenen 2014-09-04 13:45:18 UTC
The boundary error event was catching all errors due to no structureRef being defined (however, this is in general the case and should not result in the boundary event catching all types of events), see change here:
https://github.com/droolsjbpm/jbpm/commit/9bfd030851c90a2b943f0ee145b8b8cef8a60db2#diff-83432dfcb823fd6eb29b661f68924594L427

Since defining a boundary event that catches all types of exceptions (by using no errorCode in the error) is not yet supported in jBPM core engine, I modified the example to catch the "org.jbpm.bpmn2.handler.WorkItemHandlerRuntimeException".

Comment 3 Jan Hrcek 2014-09-15 12:41:15 UTC
Ok, now it works. Verified with BPMS 6.0.3 CR1


Note You need to log in before you can comment on or make changes to this bug.