<br>
here's my bias 2 bits on rule configuration. in the past when I've
built rule servers, the configuration included the following modules
and components in the deployment description.<br>
<br>
1. rulesets - a list of rulesets<br>
2. initial facts - facts needed to run the rules<br>
3. modules - like functions<br>
4. models - domain object model<br>
5. number of engine instances - for creating a pool<br>
6. min pool number - initial number of engines<br>
7. max pool number - max number of engines<br>
8. name - name for the configuration if there are multiple<br>
<br>
I imagine for the solver you're NOT talking about a general purpose
deployment configuration, but thought i'd provide some food for thought.<br>
<br>
<br>
peter<br><br><div><span class="gmail_quote">On 1/23/07, <b class="gmail_sendername">Geoffrey De Smet</b> <<a href="mailto:ge0ffrey.spam@gmail.com">ge0ffrey.spam@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
For the solver I 'd like to externalize the configuration into an xml(?)<br> file.<br>something like<br><br><localsearch decisionMode="OPTIMAL"><br> <finish steps="500"/><br> <ruleBase location="/org/foo/bar/drools.drl"/>
<br></localsearch><br><br>This is a bit inspired by how ehcache is configured, clean and easy,<br>without any class implementation details: the way users like it.<br><br><br>I 've been thinking on doing this with XStream, but that's not versatile
<br>enough to make user friendly configuration files. Although Xstream works<br>out great to serialize solutions to and from xml files.<br><br>Next I was thinking about is JDom or Xom, but that's yet another<br>dependency. What would you guys recommend?
<br><br><br>--<br>With kind regards,<br>Geoffrey De Smet<br><br>_______________________________________________<br>rules-dev mailing list<br><a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-dev">
https://lists.jboss.org/mailman/listinfo/rules-dev</a><br></blockquote></div><br>