public LogicalRetractCallback(MarshallerReaderContext context, Action _action) { LogicalRetract _retract = _action.getLogicalRetract(); this.tms = context.wm.getTruthMaintenanceSystem(); this.handle = context.handles.get( _retract.getHandleId() ); this.activation = (Activation) context.filter .getTuplesCache().get( PersisterHelper.createActivationKey( _retract.getActivation().getPackageName(), _retract.getActivation().getRuleName(), _retract.getActivation().getTuple() ) ).getObject(); this.context = this.activation.getPropagationContext(); this.beliefSet = (BeliefSet) this.tms.getJustifiedMap().get( handle.getId() ); for ( LinkedListEntry entry = (LinkedListEntry) beliefSet.getFirst(); entry != null; entry = (LinkedListEntry) entry.getNext() ) { final LogicalDependency node = (LogicalDependency) entry.getObject(); if ( node.getJustifier() == this.activation ) { this.node = node; break; } } }
public Builder mergeFrom(org.drools.marshalling.impl.ProtobufMessages.ActionQueue.LogicalRetract other) { if (other == org.drools.marshalling.impl.ProtobufMessages.ActionQueue.LogicalRetract.getDefaultInstance()) return this; if (other.hasHandleId()) { setHandleId(other.getHandleId()); } if (other.hasActivation()) { mergeActivation(other.getActivation()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }