Package org.drools.command

Examples of org.drools.command.Context


        this.identifier = identifier;
        this.contextName = contextName;
    }

    public Object execute(Context ctx) {       
        Context targetCtx;
        if ( this.contextName == null ) {
            targetCtx = ctx;
        } else {
            targetCtx = ctx.getContextManager().getContext( this.contextName );
        }
       
        return targetCtx.get( identifier);       
    }
View Full Code Here


            return null;
        }
        StepImpl step = (StepImpl) this.queue.remove();
        PathImpl path = (PathImpl) step.getPath();

        Context pathContext = this.contexts.get( path.getName() );
       
        // increment the clock for all the registered ksessions
        for ( StatefulKnowledgeSession ksession : this.ksessions ) {
          SessionPseudoClock clock = (SessionPseudoClock) ksession.getSessionClock();
 
View Full Code Here

            return null;
        }
        StepImpl step = (StepImpl) this.queue.remove();
        PathImpl path = (PathImpl) step.getPath();

        Context pathContext = new ResolvingKnowledgeCommandContext( this.contexts.get( path.getName() ) );

        // increment the clock for all the registered ksessions
        for ( StatefulKnowledgeSession ksession : this.ksessions ) {
            SessionPseudoClock clock = (SessionPseudoClock) ksession.getSessionClock();
            long newTime = startTime + step.getTemporalDistance();
View Full Code Here

            return null;
        }
        StepImpl step = (StepImpl) this.queue.remove();
        PathImpl path = (PathImpl) step.getPath();

        Context pathContext = this.contexts.get( path.getName() );
       
        // increment the clock for all the registered ksessions
        for ( StatefulKnowledgeSession ksession : this.ksessions ) {
          SessionPseudoClock clock = (SessionPseudoClock) ksession.getSessionClock();
 
View Full Code Here

            return null;
        }
        StepImpl step = (StepImpl) this.queue.remove();
        PathImpl path = (PathImpl) step.getPath();

        Context pathContext = this.contexts.get( path.getName() );
       
        // increment the clock for all the registered ksessions
        for ( StatefulKnowledgeSession ksession : this.ksessions ) {
          SessionPseudoClock clock = (SessionPseudoClock) ksession.getSessionClock();
 
View Full Code Here

    public void setCommandExecutionHandler(CommandExecutionHandler executionHandler) {
        this.executionHandler = executionHandler;
    }
   
    public Context createContext(String identifier) {
        Context ctx = this.contexts.getidentifier );
        if ( ctx == null ) {
            ctx = new ContextImpl( identifier, this, root );
            this.contexts.putidentifier, ctx );
        }
       
View Full Code Here

        this.world = world;
        rootShadow = new ShadowContextImpl( world.getName(), world, this );
    }
   
    public Context createContext(String identifier) {
        Context actualCtx = world.getContext( identifier );
        if ( actualCtx == null ) {
//            actualCtx = world.createContext( identifier );
        }
       
        ShadowContext shadowCtx = contexts.get( identifier );
View Full Code Here

TOP

Related Classes of org.drools.command.Context

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.