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() ); } }
public static void readSlidingTimeWindowBehaviour( WindowNode windowNode, WindowMemory memory, SlidingTimeWindow stw, SlidingTimeWindowContext stwCtx, MarshallerReaderContext inCtx ) throws IOException { if (inCtx.readBoolean()) { int sinkId = inCtx.readInt(); int factId = inCtx.readInt(); RightTupleSink sink = (RightTupleSink) inCtx.sinks.get( sinkId ); RightTupleKey key = new RightTupleKey( factId, sink ); RightTuple rightTuple = inCtx.rightTuples.get( key ); //FIXME: stwCtx.expiringTuple = rightTuple; } if (inCtx.readBoolean()) { int size = inCtx.readInt(); for (int i = 0; i < size; i++) { int sinkId = inCtx.readInt(); int factId = inCtx.readInt(); RightTupleSink sink = (RightTupleSink) inCtx.sinks.get( sinkId ); RightTupleKey key = new RightTupleKey( factId, sink ); RightTuple rightTuple = inCtx.rightTuples.get( key ); //FIXME: stwCtx.queue.add( rightTuple ); } } }
if (inCtx.readBoolean()) { long endTime = inCtx.readLong(); trigger.setEndTime( new Date( endTime ) ); if (inCtx.readBoolean()) { long nextFireTime = inCtx.readLong(); trigger.setNextFireTime( new Date( nextFireTime ) ); long startTime = inCtx.readLong(); trigger.setStartTime( new Date( startTime ) ); if (inCtx.readBoolean()) { long endTime = inCtx.readLong(); trigger.setEndTime( new Date( endTime ) ); int repeatCount = inCtx.readInt(); trigger.setRepeatCount( repeatCount ); if (inCtx.readBoolean()) { long nextFireTime = inCtx.readLong(); trigger.setNextFireTime( new Date( nextFireTime ) );
boolean isOpen = context.readBoolean(); boolean unificationNode = context.readBoolean(); if (unificationNode) {
startTimeStamp = context.stream.readLong(); duration = context.stream.readLong(); expired = context.stream.readBoolean(); activationsCount = context.stream.readLong(); if (context.readBoolean()) { String entryPointId = context.readUTF(); if (entryPointId != null && !entryPointId.equals( "" )) {
MarshallerReaderContext context ) throws IOException, ClassNotFoundException { boolean multithread = context.readBoolean(); long time = context.readLong(); int handleId = context.readInt();
ClassNotFoundException { boolean multithread = context.readBoolean();
context.wm.getInitialFactHandle() ); if (context.stream.readBoolean()) { InternalFactHandle initialFactHandle = context.wm.getInitialFactHandle(); int sinkId = context.stream.readInt();