when using cyclic graphs, you could get into an infinite loop between
states. design your machine correctly.
public runToCompletion ( string $message = null ) : integer | ||
$message | string | optional message. this can be used by the persistence adapter to be part of the transition history to provide extra information about the transition. |
return | integer | the number of sucessful transitions made. |