/** * Create a new session into which to read the stream data * @param context * @param id * @param executor * @return * @throws IOException * @throws ClassNotFoundException */ public static ReteooStatefulSession readSession( MarshallerReaderContext context, int id, ExecutorService executor ) throws IOException, ClassNotFoundException { return readSession( context, id, executor, EnvironmentFactory.newEnvironment(), SessionConfiguration.getDefaultInstance() ); }
public void unmarshall(final InputStream stream, final StatefulKnowledgeSession ksession) throws IOException, ClassNotFoundException { MarshallerReaderContext context = new MarshallerReaderContext( stream, (InternalRuleBase) ((KnowledgeBaseImpl) kbase).ruleBase, RuleBaseNodes.getNodeMap( (InternalRuleBase) ((KnowledgeBaseImpl) kbase).ruleBase ), this.strategyStore, this.timerReaders, this.marshallingConfig.isMarshallProcessInstances(), marshallingConfig.isMarshallWorkItems(), ksession.getEnvironment() ); InputMarshaller.readSession( (ReteooStatefulSession) ((StatefulKnowledgeSessionImpl) ksession).session, context ); context.close(); }
agenda ); return readSession( session, agenda, time,
return readSession( session, agenda, time,
ExecutorService executor = ExecutorServiceFactory.createExecutorService( conf.getExecutorService() ); ReteooStatefulSession session = InputMarshaller.readSession( context, id, executor,