Package org.apache.commons.scxml

Examples of org.apache.commons.scxml.Context


    public void tearDown() {
        staticmethod = null;
    }

    public void testJexlStaticMethodInvocation() {
        Context jc = new JexlContext();
        jc.set("System", System.class);
        SCXMLExecutor exec = SCXMLTestHelper.getExecutor(staticmethod,
                jc, new JexlEvaluator());
        Set currentStates = exec.getCurrentStatus().getStates();
        assertEquals(1, currentStates.size());
        assertEquals("static", ((State)currentStates.iterator().
View Full Code Here


        // set it in motion
        this.executor = new SCXMLExecutor(new ShaleDialogELEvaluator(),
                        new SimpleDispatcher(), new SimpleErrorReporter());
        SCXML statemachine = dialog.getStateMachine();
        this.executor.setStateMachine(statemachine);
        Context rootCtx = new ShaleDialogELContext();
        rootCtx.setLocal(Globals.DIALOG_PROPERTIES, new DialogProperties());
        this.executor.setRootContext(rootCtx);
        this.executor.addListener(statemachine, new DelegatingSCXMLListener());

        if (log().isDebugEnabled()) {
            log().debug("Constructor(id=" + id + ", name="
View Full Code Here

TOP

Related Classes of org.apache.commons.scxml.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.