[rules-users] Drools solver info => provide DSL instead of DRL to Drools Solver
Geoffrey De Smet
ge0ffrey.spam at gmail.com
Thu Nov 12 14:24:01 EST 2009
Hi Marco,
[I've send this answer to the drools user list,
please post any follow ups on the user list instead of mailing it
directly to me.
You can use nntp://news.gmane.org #gmane.comp.java.drools.user if you
want to keep your mailbox clean.]
Drools Solver's xml configuration doesn't support <scoreDsl> entry's yet
That shouldn't be to much work. I just created a JIRA for it:
https://jira.jboss.org/jira/browse/JBRULES-2333
Patch welcome (attached to that jira) and I would apply it within a week
on trunk.
Short of doing the patch on trunk, you can do this workaround:
- build the Solver directly yourself (basically just fisheye.jboss.org
for XmlSolverConfigurer's code). Not recommended.
- supply a an empty drl to <scoreDrl>, build the Solver, cast it to
DefaultLocalSearchSolver and replace the rulebase.
Both are not ideal in the long run though.
With kind regards,
Geoffrey De Smet
Marco caminiti schreef:
> Hi Geoffrey,
> I'm Marco Caminiti an Italian student of computer engineering. I'm
> using drools solver for my thesis and I have a problem.
>
> For the thesis I made a model of bin packing writing the rules on a
> drl file, and thus far, so good.
>
> Now I want to rewrite the rules that must use the solver in a specific
> language, but if I put in the configuration file of the solver the URL
> of the file DSL (or file DSLR) the solver crashes because it can not
> be configured.
>
> I ask whether you can use the solver with DSL tool and if so how could
> I do.
>
> Sorry to bother you but on this argument I have not found
> documentation on the Internet, more than anything else I'm sorry for
> my English.
>
> Thanks from now for the answer.
> Marco Caminiti
>
>
More information about the rules-users
mailing list