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 );