public void updateStep ( final String uuid , final Consumer < StepResult > update ) { final Optional < StepResult > found = storage . getStep ( uuid ) ; if ( ! found . isPresent ( ) ) { LOGGER . error ( "Could not update step: step with uuid {} not found" , uuid ) ; return ; } final StepResult step = found . get ( ) ; notifier . beforeStepUpdate ( step ) ; update . accept ( step ) ; notifier . afterStepUpdate ( step ) ; }
Updates step by specified uuid .