Bug 1001013

Summary: Cannot open Guided Decision Table with 2 WID files present
Product: [Retired] JBoss BRMS Platform 6 Reporter: Zuzana Krejčová <zkrejcov>
Component: Business CentralAssignee: manstis
Status: CLOSED CURRENTRELEASE QA Contact: Radovan Synek <rsynek>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: lpetrovi, rrajasek, vigoyal
Target Milestone: ER5   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Summary: If you have two or more Work Item Definition files in your project, the system will not allow you to open any Guided Decision Tables in your project. Cause: Consequence: Fix: Result:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:17: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:
Bug Depends On:    
Bug Blocks: 1001027    
Attachments:
Description Flags
error popup
none
server log excerpt none

Description Zuzana Krejčová 2013-08-26 10:12:54 UTC
Created attachment 790389 [details]
error popup

Description of problem:
If you have 2 (or more) Work Item Definition files present, you cannot open any Guided Decision Table in your project due to:

Unable to complete your request. The following exception occurred: java.util.HashMap cannot be cast to java.util.List.

Until you delete both(!) WIDs, you won't be able to get to any GDT.


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


Steps to Reproduce:
1. Create 2 (valid) WIDs.
2. Create a new (or open an already existing) Guided Decision Table.
3. Wait for the editor.


Actual results:
Editor pane is empty, error popup shown instead.


Expected results:
Editor shown with the correct content, no error.

Comment 1 Zuzana Krejčová 2013-08-26 10:13:49 UTC
Created attachment 790390 [details]
server log excerpt

Error as shown in the server log.

Comment 6 Radovan Synek 2013-10-16 14:20:15 UTC
Update for ER4:
The issue still persists, the malicious work item definition is the default one (generated when new .bpmn2 process definition is created). When this WID exists in a project, no guided decision table can be opened in this project.

error message when opening the GDT: Unable to complete your request. The following exception occured: java.util.ArrayList cannot be cast to java.util.Map.

Comment 7 Radovan Synek 2013-10-16 14:46:58 UTC
I have found out that having only "Log" work item in the definition is sufficient to reproduce the issue:

import org.drools.core.process.core.datatype.impl.type.StringDataType;

[
   [
    "name" : "Log",
    "parameters" : [
      "Message" : new StringDataType()
    ],
    "displayName" : "Log",
    "icon" : "defaultlogicon.gif"
  ]
]

Comment 8 manstis 2013-10-17 11:11:25 UTC
I've made "New Work Item Definition" (and the default template) work consistently with the Work Item Definitions generated with a new process.

Comment 10 Radovan Synek 2013-12-03 10:22:16 UTC
Verified on BRMS-6.0.0.ER5