Bug 1267569 - Setting multiple expressions needs to be changed
Summary: Setting multiple expressions needs to be changed
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Operations Network
Classification: JBoss
Component: Documentation
Version: JON 3.2.3
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: post-GA
: JON 3.3.8
Assignee: Tyler Kelly
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-30 12:22 UTC by Jochen Cordes
Modified: 2017-08-25 04:59 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Build Name: 23082, Writing JBoss ON Command-Line Scripts-3.3-3.3 Build Date: 02-07-2015 05:49:06 Topic ID: 44213-753246 [Latest]
Last Closed: 2017-08-25 04:59:52 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jochen Cordes 2015-09-30 12:22:24 UTC
Title: Creating and Editing Dynagroups

Describe the issue:

In "Example 12.9. Creating a Dynagroup" at https://access.redhat.com/documentation/en-US/Red_Hat_JBoss_Operations_Network/3.3/html/Writing_JON_Command-Line_Scripts/sect-Resources_and_Groups.html#Creating_and_Editing_Dynagroups multiple expressions are set via

dynaGroupDef.setExpression("resource.type.name=Linux");
dynaGroupDef.setExpression("resource.type.category=Platform");
dynaGroupDef.setExpression("resource.availability=UP");

However, this does not work and only the last expression is taken. Looking at the source code of org.rhq.core.domain.resource.group.GroupDefinition it turns out that the expressions need to be separated by "\n", so it should look like

dynaGroupDef.setExpression("resource.type.name=Linux\nresource.type.category=Platform\nresource.availability=UP");


Suggestions for improvement:


Additional information:


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