<div>Thank you so much for the quick reply! Guess I need to study the documentation more thoroughly.</div>
<div>When I say &quot;explode&quot;, I mean I have to use many rules to represents 1 business rule expressed in human language. I believe the problem can be solved if the two questions in my last email are solved. Thanks again, Ingomar.<br>
<br>&nbsp;</div>
<div><span class="gmail_quote">On 7/24/08, <b class="gmail_sendername">Ingomar Otter</b> &lt;<a href="mailto:iotter@mac.com">iotter@mac.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><span class="q">&gt;1. Seems to me that the conditions in a rule are always connected with &quot;AND&quot; relation:<br>
</span>True.<br>AND is the default.<span class="q"><br><br>&gt;Is &quot;or&quot; allowed? I mean , can I express: &nbsp;&quot;if (C1 or C2 or C3) and C4, then D1&quot; in 1 rule?<br></span>You can have an explicit OR, &nbsp;see section <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://6.5.2.3/" target="_blank">6.5.2.3</a> of the 4.0.7 documentation.<span class="q"><br>
<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">&gt;Can I form a link of rules? Can rule A&#39;s decision (the Then part) be rule B&#39;s condition (The When part)?<br>
<br>&gt;for instance:<br>&gt;rule A: if C1, C2, C3 then D1<br>&gt;rule B: if D1, C4 then D2<br></blockquote></span>usually the consequence (RHS) of would modify facts which you can test in rule B.<br>A common way is to assert a fact.<span class="q"><br>
<br>&gt;When the complexity increases, the number of rules explodes.<br></span>What&#39;s your definition of &quot;explodes&quot;? This suggest that you should have another go at your rule/fact model.<br><br>Cheers,<br>&nbsp;--Ingomar<br>
<br><br>Am 24.07.2008 um 17:25 schrieb Yu Wang:<br><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div><span class="e" id="q_11b55ca85dcbdf4a_8">I&#39;m a beginner user of Jboss, please bear with my maybe dumb questions:<br><br>1. Seems to me that the conditions in a rule are always connected with &quot;AND&quot; relation:<br>
<br>such as the following rule<br><br>if C1<br>&nbsp;C2<br>&nbsp;C3<br>then D1<br><br>it means &quot;if C1 and C2 and C3, then D1&quot;<br><br>Is &quot;or&quot; allowed? I mean , can I express: &nbsp;&quot;if (C1 or C2 or C3) and C4, then D1&quot; in 1 rule?<br>
<br>Right now, I can only use 3 rules to express it:<br><br>if C1<br>&nbsp;C4<br>then D1<br><br>if C2<br>&nbsp;C4<br>then D1<br><br>if C3<br>&nbsp;C4<br>then D1<br><br><br>2. Can I form a link of rules? Can rule A&#39;s decision (the Then part) be rule B&#39;s condition (The When part)?<br>
<br>for instance:<br>rule A: if C1, C2, C3 then D1<br>rule B: if D1, C4 then D2<br><br><br>When the complexity increases, the number of rules explodes.<br>I browsed the document and didn&#39;t find a clue. I&#39;m using the <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://4.0.7./" target="_blank">4.0.7.</a><br>
Your help is highly appreciated.<br><br><br></span></div>_______________________________________________<br>rules-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></blockquote><br>_______________________________________________<br>
rules-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div><br>