<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2873" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=573002208-06072007><FONT face=Arial
color=#0000ff size=2>Hi,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=573002208-06072007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=573002208-06072007><FONT face=Arial
color=#0000ff size=2>Apart from possibly stepping too far across the "user"
mailing list to this "developer" list; </FONT></SPAN><SPAN
class=573002208-06072007><FONT face=Arial color=#0000ff size=2>I've commented
the JIRA to the extent that allowing for "value domains" could be accommodated
by exposing (in this particular case) the "from" keyword in the editor. This
would allow for static and dynamic lists to be included in rules. Perhaps a
wider requirement would be to expose more DRL keywords in a graphical form;
rather than the more simple facts, CE's and other
predicates?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=573002208-06072007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN><FONT face=Arial color=#0000ff
size=2></FONT> </DIV>
<DIV dir=ltr align=left><SPAN class=573002208-06072007><FONT face=Arial
color=#0000ff size=2>With kind regards,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=573002208-06072007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=573002208-06072007><FONT face=Arial
color=#0000ff size=2>Mike</FONT></SPAN></DIV><BR>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> rules-dev-bounces@lists.jboss.org
[mailto:rules-dev-bounces@lists.jboss.org] <B>On Behalf Of </B>Michael
Neale<BR><B>Sent:</B> 06 July 2007 08:54<BR><B>To:</B> Rules Dev
List<BR><B>Subject:</B> Re: [rules-dev] JBRMS question - originally posted to
FMeyer<BR></FONT><BR></DIV>
<DIV></DIV>Hi Steve (/me is coming up for some air, thought I would have a
look on the mailing lists !).<BR><BR>I assume you are talking about data
driven enumerations - so basically "somewhere" you have a list of values, and
that is provided to users as a drop down (plus validated etc). <BR><BR>This is
useful for GUI stuff, but also (potentially) helpful for indexing for
performance (but thats for another day).<BR><BR>There is a JIRA for this, for
v2 of the BRMS: <A
href="http://jira.jboss.com/jira/browse/JBRULES-821">http://jira.jboss.com/jira/browse/JBRULES-821</A>
would be great if you could put your thoughts down there.<BR><BR>I think ILog
calls these "domains" - I like the term "value domain" or something like it.
<BR><BR>In any case, I think a variety of sources need to be provided for
this: so the list of values could be part of the "ontology" (the fact model,
more to come on that later) - ie some attribute of the package definition
specifies a list of value. OR, perhaps it comes from an external source, like
a flat file, or a database query - eg you may have some external database with
Part Numbers for a Widget (!) - those part numbers may change from time to
time, so it should periodically refresh the list. <BR><BR>One extra feature is
to be able to have name/value lists - so the name is shown, but the value
applies - say you may want to display a human readable description of the part
number, but the rule only cares about the value from the database. <BR><BR>My
$0.02.<BR><BR>Michael.<BR><BR>
<DIV><SPAN class=gmail_quote>On 7/6/07, <B class=gmail_sendername>Barfield
Steve</B> <<A onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:Steve.Barfield@uk.fujitsu.com" target=_blank>
Steve.Barfield@uk.fujitsu.com</A>> wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV lang=EN-GB vlink="purple" link="blue">
<DIV>
<P><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Fernando,</SPAN></FONT></P>
<P><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Thanks for finding time to
reply, I know your all busting a gut at the mo.</SPAN></FONT></P>
<P><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Firstly, just to confirm you
don't think I've missed a more obvious way of getting a set of values (say
countries) into JBRMS for use in rule conditions.</SPAN></FONT></P>
<P><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Secondly, I'm not sure I know
enough yet to suggest enhancements to JBRMS. </SPAN></FONT></P>
<P><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Even if tables of user-defined
values could be held INSIDE JBRMS for rule conditions, it would make sense
for the same tables to be visible OUTSIDE</SPAN></FONT></P>
<P><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">JBRMS to set the data that was
being submitted to the rules. If a rule is written for country "SPA" ie
Spain, this rule would not be fired if data </SPAN></FONT></P>
<P><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">was submitted for country
"SPN".</SPAN></FONT></P>
<P><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P><B><FONT face=Arial size=1><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 7.5pt; FONT-FAMILY: Arial">Regards,
Steve Barfield, Developer
</SPAN></FONT></B></P></DIV></DIV><BR>_______________________________________________<BR>rules-dev
mailing list<BR><A onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:rules-dev@lists.jboss.org"
target=_blank>rules-dev@lists.jboss.org </A><BR><A
onclick="return top.js.OpenExtLink(window,event,this)"
href="https://lists.jboss.org/mailman/listinfo/rules-dev"
target=_blank>https://lists.jboss.org/mailman/listinfo/rules-dev</A><BR><BR></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>