Странное поведение с несколькими документами при использовании составных шаблонов

Это с Rest api. Мы видим кое-что интересное в нашей реализации. Я создаю составной шаблон для каждого документа в конверте, поэтому, если бы было 4 документа, было бы 4 составных шаблона. Предположим, у меня в конверте 5 документов, каждый с одной вкладкой для подписи. Мы видим, что когда получатель идет обрабатывать конверт, ему нужно 5 раз щелкнуть вкладку подписи на каждом документе, чтобы документ был полностью обработан. Если бы в конверте было 4 документа, это было бы 4 раза на каждую вкладку для подписи. Кажется, это связано с количеством документов в конверте. Это не похоже на поведение, которое мы хотим. Что мы могли делать не так?

Вот отправляемый JSON:

 "compositeTemplates": [
{
  "serverTemplates": [
    {
      "sequence": "1",
      "templateId": "15a22617-4525-438c-aaf1-45f8632ba2d1"
    }
  ],
  "inlineTemplates": [
    {
      "sequence": "1",
      "recipients": {
        "signers": [
          {
            "name": "BAT SDTwo",
            "email": "[email protected]",
            "recipientId": "6116945",
            "accessCode": "4792989",
            "customFields": [],
            "routingOrder": "1",
            "note": "",
            "roleName": "Customer_SellerName",
            "emailNotification": {
              "emailSubject": "Please sign the document(s)",
              "emailBody": "Hello,\r\n\r\nYour consultant has sent you a new document to view and sign.  Please click on the View Documents link below, review the content, and sign the Cartus document.  If you have any questions, please contact your consultant.\r\n\r\nThank you!",
              "supportedLanguage": "en"
            }
          },
          {
            "name": "SpouseF SpouseL",
            "email": "[email protected]",
            "recipientId": "6116946",
            "accessCode": "4792989",
            "customFields": [],
            "routingOrder": "2",
            "note": "",
            "roleName": "Spouse_CoOwnerName",
            "emailNotification": {
              "emailSubject": "Please sign the document(s)",
              "emailBody": "Hello,\r\n\r\nYour consultant has sent you a new document to view and sign.  Please click on the View Documents link below, review the content, and sign the Cartus document.  If you have any questions, please contact your consultant.\r\n\r\nThank you!",
              "supportedLanguage": "en"
            }
          }
        ],
        "certifiedDeliveries": []
      },

      }
    }
  ],
  "document": {
    "documentId": "1",
    "name": "e Bookmarks and Tags.pdf",
    "fileExtension": ".pdf",

    "documentBase64": "[Document:Base64Array]"
  }
},
{
  "serverTemplates": [
    {
      "sequence": "2",
      "templateId": "15a22617-4525-438c-aaf1-45f8632ba2d1"
    }
  ],
  "inlineTemplates": [
    {
      "sequence": "2",
      "recipients": {
        "signers": [
          {
            "name": "BAT SDTwo",
            "email": "[email protected]",
            "recipientId": "6116945",
            "accessCode": "4792989",
            "customFields": [],
            "routingOrder": "1",
            "note": "",
            "roleName": "Customer_SellerName",
            "emailNotification": {
              "emailSubject": "Please sign the document(s)",
              "emailBody": "Hello,\r\n\r\nYour consultant has sent you a new document to view and sign.  Please click on the View Documents link below, review the content, and sign the Cartus document.  If you have any questions, please contact your consultant.\r\n\r\nThank you!",
              "supportedLanguage": "en"
            }
          },
          {
            "name": "SpouseF SpouseL",
            "email": "[email protected]",
            "recipientId": "6116946",
            "accessCode": "4792989",
            "customFields": [],
            "routingOrder": "2",
            "note": "",
            "roleName": "Spouse_CoOwnerName",
            "emailNotification": {
              "emailSubject": "Please sign the document(s)",
              "emailBody": "Hello,\r\n\r\nYour consultant has sent you a new document to view and sign.  Please click on the View Documents link below, review the content, and sign the Cartus document.  If you have any questions, please contact your consultant.\r\n\r\nThank you!",
              "supportedLanguage": "en"
            }
          }
        ],
        "certifiedDeliveries": []
      },

    }
  ],
  "document": {
    "documentId": "2",
    "name": "e Bookmarks and Tags II.pdf",
    "fileExtension": ".pdf",

    "documentBase64": "[Document:Base64Array]"
  }
},
{
  "serverTemplates": [
    {
      "sequence": "3",
      "templateId": "15a22617-4525-438c-aaf1-45f8632ba2d1"
    }
  ],
  "inlineTemplates": [
    {
      "sequence": "3",
      "recipients": {
        "signers": [
          {
            "name": "BAT SDTwo",
            "email": "[email protected]",
            "recipientId": "6116945",
            "accessCode": "4792989",
            "customFields": [],
            "routingOrder": "1",
            "note": "",
            "roleName": "Customer_SellerName",
            "emailNotification": {
              "emailSubject": "Please sign the document(s)",
              "emailBody": "Hello,\r\n\r\nYour consultant has sent you a new document to view and sign.  Please click on the View Documents link below, review the content, and sign the Cartus document.  If you have any questions, please contact your consultant.\r\n\r\nThank you!",
              "supportedLanguage": "en"
            }
          },
          {
            "name": "SpouseF SpouseL",
            "email": "[email protected]",
            "recipientId": "6116946",
            "accessCode": "4792989",
            "customFields": [],
            "routingOrder": "2",
            "note": "",
            "roleName": "Spouse_CoOwnerName",
            "emailNotification": {
              "emailSubject": "Please sign the document(s)",
              "emailBody": "Hello,\r\n\r\nYour consultant has sent you a new document to view and sign.  Please click on the View Documents link below, review the content, and sign the Cartus document.  If you have any questions, please contact your consultant.\r\n\r\nThank you!",
              "supportedLanguage": "en"
            }
          }
        ],
        "certifiedDeliveries": []
      },

    }
  ],
  "document": {
    "documentId": "3",
    "name": "e Bookmarks and Tags Embedded.pdf",
    "fileExtension": ".pdf",

    "documentBase64": "[Document:Base64Array]"
  }
},
{
  "serverTemplates": [
    {
      "sequence": "4",
      "templateId": "15a22617-4525-438c-aaf1-45f8632ba2d1"
    }
  ],
  "inlineTemplates": [
    {
      "sequence": "4",
      "recipients": {
        "signers": [
          {
            "name": "BAT SDTwo",
            "email": "[email protected]",
            "recipientId": "6116945",
            "accessCode": "4792989",
            "customFields": [],
            "routingOrder": "1",
            "note": "",
            "roleName": "Customer_SellerName",
            "emailNotification": {
              "emailSubject": "Please sign the document(s)",
              "emailBody": "Hello,\r\n\r\nYour consultant has sent you a new document to view and sign.  Please click on the View Documents link below, review the content, and sign the Cartus document.  If you have any questions, please contact your consultant.\r\n\r\nThank you!",
              "supportedLanguage": "en"
            }
          },
          {
            "name": "SpouseF SpouseL",
            "email": "[email protected]",
            "recipientId": "6116946",
            "accessCode": "4792989",
            "customFields": [],
            "routingOrder": "2",
            "note": "",
            "roleName": "Spouse_CoOwnerName",
            "emailNotification": {
              "emailSubject": "Please sign the document(s)",
              "emailBody": "Hello,\r\n\r\nYour consultant has sent you a new document to view and sign.  Please click on the View Documents link below, review the content, and sign the Cartus document.  If you have any questions, please contact your consultant.\r\n\r\nThank you!",
              "supportedLanguage": "en"
            }
          }
        ],
        "certifiedDeliveries": []
      },

    }
  ],
  "document": {
    "documentId": "4",
    "name": "e Static.pdf",
    "fileExtension": ".pdf",

    "documentBase64": "[Document:Base64Array]"
  }
},
{
  "serverTemplates": [
    {
      "sequence": "5",
      "templateId": "15a22617-4525-438c-aaf1-45f8632ba2d1"
    }
  ],
  "inlineTemplates": [
    {
      "sequence": "5",
      "recipients": {
        "signers": [
          {
            "name": "BAT SDTwo",
            "email": "[email protected]",
            "recipientId": "6116945",
            "accessCode": "4792989",
            "customFields": [],
            "routingOrder": "1",
            "note": "",
            "roleName": "Customer_SellerName",
            "emailNotification": {
              "emailSubject": "Please sign the document(s)",
              "emailBody": "Hello,\r\n\r\nYour consultant has sent you a new document to view and sign.  Please click on the View Documents link below, review the content, and sign the Cartus document.  If you have any questions, please contact your consultant.\r\n\r\nThank you!",
              "supportedLanguage": "en"
            }
          },
          {
            "name": "SpouseF SpouseL",
            "email": "[email protected]",
            "recipientId": "6116946",
            "accessCode": "4792989",
            "customFields": [],
            "routingOrder": "2",
            "note": "",
            "roleName": "Spouse_CoOwnerName",
            "emailNotification": {
              "emailSubject": "Please sign the document(s)",
              "emailBody": "Hello,\r\n\r\nYour consultant has sent you a new document to view and sign.  Please click on the View Documents link below, review the content, and sign the Cartus document.  If you have any questions, please contact your consultant.\r\n\r\nThank you!",
              "supportedLanguage": "en"
            }
          }
        ],
        "certifiedDeliveries": []
      },

    }
  ],
  "document": {
    "documentId": "5",
    "name": "e Static II.pdf",
    "fileExtension": ".pdf",

    "documentBase64": "[Document:Base64Array]"
  }
},
{
  "serverTemplates": [
    {
      "sequence": "6",
      "templateId": "15a22617-4525-438c-aaf1-45f8632ba2d1"
    }
  ],
  "inlineTemplates": [
    {
      "sequence": "6",
      "recipients": {
        "signers": [
          {
            "name": "BAT SDTwo",
            "email": "[email protected]",
            "recipientId": "6116945",
            "accessCode": "4792989",
            "customFields": [],
            "routingOrder": "1",
            "note": "",
            "roleName": "Customer_SellerName",
            "emailNotification": {
              "emailSubject": "Please sign the document(s)",
              "emailBody": "Hello,\r\n\r\nYour consultant has sent you a new document to view and sign.  Please click on the View Documents link below, review the content, and sign the Cartus document.  If you have any questions, please contact your consultant.\r\n\r\nThank you!",
              "supportedLanguage": "en"
            }
          },
          {
            "name": "SpouseF SpouseL",
            "email": "[email protected]",
            "recipientId": "6116946",
            "accessCode": "4792989",
            "customFields": [],
            "routingOrder": "2",
            "note": "",
            "roleName": "Spouse_CoOwnerName",
            "emailNotification": {
              "emailSubject": "Please sign the  document(s)",
              "emailBody": "Hello,\r\n\r\nYour consultant has sent you a new document to view and sign.  Please click on the View Documents link below, review the content, and sign the Cartus document.  If you have any questions, please contact your consultant.\r\n\r\nThank you!",
              "supportedLanguage": "en"
            }
          }
        ],
        "certifiedDeliveries": []
      },

    }
  ],
  "document": {
    "documentId": "6",
    "name": "e Static Embedded.pdf",
    "fileExtension": ".pdf",

    "documentBase64": "[Document:Base64Array]"
  }
}

],


person Kathy Lori    schedule 25.05.2017    source источник
comment
Не могли бы вы разместить свой запрос в формате JSON.   -  person Praveen Reddy    schedule 25.05.2017
comment
Я применил очень простой подход к нашей оболочке, потому что мы все еще изучали шаблоны и то, как выполнять то, что нам нужно. Я также сделал ошибочное предположение, что у вас может быть только один документ на составной шаблон. Для большинства наших конвертов у нас будет 8 или 10 документов и, возможно, только 1 шаблон для всех этих документов.   -  person Kathy Lori    schedule 25.05.2017


Ответы (1)


В используемом вами шаблоне сервера есть якорные вкладки. Это создает дублирующиеся вкладки поверх уже существующих вкладок. Область вкладок привязки находится на уровне конверта, поэтому, если вы указываете 5 составных шаблонов, вкладки привязки в каждом шаблоне будут применяться ко всему конверту.

Во время церемонии подписания вы можете нажимать на 5 разных вкладок подписи, которые находятся друг над другом, но при этом думаете, что одну и ту же вкладку нужно щелкнуть 5 раз.

Попробуйте использовать вкладки с фиксированным расположением вместо вкладок привязки. Это решит проблему дублирования вкладок.

person Praveen Reddy    schedule 25.05.2017
comment
Боюсь, мы намерены использовать вкладки Anchor. По крайней мере, я знаю, каково это сейчас. - person Kathy Lori; 25.05.2017