| DefaultAgenda agenda = context.ruleBase.getConfiguration().getComponentFactory().getAgendaFactory().createAgenda( context.ruleBase, false );
readAgenda( context,
_session.getRuleData(),
agenda );
ReteooStatefulSession session = new ReteooStatefulSession( id,
context.ruleBase,
handleFactory,
initialFactHandle,
0,
config,
agenda,
environment );
new StatefulKnowledgeSessionImpl( session );
initialFactHandle.setEntryPoint( session.getEntryPoints().get( EntryPoint.DEFAULT.getEntryPointId() ) );
return session;
}
|