title: Send embedded signing email with setting signing order
body: <p>So basically I need to use embedded signing feature to get the URL and embed into my application, and then my customer can sign the document from my side. Apart from that, after my customer signed on the doc, he needs to ask his debtor to sign on the same doc as well.
  So on DocuSign UI, I found that I can set a signing order, which means the second recipient receives the email right after the first recipient signed (perfect match my requirement).
  <a href="https://i.stack.imgur.com/DQtVw.png" rel="nofollow noreferrer">setting on UI</a>
  However, the second recipient can not receive the email after the first signer signed even though on UI it says sent.</p>
  
  <pre><code>public Envelope embeddedSigning(Long debtorId, String signerEmail, String signerName, String templateId) throws ApiException, IOException {
      // create an envelop
      EnvelopeDefinition envelope = makeEnvelope(debtorId, signerEmail, signerName, templateId);
  
      ApiClient apiClient = baseRestApiClient();
      apiClient.addDefaultHeader("Authorization", "Bearer " + getToken());
      EnvelopesApi envelopesApi = new EnvelopesApi(apiClient);
      EnvelopeSummary summary = envelopesApi.createEnvelope(accountId, envelope);
      RecipientViewRequest viewRequest = makeRecipientViewRequest(debtorId, signerEmail, signerName);
      ViewUrl viewUrl = envelopesApi.createRecipientView(accountId, summary.getEnvelopeId(), viewRequest);
  
      // @formatter:off
      return Envelope.builder()
          .envelopId(summary.getEnvelopeId())
          .redirectUrl(viewUrl.getUrl()).build();
      // @formatter:on
    }
  </code></pre>
  
  <pre><code>private EnvelopeDefinition makeEnvelope(Long debtorId, String signerEmail, String signerName, String templateId) throws IOException {
      EnvelopeDefinition envelopeDefinition = new EnvelopeDefinition();
      envelopeDefinition.setEmailSubject("Please sign this document");
      envelopeDefinition.setTemplateId(templateId);
  
      TemplateRole signer = new TemplateRole();
      signer.setEmail(signerEmail);
      signer.setName(signerName);
      signer.clientUserId(String.valueOf(debtorId));
      signer.setRoleName("signer0");
      signer.setRoutingOrder("1");
  
      TemplateRole signer1 = new TemplateRole();
      signer1.setEmail("xxx");
      signer1.setName("xxx");
      signer1.clientUserId(String.valueOf(xxx));
      signer1.setRoleName("signer1");
      signer1.setRoutingOrder("2");
  
      envelopeDefinition.setTemplateRoles(Arrays.asList(signer, signer1));
      envelopeDefinition.setStatus("sent");
      return envelopeDefinition;
    }
  </code></pre>