Details
-
Enhancement
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
None
-
Undefined
-
NEW
-
NEW
Description
Users want to trace the constraint evaluation when the condition is not matched, as the current DebugAgendaEventListener won't cover when the predicate is false
Beware of the performance risks as this is an hot path
To get the original rute associated to the alpha node, ReteDumper.dumpAssociatedRulesRete(kbase) give the information.
[JoinNode(8) - [ClassObjectType class=com.sample.Person]] : [Hello2] [LeftInputAdapterNode(7)] : [Hello2] [ObjectTypeNode(2)::EntryPoint::DEFAULT objectType=[ClassObjectType class=org.drools.core.reteoo.InitialFactImpl] expiration=-1ms ] : [] [ObjectTypeNode(3)::EntryPoint::DEFAULT objectType=[ClassObjectType class=com.sample.Person] expiration=-1ms ] : [Hello1, Hello2] [AlphaTerminalNode(5)] : [Hello1] [RuleTerminalNode(9): rule=Hello2] : [Hello2] [AlphaNode(4) constraint=age > 20] : [Hello1] [RuleTerminalNode(6): rule=Hello1] : [Hello1] [EntryPointNode(1) EntryPoint::DEFAULT ] : []