Bug 724305 (BRMS-250)

Summary: Add data to collection field of facts in test scenario
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: Toshiya Kobayashi <tkobayas>
Component: BRM (Guvnor)Assignee: manstis
Status: VERIFIED --- QA Contact: Jiri Locker <jlocker>
Severity: unspecified Docs Contact:
Priority: high    
Version: 5.0.0 GACC: atangrin, lpetrovi
Target Milestone: ER1   
Target Release: BRMS 5.3.1 GA   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/BRMS-250
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Feature Request
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Toshiya Kobayashi 2010-01-19 06:04:15 UTC
Help Desk Ticket Reference: https://enterprise.redhat.com/issue-tracker/394443
securitylevel_name: Public

I can't configure relationship between facts through collection field in "Given" section of BRMS test scenario editor.

e.g. I have facts has relationship through collection field.

=======
public class Section {
...
}

public class Company {
private ArrayList<Section> SectionList;
...
}
========

In case of a java test case, I can setup facts like:

Company company = new Company();
Section sectionA = new Section();
company.getSectionList().add(sectionA);

But, in BRMS test scenario editor, When I tried to set "sectionList" field of Company, I saw a simple textbox. There is no way to add multiple sections to a company.

Comment 1 Toshiya Kobayashi 2010-01-19 06:05:07 UTC
Link: Added: This issue incorporates GUVNOR-441


Comment 2 Toshiya Kobayashi 2012-08-28 05:43:32 UTC
This has been already fixed in BRMS 5.3.0. You can use "Guided List" since BRMS 5.1.0 for Collection field.

Comment 3 Lukáš Petrovický 2012-08-28 06:20:39 UTC
(In reply to comment #2)
> This has been already fixed in BRMS 5.3.0. You can use "Guided List" since
> BRMS 5.1.0 for Collection field.

OK, let's verify it in a release.

Comment 4 Jiri Locker 2012-09-12 16:00:14 UTC
Guided List works fine in 5.3.1.

I also checked Guided List in latest 5.1, but the feature seems to be broken there. However, in any version, if Guided List is missing or broken, it is always possible to use the textbox (Literal value) to populate the collection field with

=[a, b, c]

where a, b, c are fact names of the given facts.