<font size=2 face="sans-serif">I am in the same situation (and I suspect
a lot of people with complex domain models are), which is: how do I let
the user easily navigate my domain model while writing a rule. </font>
<br>
<br><font size=2 face="sans-serif">There is support for providing a custom
form within a popup when a fact constraint needs to be specified. You can
present it to the user whenever a fact constraint needs to be supplied
to the rule. Since you are providing the contents of the custom form, you
can represent your domain however you wish to, navigate it perhaps using
a tree, or even let the user perform a mini search to get to the "MeSH
category".</font>
<br>
<br><font size=2 face="sans-serif">The custom form does not currently work
with DSLs though, if you are planning on using DSL sentences. But you can
write your own DSL widget that does (not too difficult, if you know GWT).</font>
<br>
<br><font size=2 face="sans-serif">For my project, the biggest utility
value of drools is the standalone editor, the Guvnor rest api and the fact
that it is opensource (so that I can customize it for my very complex needs)</font>
<br>
<br><font size=2 face="sans-serif">Thanks</font>
<br><font size=2 face="sans-serif">G. Patel</font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From:
</font><font size=1 face="sans-serif">Bruno Freudensprung
<bruno.freudensprung@temis.com></font>
<br><font size=1 color=#5f5f5f face="sans-serif">To:
</font><font size=1 face="sans-serif">Rules Users List <rules-users@lists.jboss.org></font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date:
</font><font size=1 face="sans-serif">11/08/2011 10:49 AM</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject:
</font><font size=1 face="sans-serif">Re: [rules-users]
Data Modeling for medical expert system</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Sent by:
</font><font size=1 face="sans-serif">rules-users-bounces@lists.jboss.org</font>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2><br>
Hi Dirk,<br>
<br>
Good to see that I am not the only one fighting with that question :-).<br>
I guess the general answer is: it depends on how large your "enums"
<br>
might grow.<br>
<br>
For instance if your application is eventually supposed to help <br>
diagnosing (say) all MeSH diseases based on all MeSH symptoms, then an
<br>
approach where every symptom and disease is a Java class is not an <br>
option; this would lead to so many classes that I doubt Drools user <br>
interface will handle that, or will be useful anyway (drop-down lists <br>
with thousands of items).<br>
<br>
The opposite approach consists in creating a few "root" Java
classes <br>
like (say) Disease and Symptom and to store the MeSH hierarchy into a <br>
"name" attribute.<br>
The obvious drawback of the approach is that when your end-users will <br>
have to write the rules, they will be left with problems like:<br>
<br>
when<br>
Symptom(name == "well... what's the name of this MeSH
category??")<br>
then<br>
Disease(name == "hmmm... can't remember the exact name
of the <br>
disease as normalized in MeSH...")<br>
end<br>
<br>
I've posted a message on this topic (subject: Thoughts about rule <br>
authoring) and Michael Anstis kindly suggested a technical answer. I am
<br>
afraid it did not fit my needs, but it could fit yours :-).<br>
<br>
For the moment I have no solution (like an intermediate approach) to my
<br>
problem: I am stuck with approach #2.<br>
I have the impression that my problem requires a very tight integration
<br>
between my database (MeSH) and the Drools suggestion engine.<br>
<br>
If you have another approach, I would love to know it ;-).<br>
<br>
Best regards,<br>
<br>
Bruno.<br>
<br>
Le 08/11/2011 17:43, Dirk Conzelmann a écrit :<br>
> Hi everybody,<br>
><br>
> I am using Drools as a part of my Bachelor Thesis.<br>
> My job is to build an expert system for medical diagnoses.<br>
><br>
> My Question:<br>
> Is there a best practice known in modeling a variable<br>
> list of questions and answers in Drools?<br>
><br>
><br>
> Up to now I modeled the list of questions implementing<br>
> Java Classes and Enums for each question/answer pair.<br>
><br>
> But to be able to change those options easyly I need<br>
> a higher abstraction level than simple Java Classes and Enums.<br>
><br>
><br>
> Could someone show me an example how to implement this?<br>
><br>
><br>
> I hope I have explained my question understandable :)<br>
><br>
><br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
rules-users@lists.jboss.org<br>
</font></tt><a href="https://lists.jboss.org/mailman/listinfo/rules-users"><tt><font size=2>https://lists.jboss.org/mailman/listinfo/rules-users</font></tt></a><tt><font size=2><br>
</font></tt>
<br>
-----------------------------------------
The information contained in this communication (including any
attachments hereto) is confidential and is intended solely for the
personal and confidential use of the individual or entity to whom
it is addressed. If the reader of this message is not the intended
recipient or an agent responsible for delivering it to the intended
recipient, you are hereby notified that you have received this
communication in error and that any review, dissemination, copying,
or unauthorized use of this information, or the taking of any
action in reliance on the contents of this information is strictly
prohibited. If you have received this communication in error,
please notify us immediately by e-mail, and delete the original
message. Thank you