public static boolean isFinished ( final ExecutableFlow flow ) { switch ( flow . getStatus ( ) ) { case SUCCEEDED : case FAILED : case KILLED : return true ; default : return false ; } }
Check if the flow status is finished .