fsm for to call multiple processes in parallel