@Override public void activate() { super.activate(); // need to init one session to bootstrap all case - such as start timers KieSession initialKsession = factory.newKieSession(); initialKsession.execute(new DestroyKSessionCommand(initialKsession, this)); }
@Override public void activate() { super.activate(); // need to init one session to bootstrap all case - such as start timers KieSession initialKsession = factory.newKieSession(); initialKsession.execute(new DestroyKSessionCommand(initialKsession, this)); }
@Override public KieSession initKieSession(Context<?> context, InternalRuntimeManager manager, RuntimeEngine engine) { RuntimeEngine inUse = local.get().get(identifier); if (inUse != null && ((RuntimeEngineImpl) inUse).internalGetKieSession() != null) { return inUse.getKieSession(); } KieSession ksession = factory.newKieSession(); ((RuntimeEngineImpl)engine).internalSetKieSession(ksession); registerDisposeCallback(engine, new DisposeSessionTransactionSynchronization(manager, engine), ksession.getEnvironment()); registerDisposeCallback(engine, new DestroySessionTransactionSynchronization(ksession), ksession.getEnvironment()); registerItems(engine); attachManager(engine); return ksession; }
runtime = new RuntimeEngineImpl(factory.newKieSession(), internalTaskService); ((RuntimeEngineImpl) runtime).setManager(this);
ksession = factory.newKieSession(); ksessionId = ksession.getIdentifier(); if (context instanceof CaseContext) {
KieSession initialKsession = factory.newKieSession();
KieSession initialKsession = factory.newKieSession();
ksessionId = mapper.findMapping(context, this.identifier); if (ksessionId == null) { ksession = factory.newKieSession(); ksessionId = ksession.getIdentifier();
Long ksessionId = null; if (contextId == null || context instanceof EmptyContext) { ksession = factory.newKieSession(); ksessionId = ksession.getIdentifier(); } else {
this.singleton = new SynchronizedRuntimeImpl(factory.newKieSession(), internalTaskService); persistSessionId(location, identifier, singleton.getKieSession().getIdentifier());
Long ksessionId = null; if (contextId == null || context instanceof EmptyContext ) { ksession = factory.newKieSession(); ksessionId = ksession.getIdentifier(); } else {
@Override public void init() { KieSession ksession = factory.newKieSession(); ksession.execute(new GenericCommand<Void>() { private static final long serialVersionUID = 1L;
@Override public void activate() { super.activate(); // need to init one session to bootstrap all case - such as start timers KieSession initialKsession = factory.newKieSession(); initialKsession.execute(new DestroyKSessionCommand(initialKsession, this)); }
@Override public void activate() { super.activate(); // need to init one session to bootstrap all case - such as start timers KieSession initialKsession = factory.newKieSession(); initialKsession.execute(new DestroyKSessionCommand(initialKsession, this)); }
@Override public KieSession initKieSession(Context<?> context, InternalRuntimeManager manager, RuntimeEngine engine) { RuntimeEngine inUse = local.get().get(identifier); if (inUse != null && ((RuntimeEngineImpl) inUse).internalGetKieSession() != null) { return inUse.getKieSession(); } KieSession ksession = factory.newKieSession(); ((RuntimeEngineImpl)engine).internalSetKieSession(ksession); registerDisposeCallback(engine, new DisposeSessionTransactionSynchronization(manager, engine), ksession.getEnvironment()); registerDisposeCallback(engine, new DestroySessionTransactionSynchronization(ksession), ksession.getEnvironment()); registerItems(engine); attachManager(engine); return ksession; }
runtime = new RuntimeEngineImpl(factory.newKieSession(), internalTaskService); ((RuntimeEngineImpl) runtime).setManager(this);
ksession = factory.newKieSession(); ksessionId = ksession.getIdentifier(); if (context instanceof CaseContext) {
KieSession initialKsession = factory.newKieSession();
this.singleton = new SynchronizedRuntimeImpl(factory.newKieSession(), internalTaskService); persistSessionId(location, identifier, singleton.getKieSession().getIdentifier());
Long ksessionId = null; if (contextId == null || context instanceof EmptyContext ) { ksession = factory.newKieSession(); ksessionId = ksession.getIdentifier(); } else {