Package org.drools.impl.adapters

Examples of org.drools.impl.adapters.StatefulKnowledgeSessionAdapter


public class KnowledgeStoreServiceImpl implements KnowledgeStoreService {
 
  public StatefulKnowledgeSession newStatefulKnowledgeSession(
      KnowledgeBase kbase, KnowledgeSessionConfiguration configuration,
      Environment environment) {
    return new StatefulKnowledgeSessionAdapter(JPAKnowledgeService.newStatefulKnowledgeSession(
      (KieBase) ((KnowledgeBaseAdapter) kbase).delegate,
      configuration == null ? null : ((KnowledgeSessionConfigurationAdapter) configuration).getDelegate(),
      ((EnvironmentAdapter) environment).delegate));
  }
View Full Code Here


  }

  public StatefulKnowledgeSession loadStatefulKnowledgeSession(int id,
      KnowledgeBase kbase, KnowledgeSessionConfiguration configuration,
      Environment environment) {
    return new StatefulKnowledgeSessionAdapter(JPAKnowledgeService.loadStatefulKnowledgeSession(
      id,
      (KieBase) ((KnowledgeBaseAdapter) kbase).delegate,
      configuration == null ? null : ((KnowledgeSessionConfigurationAdapter) configuration).getDelegate(),
      ((EnvironmentAdapter) environment).delegate));
  }
View Full Code Here

    public void writeExternal(ObjectOutput out) throws IOException {
    }

    public void handleException(Match match, RuleRuntime workingMemory, Exception exception) {
        throw new ConsequenceException( exception,
                new StatefulKnowledgeSessionAdapter( (StatefulKnowledgeSession) workingMemory ),
                new ActivationAdapter( match ) );
    }
View Full Code Here

TOP

Related Classes of org.drools.impl.adapters.StatefulKnowledgeSessionAdapter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.