code: def StopProcessing(obj, eng, callbacks, exc_info):
          
          e = exc_info[1]
          obj.save(status=eng.object_status.COMPLETED,
                   id_workflow=eng.uuid)
          eng.save(WorkflowStatus.COMPLETED)
          obj.log.warning(
              "Workflow '%s' stopped at task %s with message: %s",
              eng.name, eng.current_taskname or "Unknown", e.message
          )
          db.session.commit()
  
          super(InvenioTransitionAction, InvenioTransitionAction).StopProcessing(
              obj, eng, callbacks, exc_info
          )
docs: Stop the engne and mark the workflow as completed.