<div dir="ltr">Hi,<br><br>in AlphaNode.java (similarly beta nodes descendants)<br>public void assertObject(final InternalFactHandle handle,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; final PropagationContext context,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; final InternalWorkingMemory workingMemory) throws FactException {<br>
if ( this.constraint.isAllowed( handle.getObject(),<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; workingMemory,<br>&nbsp;&nbsp; ... &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>}<br>&nbsp;// 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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Condition1 -&gt; Node1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Condition2 -&gt; Node2<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Condition3 -&gt; Node3<br><br>so if fact1 satisfies condition 1 &amp; 2 only, but condition 3 doesn&#39;t satisfy it, I need to store the information that rule 1 with condition 1 &amp; condition 2 have been satisfied.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <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>