Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 918682

Summary: Unable to identify what process has invalid data
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: Amana <ajuricic>
Component: BRM (Guvnor)Assignee: Kris Verlaenen <kverlaen>
Status: CLOSED UPSTREAM QA Contact: Marek Baluch <mbaluch>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: BRMS 5.3.1CC: ajuricic, alazarot, kris.verlaenen, nwallace, tpothine
Target Milestone: GA   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-02-10 03:27:33 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:
Bug Depends On:    
Bug Blocks: 1022758, 1080634    
Attachments:
Description Flags
repository_export
none
screenshot
none
wrong error message
none
Test process 1 to repro the issue
none
Test Process 2 to repro the issue
none
4 processes, 1 error in each none

Description Amana 2013-03-06 18:03:10 UTC
Unable to identify what exactly process has an invalid data since guvnor shows the same error for all processes. 2 processes were created in BRM (Guvnor). One of them has invalid information, but when building the package the error is thrown for both processes. Follow the steps to replicate the issue:

1) Created 2 bpmn2 processes (Test1 and Test2)
2) Added a script task for both of them
3) I have set up the following script for each one:

 Test1: Blue blue = new Blue(); 
 Test2: (empty)

Note: The fact type Blue does not exist. Then an error for Test1 sould be experienced by building the package.

4) Trying to build the package I got the error below (that's right):

 Test1 Process Compilation error Blue cannot be resolved to a type Blue cannot be resolved to a type

5) Changed the script for both processes:

 Test1: (empty)
 Test2: Blue test2 = new Blue();

6) After building the package I see:

 Test1 Process Compilation error Blue cannot be resolved to a type Blue cannot be resolved to a type
 Test2 Process Compilation error Blue cannot be resolved to a type Blue cannot be resolved to a type
 Test2 Process Compilation error Blue cannot be resolved to a type Blue cannot be resolved to a type

Comment 1 Amana 2013-05-31 12:12:43 UTC
Do we know which brms version will include this fix ?

Comment 2 Alessandro Lazarotti 2013-11-05 20:53:59 UTC
I am not able to reproduce this issue (I've tried using BRMS 5.3.1 Roll Up Patch #3, but only the second process fails when compiling - as expected). Do you have any repository export that could be used in this BZ exposing the issue?

Comment 3 Amana 2013-11-06 13:18:00 UTC
Created attachment 820362 [details]
repository_export

There are two processes in defaultPackage.

-test1: it is trying to instantiate "Blue" , but it does not exist.
-test2: it is only printing a message.

The "Blue cannot be resolved to a type Blue" error is thrown for both processes by building the package. If you correct "test1" you will see that the error is not thrown anymore.

Comment 4 Amana 2013-11-06 13:18:52 UTC
Created attachment 820363 [details]
screenshot

Comment 5 Alessandro Lazarotti 2013-11-13 11:51:58 UTC
Thanks, reproduced.

Comment 6 Marek Baluch 2014-02-17 10:53:47 UTC
VERIFIED on  BRMS_5.3.1_4

The original issue is fixed. The error will now be shown only for the process which contains the missing 'Blue' class. One minor issue (not reported) in this BZ still remains.

If both processes contain the 'Blue' class script then the error message will be shown for both processes which is correct. The issue is that it will be shown 3 times all together. I believe there should be only 2 error messages.

Comment 8 Chaitanya Pothineni 2014-05-19 22:55:13 UTC
Created attachment 897341 [details]
wrong error message

Comment 9 Chaitanya Pothineni 2014-05-19 22:56:43 UTC
Created attachment 897342 [details]
Test process 1 to repro the issue

Comment 10 Chaitanya Pothineni 2014-05-19 22:58:10 UTC
Created attachment 897343 [details]
Test Process 2 to repro the issue

Comment 11 Jiri Locker 2014-05-21 09:24:00 UTC
Created attachment 897886 [details]
4 processes, 1 error in each

Confirmed. I tried to create more processes with errors. On this screenshot I have test{1..4} processes using undefined Red, Green, Blue, Black types respectively. Obviously, the errors are _accumulated_ as the build iterates over resources so the last process "contains" all of the errors found in the preceding processes.

Comment 13 Kris Verlaenen 2014-05-23 00:32:05 UTC
Added additional fix in drools 5.3.x
http://github.com/droolsjbpm/drools/commit/d04da9ef5

Comment 14 Marek Baluch 2014-06-27 13:48:15 UTC
Verified on Roll Up Patch BRMS_5.3.1_1_2014.

Comment 16 Red Hat Bugzilla 2025-02-10 03:27:33 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.