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 &quot;Person&quot; 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">&lt;<a href="mailto:bruno.freudensprung@temis.com">bruno.freudensprung@temis.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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 = &quot;/Person/Jim&quot;)<br>
     boston: Annotation (name = &quot;/City/Boston&quot;)<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&#39;t know anything about Drools!!), when I<br>
Ctrl-space at the beginning of the String (after &quot;/P), the rule<br>
authoring environment suggests &quot;/Person&quot;, 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 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>
</blockquote></div><br>