code: def ObjectRemovedEventHandler(analysis, event):
      
      # If all the remaining analyses have been submitted (or verified), try to
      # promote the transition to the Analysis Request
      # Note there is no need to check if the Analysis Request allows a given
      # transition, cause this is already managed by doActionFor
      analysis_request = analysis.getRequest()
      wf.doActionFor(analysis_request, "submit")
      wf.doActionFor(analysis_request, "verify")
      return
docs: Actions to be done when an analysis is removed from an Analysis Request