Package org.drools.command

Examples of org.drools.command.GetVariableCommand


        ExecutionResults results = (ExecutionResults) commandService.execute(resolveFromContextCommand);

        // I'm not expecting any results here
        assertNotNull(results);

        GetVariableCommand getVariableCmd = new GetVariableCommand("query123", "__TEMP__");
        resolveFromContextCommand = new KnowledgeContextResolveFromContextCommand(getVariableCmd,
                null, null, "ksession", "localResults");
        NativeQueryResults queryResults = (NativeQueryResults) commandService.execute(resolveFromContextCommand);

        assertNotNull(queryResults);
View Full Code Here


        ExecutionResults results = (ExecutionResults) commandService.execute(resolveFromContextCommand);

        // I'm not expecting any results here
        assertNull(results);

        GetVariableCommand getVariableCmd = new GetVariableCommand("query123", "__TEMP__");
        resolveFromContextCommand = new KnowledgeContextResolveFromContextCommand(getVariableCmd,
                null, null, "ksession", "localResults");
        NativeQueryResults queryResults = (NativeQueryResults) commandService.execute(resolveFromContextCommand);

        assertNotNull(queryResults);
View Full Code Here

    public String getActiveKnowledgeBuilderId() {
        return simulationFluent.getActiveKnowledgeBuilderId();
    }

    public SimulationFluent end(String context, String name) {
        addCommand(new GetVariableCommand(KnowledgeBuilder.class.getName()));
        addCommand(new SetVariableCommandFromLastReturn(context, name));
        return simulationFluent;
    }
View Full Code Here

        addCommand(new SetVariableCommandFromLastReturn(context, name));
        return simulationFluent;
    }
   
    public SimulationFluent end(String name) {
        addCommand(new GetVariableCommand(KnowledgeBuilder.class.getName()));
        addCommand(new SetVariableCommandFromLastReturn(name));
        return simulationFluent;
    }
View Full Code Here

    public String getActiveKnowledgeSessionId() {
        return simulationFluent.getActiveKnowledgeSessionId();
    }
   
    public SimulationFluent end(String context, String name) {
        addCommand(new GetVariableCommand(StatefulKnowledgeSession.class.getName()));
        addCommand(new SetVariableCommandFromLastReturn(context, name));
        return simulationFluent;
    }
View Full Code Here

        addCommand(new SetVariableCommandFromLastReturn(context, name));
        return simulationFluent;
    }
   
    public SimulationFluent end(String name) {
        addCommand(new GetVariableCommand(StatefulKnowledgeSession.class.getName()));
        addCommand(new SetVariableCommandFromLastReturn(name));
        return simulationFluent;
    }
View Full Code Here

        return new FluentStandardStatefulKnowledgeSessionImpl( getSim(),
                                                               this );
    }

    public FluentStandardKnowledgeBuilder getKnowledgeBuilder(String name) {
        getSim().addCommand( new GetVariableCommand( name ) );
        getSim().addCommand( new SetVariableCommandFromLastReturn( KnowledgeBuilder.class.getName() ) );

        return new FluentStandardKnowledgeBuilderImpl( getSim(),
                                                       this );
    }
View Full Code Here

        return new FluentStandardKnowledgeBuilderImpl( getSim(),
                                                       this );
    }

    public FluentStandardKnowledgeBase getKnowledgeBase(String name) {
        getSim().addCommand( new GetVariableCommand( name ) );
        getSim().addCommand( new SetVariableCommandFromLastReturn( KnowledgeBase.class.getName() ) );

        return new FluentStandardKnowledgeBaseImpl( getSim(),
                                                    this );
    }
View Full Code Here

        return new FluentStandardKnowledgeBaseImpl( getSim(),
                                                    this );
    }

    public FluentStandardStatefulKnowledgeSession getStatefulKnowledgeSession(String name) {
        getSim().addCommand( new GetVariableCommand( name ) );
        getSim().addCommand( new SetVariableCommandFromLastReturn( StatefulKnowledgeSession.class.getName() ) );

        return new FluentStandardStatefulKnowledgeSessionImpl( getSim(),
                                                               this );
    }
View Full Code Here

       
        return this;
    }

    public FluentStandardStep end(String context, String name) {
        getSim().addCommand( new GetVariableCommand( KnowledgeBuilder.class.getName() ) );
        getSim().addCommand( new SetVariableCommandFromLastReturn( context, name ) );
        return step;
    }
View Full Code Here

TOP

Related Classes of org.drools.command.GetVariableCommand

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.