def after_submit(analysis_request): """Function called after a 'submit' transition is triggered. Promotes the submission of ancestors and descendants (partitions). """ # This transition is not meant to be triggered manually by the user, rather # promoted by analyses. Hence, there is no need to cascade the transition # to the analyses the analysis request contains. do_action_to_ancestors(analysis_request, "submit") do_action_to_descendants(analysis_request, "submit")
def after_verify(analysis_request): """Method triggered after a 'verify' transition for the Analysis Request passed in is performed. Promotes the 'verify' transition to ancestors, descendants and to the analyses that belong to the analysis request. """ # This transition is not meant to be triggered manually by the user, rather # promoted by analyses. Hence, there is no need to cascade the transition # to the analyses the analysis request contains. do_action_to_ancestors(analysis_request, "verify") do_action_to_descendants(analysis_request, "verify")