Hello everbody.
I'm still stuck in my ruled process engin.
My concern is the following :
I get rules with var call catching system that assumes ordering firing
between rules (it's OK)
[see thread "[Jelly][HowTo] Catch var call"]
Rules are written this way
<j:jelly xmlns:j="jelly:core" xmlns:x="jelly:xml" xmlns:r="jelly:photon">
<r:ruleSet var="rs">
<r:rule var="var1">
<...body...>
</r:rule>
<r:rule var="var2">
<...body....>
</r:rule>
</r:ruleSet>
<!-- execution of rule set -->
<r::ruleEngine ruleSet="${rs}"/>
</j:jelly>
Now I'm trying to put in context the rule var associated to rule body
evaluation.
AND I would the var to be a dom4j node (or list of dom4j nodes).
How I could do this ?
One way is to create an Writer for output and parse the result of
writer.toString() back.
But it's not elegant nor efficient.
Somebody has another trail to follow ?
Thanks.
............................................
Marc DeXeT
Direction des Syst�mes d'Informations
Centre National de la Recherche Scientifique
~ * ~
Information System Direction
National Center for Scientific Research
http://www.cnrs.fr
............................................