Account
I am a
Developer
Product(s)
Earned badges
Achievement: Latest Unlocked
Preferences
Replies
Topics Started
Topic Started
Topics |
---|
I am using the Java SDK version 10.10.1
I am creating a package with one document. There is one Signer.
|
Replies Created
Reply to: Getting an exception using FULL_NAME + INITIALS signature styles in one document
Thursday, September 29, 2016 at 04:56amThe settings changes (step 3) are not the issue.
I can remove all of the code between the getPackage and UpdatePackage calls and still get the exception.
The issue appears to be that the Signature Style for the signature that was set to FULL_NAME in createPackage is changed to ACCEPTENCE, either as part of the createPackage process or part of the getPackage process.
Here is mycode the has the calls to create and get package and also lists the Signature styles before createPackage and after getPackage.
System.out.println("List Signature Style for Documents in Package before calling CreatePackage()"); listSignatureStylesForDocuments(pkg); System.out.println("Call CreatePackage()"); packageId = eslClient.createPackage( pkg ); System.out.println("Call getPackage()"); DocumentPackage createdPackage = eslClient.getPackage(packageId); System.out.println("List Signature Style for Documents in Package from calling getPackage()"); listSignatureStylesForDocuments(createdPackage); System.out.println("Update the package with changes."); eslClient.updatePackage(packageId, createdPackage); -------------------------------- void listSignatureStylesForDocuments(DocumentPackage pkg) { int docNumber = 1; for(Document document : pkg.getDocuments()) { System.out.println(" > Document # " + docNumber + " (" + document.getName() + ") Signatures:"); for (Signature signature : document.getSignatures()) { System.out.println("Signature id:" + signature.getId() + " Style: " + signature.getStyle()); } docNumber++; } }The output looks like this: List Signature Style for Documents in Package before calling CreatePackage() > Document # 1 (Application) Signatures: Signature id:null Style: FULL_NAME Signature id:null Style: INITIALS Call CreatePackage() Call getPackage() List Signature Style for Documents in Package from calling getPackage() > Document # 1 (Electronic Disclosures and Signatures Consent) Signatures: > Document # 2 (Application) Signatures: Signature id:zHloZyW9nBIB Style: ACCEPTANCE Signature id:n30t2WCfno0V Style: INITIALS Update the package with changes. com.silanis.esl.sdk.EslException: It is not allowed to use acceptance signature styles and other signature styles together in one document. at com.silanis.esl.sdk.EslClient.validateMixingSignatureAndAcceptance(EslClient.java:289) at com.silanis.esl.sdk.EslClient.validateSignatures(EslClient.java:276) at com.silanis.esl.sdk.EslClient.updatePackage(EslClient.java:231)
Reply to: Getting an exception using FULL_NAME + INITIALS signature styles in one document
Thursday, September 29, 2016 at 09:14amThank you for your reply.
My issue is that I am not setting the Signature Style to Acceptance.
I am setting the Signature style of one of the signatures to FULL_NAME . It is getting changed to ACCEPTANCE somewhere in the SDK code. The other signature on the document is the INITIALS style, and that style is not getting changed.
I am looking for what is triggering the change from the FULL_NAME Signature Style to Acceptance Signature Style, so I can stop that behavior.
I also have a test case that has 5 documents, none of them have an Acceptance Signature and all of the FULL_NAME signatures in every document are changed to ACCEPTANCE. Is there a setting that would cause that kind of change in bulk for a Package?
Subscriptions
Topics | Replies | Freshness | Views | Users |
---|---|---|---|---|
I am using the Java SDK version 10.10.1
I am creating a package with one document. There is one Signer.
|
6 | 7 years 6 months ago | 73 |
Subscriptions Release Notes
This user is not subscribed to any release notes.