Identify the problem with the following targeter rule set

Identify the problem with the following targeter rule set:
<ruleset>
<accepts>
<rule op=eq name= “Guitar News”>
<valueof target = “newsType”>
<valueof constant = “guitar”>
</rule>
<rule op = includes name = “Guitar players”>
<valueof bean = “Profile.preferredcategory”>
<valueof constant = “guitars”>
</rule>
</accepts>
<accepts>
<rule op = eq name = “Bass News”>
<valueof constant = “bass”>
</rule>
<rule op=includes name= “Bass players”>
<valueof bean = “profile.preferencedCategory”>
<valueof constant = “bass”>
</rule>
</accepts>
</ruleset>

Identify the problem with the following targeter rule set:
<ruleset>
<accepts>
<rule op=eq name= “Guitar News”>
<valueof target = “newsType”>
<valueof constant = “guitar”>
</rule>
<rule op = includes name = “Guitar players”>
<valueof bean = “Profile.preferredcategory”>
<valueof constant = “guitars”>
</rule>
</accepts>
<accepts>
<rule op = eq name = “Bass News”>
<valueof constant = “bass”>
</rule>
<rule op=includes name= “Bass players”>
<valueof bean = “profile.preferencedCategory”>
<valueof constant = “bass”>
</rule>
</accepts>
</ruleset>

A.
All rule sets need a”reject rule”.

B.
All rule sets need a sorting directive.

C.
Rules cannot containtwo accept directives.

D.
A rule set cannot reference repository items.

Explanation:
A rule set contains one <ruleset> tag. The <ruleset> tag must have at least one and
at most five child tags: one of <accepts>,<rejects>, or <includes> tags must be present.
The <sortby> and<site> tags are optional. Multiple <accepts>, <rejects>,<includes>, <sortby>,
and <site> tags are not allowed.
ATG Personalization Programming Guide, Rule Set Structure
Note: Rule Set Structure
A rule set has the following basic structure:
<ruleset>
<accepts>
<rule …> … </rule>

</accepts>
<rejects>
<rule …> … </rule>

</rejects>
<includes>
<ruleset src=…> … </ruleset>

</includes>
<sortby>
<sortbyvalue …>

</sortby>
<site type=…>
</site>

</ruleset>



Leave a Reply 0

Your email address will not be published. Required fields are marked *