Thanks Wolfgang, this helps a lot! I must have missed the
getConditionalElements in the API. The analysis of the rule's LHS is
working great and it's RHS is more complex but do-able.
Once again, thanks for the advice,
Pete
On Thu, Aug 15, 2013 at 6:51 PM, Wolfgang Laun wrote:
> Rete has listDef
Rete has listDefrules and Defrule has getConditionalElements, which
lets you retrieve its constituents, depending on it being a Pattern or
Accumulate; if it is a Group you must recurse down... It's like
walking an AST
RHS is similar. But note that fact modifications are possible in
functions, so i
Dear Jess users.
What I am trying to do is to dynamically list all the defrules together
with their LHS and RHS facts excluding any conditions. Basically what I
mean is that, for example, if there are Person and Car facts on the rule's
LHS and the rule asserts an Owner fact, deletes the Car fact a