How do I construct a ruleList with this kind of logic:

((a and b and c) OR (d and e))

asked 08 Mar '12, 15:05

brent's gravatar image

brent
1222
accept rate: 0%


You could use:

<showInfo text="Change me to the appropriate action!">
  <ruleEvaluationLogic>or</ruleEvaluationLogic>
  <ruleList>
    <ruleGroup>
      <ruleList>
         <isTrue value="${a}"/> 
         <isTrue value="${b}"/>
         <isTrue value="${c}"/> 
      </ruleList>
    </ruleGroup>
    <ruleGroup>
      <ruleList>
         <isTrue value="${d}"/> 
         <isTrue value="${e}"/>
      </ruleList>
    </ruleGroup>
  </ruleList>
</showInfo>

Just checking the <isTrue> rules with the appropriate ones. Please note I configured <ruleEvaluationLogic>or</ruleEvaluationLogic> in the action enclosing the rules.

link

answered 09 Mar '12, 03:14

juanjo's gravatar image

juanjo ♦♦
5.8k413
accept rate: 23%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×8

Asked: 08 Mar '12, 15:05

Seen: 1,217 times

Last updated: 09 Mar '12, 03:14