Creating a Dynamic Object Group
A dynamic object group is created at runtime based on a search criteria.
- Procedure
- Navigate to
<TIBCO_HOME>/pd/<version>/samples/common
and open the appropriate data file. - Under the element
<tog:DynamicObjectGroup>
, provide values for the following elements:Name
,Description
,Domain
, andType.
<description>Dynamic Object Group with DAA3 WebApp Component created via CLI</description> <name>DAA3 BasicAuth WebAppComponentInst DynamicObjectGroupViaCLI</name> <domain localPart="tibco.amx3" namespace="http://tns.tibco.com/governance/common/govdomain/tibco/amx3"/> <type localPart="WebAppComponentInstance" namespace="http://tns.tibco.com/governance/common/govdomain/tibco/amx3"/>
The domain is either
AMX
orBW
. Based on the domain, provide one of the following values for the attributes:localPart
andnamespace
in the<domain>
element.For
AMX
, thelocalPart
attribute should betibco.amx3
and thenamespace
attribute should behttp://tns.tibco.com/governance/common/govdomain/tibco/amx3
. ForBW
, thelocalPart
attribute should betibco.bw5
and the namespace attribute should behttp://tns.tibco.com/governance/common/govdomain/tibco/bw5
.Based on the domain selected, provide one of the following values for the attribute,
localPart
, in the<type>
element.Domain Values accepted by the localPart
attribute in the<type>
elementAMX
SoapHttpReferenceBindingInstance, SoapHttpServiceBindingInstance,
SoapJmsReferenceBindingInstance,
SoapJmsServiceBindingInstance,
SoapReferenceBindingInstance,
SoapServiceBindingInstance,
VirtualizationReferenceBindingInstance,
VirtualizationServiceBindingInstance,
WebAppComponentInstance
BW
BWServiceEndpoint, BWSoapHttpServiceEndpoint,
BWSoapJmsServiceEndpoint,
BWReferenceEndpoint,
BWSoapHttpReferenceEndpoint,
BWSoapJmsReferenceEndpoint
- Define the search criteria by creating the appropriate expressions. To learn more about building search criteria, see Defining the Search Criteria for Object Groups .
- Add appropriate targets in the build file.
- Run the ant command to apply the changes.
Sample Data File with Dynamic Object Group
<?xml version="1.0" encoding="UTF-8"?> <amxdata_base:Enterprise xsi:schemaLocation="http://tibco.com/amxadministrator/command/line /types_base ../../../administrator/3.2/schemas/amxdata_base.xsd http://tibco.com/governance/ogp/cli/types_tog ../schemas/tog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:amxdata_base="http://tibco.com/amxadministrator/command/line/types_base" xmlns:tog="http://tibco.com/governance/ogp/cli/types_tog"> <tog:DynamicObjectGroup> <description>Dynamic Object Group with DAA3 WebApp Component created via CLI</description> <name>DAA3 BasicAuth WebAppComponentInst DynamicObjectGroupViaCLI</name> <domain localPart="tibco.amx3" namespace="http://tns.tibco.com/governance/common/govdomain/tibco/amx3"/> <type localPart="WebAppComponentInstance" namespace="http://tns.tibco.com/governance/common/govdomain/tibco/amx3"/> <BaseEnvironment> <name>DevEnvironment</name> </BaseEnvironment> <Expressions> <Expression> <Statements> <Statement> <type localPart="Application" namespace="http://tns.tibco.com/governance/common/govdomain/tibco/amx3"/> <property localPart="name" namespace=""/> <operator>contains</operator> <operand1>DAA3</operand1> </Statement> </Statements> </Expression> </Expressions> </tog:DynamicObjectGroup> <tog:SyncObjectGroupMembers/> <tog:ExportObjectGroups> <outputDataFile>${exported.data.file}</outputDataFile> </tog:ExportObjectGroups> </amxdata_base:Enterprise>