예제 #1
0
    public WorkingMemoryReteAssertAction(MarshallerReaderContext context) throws IOException {
      this.factHandle = context.handles.get(context.readInt());
      this.removeLogical = context.readBoolean();
      this.updateEqualsMap = context.readBoolean();

      if (context.readBoolean()) {
        String pkgName = context.readUTF();
        String ruleName = context.readUTF();
        Package pkg = context.ruleBase.getPackage(pkgName);
        this.ruleOrigin = pkg.getRule(ruleName);
      }
      if (context.readBoolean()) {
        this.leftTuple = context.terminalTupleMap.get(context.readInt());
      }
    }
예제 #2
0
 public WorkingMemoryReteExpireAction(MarshallerReaderContext context) throws IOException {
   this.factHandle = context.handles.get(context.readInt());
   final int nodeId = context.readInt();
   this.node = (ObjectTypeNode) context.sinks.get(Integer.valueOf(nodeId));
 }