Bug 1001013 - Cannot open Guided Decision Table with 2 WID files present
Summary: Cannot open Guided Decision Table with 2 WID files present
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ER5
: 6.0.0
Assignee: manstis
QA Contact: Radovan Synek
URL:
Whiteboard:
Depends On:
Blocks: 1001027
TreeView+ depends on / blocked
 
Reported: 2013-08-26 10:12 UTC by Zuzana Krejčová
Modified: 2014-08-06 20:17 UTC (History)
3 users (show)

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:
Clone Of:
Environment:
Last Closed: 2014-08-06 20:17:20 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
error popup (17.04 KB, image/png)
2013-08-26 10:12 UTC, Zuzana Krejčová
no flags Details
server log excerpt (9.47 KB, text/x-log)
2013-08-26 10:13 UTC, Zuzana Krejčová
no flags Details

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


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