tkobayas commented on code in PR #7136:
URL: https://github.com/apache/incubator-kie/pull/7136#discussion_r4139673267
##########
drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/consequence/DroolsImpl.java:
##########
@@ -54,9 +54,11 @@ public class DroolsImpl implements Drools,
org.kie.api.runtime.rule.RuleContext
@Override
public void insert(Object object) {
- insert( object, false );
+ TerminalNode terminalNode =
((InternalMatch)getMatch()).getTerminalNode();
+
((InternalWorkingMemoryEntryPoint)reteEvaluator.getDefaultEntryPoint()).insert(object,
false, getRule(), terminalNode);
Review Comment:
fixed
##########
drools-core/src/main/java/org/drools/core/WorkingMemoryEntryPoint.java:
##########
@@ -42,15 +42,18 @@ public interface WorkingMemoryEntryPoint extends EntryPoint
{
* Insert a fact registering JavaBean <code>PropertyChangeListeners</code>
* on the Object to automatically trigger <code>update</code> calls
* if <code>dynamic</code> is <code>true</code>.
- *
+ *
* @param object
* The fact object.
* @param dynamic
* true if Drools should add JavaBean
* <code>PropertyChangeListeners</code> to the object.
- *
+ *
* @return The new fact-handle associated with the object.
+ * @deprecated Use {@link org.kie.api.runtime.KieSession#insert(Object)}
and declare the fact type
+ * with {@code @propertyChangeSupport} instead.
Review Comment:
fixed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]