public void write(MarshallerWriteContext context) throws IOException { context.writeShort( WorkingMemoryAction.DeactivateCallback ); context.writeUTF( ruleFlowGroup.getName() ); }
context.writeUTF( group.getName() ); context.writeBoolean( group.isActive() ); AgendaGroup group = it.next(); context.writeShort( PersisterEnums.AGENDA_GROUP ); context.writeUTF( group.getName() ); context.writeShort( PersisterEnums.RULE_FLOW_GROUP ); context.writeUTF( group.getName() ); context.writeBoolean( group.isActive() ); context.writeBoolean( group.isAutoDeactivate() ); for ( Map.Entry<Long, String> entry : nodeInstances.entrySet() ) { context.writeLong( entry.getKey() ); context.writeUTF( entry.getValue() );
public void write(JobContext jobCtx, MarshallerWriteContext outputCtx) throws IOException { outputCtx.writeShort( PersisterEnums.EXPIRE_TIMER ); // ExpireJob, no state ExpireJobContext ejobCtx = (ExpireJobContext) jobCtx; WorkingMemoryReteExpireAction expireAction = ejobCtx.getExpireAction(); outputCtx.writeInt( expireAction.getFactHandle().getId() ); outputCtx.writeUTF( expireAction.getNode().getEntryPoint().getEntryPointId() ); outputCtx.writeUTF( ((ClassObjectType) expireAction.getNode().getObjectType()).getClassType().getName() ); DefaultJobHandle jobHandle = (DefaultJobHandle) ejobCtx.getJobHandle(); PointInTimeTrigger trigger = (PointInTimeTrigger) jobHandle.getTimerJobInstance().getTrigger(); outputCtx.writeLong( trigger.hasNextFireTime().getTime() ); }
public void write(MarshallerWriteContext context) throws IOException { context.writeShort( WorkingMemoryAction.WorkingMemoryReteAssertAction ); context.writeInt( this.factHandle.getId() ); context.writeBoolean( this.removeLogical ); context.writeBoolean( this.updateEqualsMap ); if ( this.ruleOrigin != null ) { context.writeBoolean( true ); context.writeUTF( ruleOrigin.getPackage() ); context.writeUTF( ruleOrigin.getName() ); } else { context.writeBoolean( false ); } if ( this.leftTuple != null ) { context.writeBoolean( true ); context.writeInt( context.terminalTupleMap.get( this.leftTuple ) ); } else { context.writeBoolean( false ); } }
outCtx.writeUTF( cronTrigger.getCronEx().getCronExpression() ); if ( cronTrigger.getNextFireTime() != null ) { outCtx.writeBoolean( true );
for ( WorkingMemoryEntryPoint wmep : wm.getEntryPoints().values() ) { context.stream.writeShort( PersisterEnums.ENTRY_POINT ); context.stream.writeUTF( wmep.getEntryPointId() ); writeFactHandles( context, (( NamedEntryPoint )wmep).getObjectStore() );