Package com.werken.blissed

Examples of com.werken.blissed.Process


        if ( processTag == null )
        {
            throw new JellyException( "Not within a process element" );
        }
       
        Process process = processTag.getProcess();

        return process;
    }
View Full Code Here


     *
     *  @throws Exception if an error occurs.
     */
    public void doTag(XMLOutput output) throws Exception
    {
        Process process = getCurrentProcess();

        checkStringAttribute( "name",
                              this.name );

        this.state = process.addState( this.name,
                                       this.description );

        invokeBody( output );

        if ( this.terminal )
        {
            this.state.addTransition( process.getTerminalState(),
                                      "terminal transition" );
        }
    }
View Full Code Here

     *
     *  @throws Exception if an error occurs.
     */
    public void doTag(XMLOutput output) throws Exception
    {
        Process process = getCurrentProcess();

        checkStringAttribute( "from",
                              this.from );

        checkStringAttribute( "to",
                              this.to );

        State fromState = process.getState( this.from );

        if ( fromState == null )
        {
            throw new JellyException( "No such state \"" + this.from  + "\"" );
        }

        State toState = process.getState( this.to );

        if ( toState == null )
        {
            throw new JellyException( "No such state \"" + this.to  + "\"" );
        }
View Full Code Here

                              getName() );

        checkStringAttribute( "start",
                              getStart() );

        this.process = new Process( getName(),
                                    "" );

        invokeBody( output );

        State startState = this.process.getState( getStart() );
View Full Code Here

        super( name );
    }

    public void setUp() throws Exception
    {
        this.process = new Process( "test.process",
                                    "test process" );

        this.state = this.process.addState( "state.1",
                                            "state one" );
View Full Code Here

                    activity.getProcess() );
    }

    public void testPerform() throws Exception
    {
        Process anotherProcess = new Process( "another.process",
                                              "another process" );

        State anotherState1 = anotherProcess.addState( "another.state.1",
                                                      "another state 1" );

        State anotherState2 = anotherProcess.addState( "another.state.2",
                                                       "another state 2" );

        anotherState1.addTransition( anotherState2,
                                     new BooleanGuard( false ),
                                     "trans" );


        anotherProcess.setStartState( anotherState1 );

        ProcessEngine engine = new ProcessEngine();

        ProcessContext context = engine.spawn( this.process );
View Full Code Here

        super( name );
    }

    public void setUp() throws Exception
    {
        this.process = new Process( "test.process",
                                    "test process" );

        this.state = this.process.addState( "state.1",
                                            "state one" );
View Full Code Here

                    activity.getProcess() );
    }

    public void testPerform() throws Exception
    {
        Process anotherProcess = new Process( "another.process",
                                              "another process" );

        State anotherState1 = anotherProcess.addState( "another.state.1",
                                                      "another state 1" );

        State anotherState2 = anotherProcess.addState( "another.state.2",
                                                       "another state 2" );

        anotherState1.addTransition( anotherState2,
                                     new BooleanGuard( false ),
                                     "trans" );


        anotherProcess.setStartState( anotherState1 );

        ProcessEngine engine = new ProcessEngine();

        ProcessContext context = engine.spawn( this.process );
View Full Code Here

TOP

Related Classes of com.werken.blissed.Process

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.