code: def get_next_action(self, request, application, roles):
          
          application.reopen()
          link, is_secret = base.get_email_link(application)
          emails.send_invite_email(application, link, is_secret)
          messages.success(
              request,
              "Sent an invitation to %s."
              % application.applicant.email)
          return 'success'
docs: Retrieve the next state.