Account


Earned badges

Achievement: Latest Unlocked

Topic Started

Topics
This is related to a post by CConverse_lm over a year ago Getting

Replies Created

Reply to: Possible bug in com.silanis.esl.sdk.SignatureStyle.java

0 votes
Here is my code 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)

Subscriptions

Topics Replies Freshness Views Users
This is related to a post by CConverse_lm over a year ago Getting
3 6 years 5 months ago 46
Profile picture for user harishaidary
Hello, Once all the signing ceremony is completed, there is one email notification getting triggered from "e-SignLive " to all the signers by including package owner in "CC" of that email
9 7 years 1 month ago 83
Profile picture for user mwilliams

Code Share

This user has not submitted any code shares.

Subscriptions Release Notes

This user is not subscribed to any release notes.