<div dir="ltr">Hi,<br><br>in AlphaNode.java (similarly beta nodes descendants)<br>public void assertObject(final InternalFactHandle handle,<br> final PropagationContext context,<br> final InternalWorkingMemory workingMemory) throws FactException {<br>
if ( this.constraint.isAllowed( handle.getObject(),<br> workingMemory,<br> ... <br>}<br> // I need to put code here to get the rule and previous statisfied conditions<br>}<br>
<br>I need to get rule that owns the alpha or beta node as well as all the previous conditions that have been satisfied.<br><br>For example:<br>Rule 1 :<br> Condition1 -> Node1<br> Condition2 -> Node2<br>
Condition3 -> Node3<br><br>so if fact1 satisfies condition 1 & 2 only, but condition 3 doesn't satisfy it, I need to store the information that rule 1 with condition 1 & condition 2 have been satisfied.<br>
<br clear="all">So , how can I get the rule that owns the condition?<br>Can I get this information from workingMemoryEventSupport.fireObjectInserted event?<br><br>Thanks,<br>-- <br>Waleed Zedan<br>SCJP 1.4 , CCNA<br>
</div>