| t1 | --> | c | --> | t2 | --> | d | --> | t4 | --> | f | --> | t6 | --> | g | // +---+ +----+ +---+ +----+ +----+ +----+ +----+ +----+ +---+ // | ^ | ^ // | | | | // v | v | // +----+ | +----+ +----+ +----+ | // | b | ----------------+ | t3 | --> | e | --> | t5 | -----------------+ // +----+ +----+ +----+ +----+ } public function createSimpleWorkflowDefinition() { $places = range('a', 'c'); $transitions = array(); $transitions[] = new Transition('t1', 'a', 'b'); $transitions[] = new Transition('t2', 'b', 'c'); return new Definition($places, $transitions); } }