Examples of GetVariableCommand


Examples of org.drools.core.command.GetVariableCommand

        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");
        QueryResultsRowImpl queryResults = (QueryResultsRowImpl) commandService.execute(resolveFromContextCommand);

        assertNotNull(queryResults);
View Full Code Here

Examples of org.drools.core.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");
        QueryResultsRowImpl queryResults = (QueryResultsRowImpl) commandService.execute(resolveFromContextCommand);

        assertNotNull(queryResults);
View Full Code Here

Examples of org.drools.core.command.GetVariableCommand

        return new DefaultStatefulKnowledgeSessionSimFluent( this );
    }

    public KieSessionSimulationFluent getKieSession(String id) {
        activeKieSessionId = id;
        addCommand(new GetVariableCommand(id));
        addCommand(new SetVariableCommandFromLastReturn(StatefulKnowledgeSession.class.getName()));

        return new DefaultStatefulKnowledgeSessionSimFluent( this );
    }
View Full Code Here

Examples of org.drools.core.command.GetVariableCommand

//    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

Examples of org.drools.core.command.GetVariableCommand

        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

Examples of org.drools.core.command.GetVariableCommand

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

Examples of org.drools.core.command.GetVariableCommand

        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

Examples of org.python.pydev.debug.model.remote.GetVariableCommand

        } else if (networkState == NETWORK_REQUEST_NOT_ARRIVED) {
            return getWaitVariables();
        }

        // send the command, and then busy-wait
        GetVariableCommand cmd = getVariableCommand(target);
        cmd.setCompletionListener(this);
        networkState = NETWORK_REQUEST_NOT_ARRIVED;
        fireChangeEvent = false; // do not fire change event while we are waiting on response
        target.postCommand(cmd);
        try {
            // VariablesView does not deal well with children changing asynchronously.
View Full Code Here

Examples of org.python.pydev.debug.model.remote.GetVariableCommand

            return getWaitVariables();
        }
    }

    public GetVariableCommand getVariableCommand(AbstractDebugTarget dbg) {
        return new GetVariableCommand(dbg, getPyDBLocation());
    }
View Full Code Here

Examples of org.python.pydev.debug.model.remote.GetVariableCommand

            target = variableCollection.getTarget();
            if (target != null) {
                locator = variableCollection;

                GetVariableCommand variableCommand = variableCollection.getVariableCommand(target);
                variableCommand.setCompletionListener(this);
                target.postCommand(variableCommand);
                return waitForCommand();
            }
            return new Object[0];

        } else if (o instanceof PyStackFrame) {
            PyStackFrame f = (PyStackFrame) o;

            target = f.getTarget();
            if (target != null) {
                locator = f;

                GetVariableCommand variableCommand = f.getFrameCommand(target);
                variableCommand.setCompletionListener(this);
                target.postCommand(variableCommand);
                return waitForCommand();
            }
            return new Object[0];
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.