Glad you're reading the documents - you'd be surprised how many people asking questions do not!<br><br>You can put off DSL until you're happy your rules are working, off course - in fact, IMO, it's easier to "debug" rules without the additional abstraction.<br>
<br>You're first rule looks better - although I'd still be inclined to look at no-loop rather than the check yourself (what if you need the new value to be dynamic; i.e. not just statically "value"? Your rules would become cumbersome).<br>
<br>The second rule does not associate StringHolder to any particular Child instance (although easily added); so you'd get the cross-product of StringHolders and Child facts; not I suspect what you'd want.<br><br>
Cheers,<br><br>Mike<br><br><div class="gmail_quote">On 6 December 2010 10:36, Gabor Szokoli <span dir="ltr"><<a href="mailto:szocske@gmail.com">szocske@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Thanks for the instant response!<br>
<br>
2010/12/6 Michael Anstis <<a href="mailto:michael.anstis@gmail.com">michael.anstis@gmail.com</a>>:<br>
<div class="im">> The drools-expert documentation would be a good starting point; otherwise<br>
> Wikipedia has a good overview of the RETE algorithm (all be it Drools has<br>
> its own extensions).<br>
<br>
</div>I'm reading the documentation thoroughly of course, but it seems to be<br>
centered about using the system and writing rules. Which is how it<br>
should be, don't get me wrong :-)<br>
I'm just hoping for some spoilers like "Section X will detail how java<br>
object are mapped to WMEs."<br>
<div class="im"><br>
> Regarding your specifics; you could look into using a DSL for the domain<br>
> experts rather than pure DRL. Also, the no-loop attribute could\should help<br>
> with your looping fear (have a look in the documentation).<br>
<br>
</div>Can I put off the DSL part for later, and consider it just an extra<br>
layer of rule file parsing for now?<br>
Do I lose the graphical on-line editor features of Guvnor (which I<br>
admittedly have not looked into yet, just salivated over some<br>
screenshots.) if I make a DSL?<br>
<div class="im"><br>
> A rather disturbing example you choose to show in your email; I think I<br>
> prefer the "Cheese" centric types in the documentation :)<br>
<br>
</div>Other than the attention-whoring double take in nomenclature, does<br>
that rule pattern look OK?<br>
<br>
I'll stick with cheese in the future :-)<br>
<br>
<br>
Thanks Again!<br>
<div><div></div><div class="h5"><br>
Gabor Szokoli<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br>