Package org.drools

Examples of org.drools.SessionConfiguration


    public KnowledgeSessionConfiguration newKnowledgeSessionConfiguration() {
        return new SessionConfiguration();
    }
       
    public KnowledgeSessionConfiguration newKnowledgeSessionConfiguration(Properties properties) {
        return new SessionConfiguration(properties);
    }       
View Full Code Here


    public ReteooWorkingMemory(final int id,
                               final InternalRuleBase ruleBase) {
        this( id,
              ruleBase,
              new SessionConfiguration(),
              EnvironmentFactory.newEnvironment() );
    }
View Full Code Here

        // need this for Generated beans to work
        allImps.add(bin.getName() + ".*");

        ClassTypeResolver classTypeResolver = new ClassTypeResolver(allImps,
                classLoader);
        SessionConfiguration sessionConfiguration = new SessionConfiguration();
        sessionConfiguration.setClockType(ClockType.PSEUDO_CLOCK);
        sessionConfiguration.setKeepReference(false);
        InternalWorkingMemory workingMemory = (InternalWorkingMemory) rulebase.newStatefulSession(sessionConfiguration,
                null);
        if (coverage != null) {
            workingMemory.addEventListener(coverage);
        }
View Full Code Here

                                             RuleCoverageListener coverage) throws DetailedSerializationException {

        RuleBase ruleBase = loadCacheRuleBase(item);
        Package aPackage = ruleBase.getPackages()[0];

        SessionConfiguration sessionConfiguration = new SessionConfiguration();
        sessionConfiguration.setClockType(ClockType.PSEUDO_CLOCK);
        sessionConfiguration.setKeepReference(false);
        InternalWorkingMemory workingMemory = (InternalWorkingMemory) ruleBase.newStatefulSession(
                sessionConfiguration,
                null);

        if (coverage != null) {
View Full Code Here

        }
    }
   

    public StatefulSession newStatefulSession(boolean keepReference) {
        SessionConfiguration config = new SessionConfiguration();
        config.setKeepReference( keepReference );

        return newStatefulSession( config,
                                   EnvironmentFactory.newEnvironment() );
    }
View Full Code Here

     */
    public ScenarioRunner(String xml,
            RuleBase ruleBase) throws ClassNotFoundException, InstantiationException, IllegalAccessException {
        this.scenario = ScenarioXMLPersistence.getInstance().unmarshal(xml);

        SessionConfiguration sessionConfiguration = new SessionConfiguration();
        sessionConfiguration.setClockType(ClockType.PSEUDO_CLOCK);

        this.workingMemory = (InternalWorkingMemory) ruleBase.newStatefulSession(sessionConfiguration,
                null);

        ClassLoader classLoader = ((InternalRuleBase) ruleBase).getRootClassLoader();
View Full Code Here

    public StatelessKnowledgeSessionImpl() {
    }

    public StatelessKnowledgeSessionImpl(final InternalRuleBase ruleBase, final KnowledgeSessionConfiguration conf) {
        this.ruleBase = ruleBase;
        this.conf = ( conf != null ) ? conf : new SessionConfiguration() ;
    }
View Full Code Here

  public StatefulSessionSnapshotter(RuleBase ruleBase) {
    this(ruleBase, null);
  }

  public StatefulSessionSnapshotter(RuleBase ruleBase, PlaceholderResolverStrategyFactory factory) {
    this(ruleBase, new SessionConfiguration(), factory);
  }
View Full Code Here

                                                                   context.ruleBase,
                                                                   executor,
                                                                   handleFactory,
                                                                   initialFactHandle,
                                                                   propagationCounter,
                                                                   new SessionConfiguration(), // FIXME: must deserialize configuration 
                                                                   agenda );

        // RuleFlowGroups need to reference the session
        for ( RuleFlowGroup group : agenda.getRuleFlowGroupsMap().values() ) {
            ((RuleFlowGroupImpl) group).setWorkingMemory( session );
View Full Code Here

    /**
     * @see RuleBase
     */
    public StatefulSession newStatefulSession() {
        return newStatefulSession( new SessionConfiguration() );
    }
View Full Code Here

TOP

Related Classes of org.drools.SessionConfiguration

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.