<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
Hi Michael,<br>
<br>
Thanks for taking time answering my message. Now I realize it was
not very clear.<br>
"Person" was never provided as an option, but I would love it did so
:-). If you had time, let me explain in a few words.<br>
<br>
For the moment, Drools completion engine provides quite the same
functionality for the rule language an IDE provides for the Java
language. Don't get me wrong, as a Java developper I think it is
really fantastic! And, as a Java developer, I know that know the
code completion engine cannot suggest anything about the value of a
String ("/Person/Jim"). <br>
<br>
What I wanted to say is: as Drools is not only targetted to Java
developers, "business users" might expect (and they actually do)
something more. They know that rules will apply on their data. Data
exists and "business users" know their data (they know about that
"/Person/Jim" does exist). However, as they don't know anything
about the impossibility in Java to suggest the content of a String
(they are not Java developers), they don't understand why the
completion engine can't keep on suggesting "/Person/Jim". Somehow
they have Google search in mind, that starts suggesting words as
soon as you type your query. Here in Drools it could be even more
accurate since the suggestion engine knows that the "/Person/name"
String is wanted for the "name" field of the "Annotation" class. So
maybe it could offer a suggestion hook method, even for Strings. As
a Java developer, I could implement it for my business users. This
would prevent business users from having to write
Java-developer-oriented solutions you proposed (and I thank you for
your proposals by the way :-)).<br>
<br>
I say I have the impression to be "in the middle" because I could
have a Person class (and I probably should), but I can't have a
class for every first name (Jim)<br>
<br>
I know this is completely out of the scope of a rule engine, however
it would fit Drools editor so well that I wanted to say it. <br>
<br>
Anyway, sorry for bothering you with my "delirium" ;-).<br>
<br>
Best regards,<br>
<br>
Bruno.<br>
<br>
<br>
Le 16/09/2011 17:53, Michael Anstis a écrit :
<blockquote
cite="mid:CAAG9P0tLYELQQu6aGRq8eosGR8iUR_O8kCAjixP+5nOp9qd96w@mail.gmail.com"
type="cite">You could externalise the paths for the annotations:-<br>
<br>
MyConfigurationSettings( $jimPath : pathToJimAnnotations )<br>
jim : Annotation( name = $jimPath )<br>
<br>
(where MyConfigurationSettings is a fact inserted into WM).<br>
<br>
or<br>
<br>
MyConfigurationSettings( $jimPath : pathToJimAnnotations ) from
$globalServiceObject.getMeMySettings( )<br>
jim : Annotation( name = $jimPath )<br>
<br>
(where MyConfigurationSettings is available from a - perhaps -
Hibernate query).<br>
<br>
I am surprised "Person" was provided as an option (without knowing
the auto-complete code in any detail). Perhaps it is a class on
your classpath?<br>
<br>
With kind regards,<br>
<br>
Mike<br>
<br>
<div class="gmail_quote">
On 16 September 2011 16:37, Bruno Freudensprung <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:bruno.freudensprung@temis.com">bruno.freudensprung@temis.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;">
Hi,<br>
<br>
I have a remark, maybe its just out of scope... however as it
is in the<br>
perspective of enabling end users to deal with their business
domain,<br>
leaving appart the technical aspects (which is one of strong
points of<br>
Drools), here it is.<br>
<br>
Drools is great because it enables to express things simply.
For<br>
instance, in my company, we are annotating text. So our rules
look like:<br>
when<br>
jim: Annotation (name = "/Person/Jim")<br>
boston: Annotation (name = "/City/Boston")<br>
...<br>
However, in the end, it turns out that what is inside Strings
is part as<br>
well of our business domain. Maybe it is probably stored into
a database<br>
or whatever.<br>
<br>
So, in my dreams (and, surprisingly, so said the customer I
saw<br>
yesterday and that didn't know anything about Drools!!), when
I<br>
Ctrl-space at the beginning of the String (after "/P), the
rule<br>
authoring environment suggests "/Person", juste because it
knows,<br>
somehow, that annotations can be one of those (maybe in
absolute, or in<br>
that particular context).<br>
<br>
Would you say that I completely lost my mind? :-) Or more
prosaically<br>
that there is a design flaw in my data model?<br>
Personnally I have the impression to be somewhere in the
middle...<br>
<br>
Best regards,<br>
<br>
Bruno.<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a moz-do-not-send="true"
href="https://lists.jboss.org/mailman/listinfo/rules-users"
target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote>
</div>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
</blockquote>
<br>
</body>
</html>