Package com.avoka.component.docusign
Class DocuSignUtils
java.lang.Object
com.avoka.component.docusign.DocuSignUtils
Provides a constants and utility functions for DocuSign services.
- Since:
- 3.6.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The DocuSign Envelope Completed status value: "completed".static final String[]
The DocuSign Envelope In-Progress status values: [ "changed" | "created" | "sent" | "delivered" | "signed" ].static final String[]
The DocuSign Envelope Is Dead status values: [ "voided" | "deleted" | "declined" | "timedout" ].static final String[]
The DocuSign Envelope statuses which are ready to process -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<DocuSignRecipient>
getRecipientList
(String submissionXml) Return the list of DocuSignRecipients for the given form submission XML data.static boolean
isStatusCompleted
(String status) Return true if the DocuSign envelope status is completed.static boolean
isStatusDead
(String status) Return true if the DocuSign envelope status is dead.static boolean
isStatusInProgress
(String status) Return true if the DocuSign envelope status is in progress.static boolean
isStatusReady
(String status) Return true if the DocuSign envelope status is ready to complete processing
-
Field Details
-
ENVELOPE_STATUSES_IN_PROGRESS
The DocuSign Envelope In-Progress status values: [ "changed" | "created" | "sent" | "delivered" | "signed" ]. -
ENVELOPE_STATUSES_IS_DEAD
The DocuSign Envelope Is Dead status values: [ "voided" | "deleted" | "declined" | "timedout" ]. -
ENVELOPE_STATUS_COMPLETED
The DocuSign Envelope Completed status value: "completed".- See Also:
-
ENVELOPE_STATUSES_READY_TO_PROCESS
The DocuSign Envelope statuses which are ready to process
-
-
Constructor Details
-
DocuSignUtils
public DocuSignUtils()
-
-
Method Details
-
isStatusCompleted
Return true if the DocuSign envelope status is completed.- Parameters:
status
- the DocuSign envelope status- Returns:
- true if the DocuSign envelope status is completed
-
isStatusDead
Return true if the DocuSign envelope status is dead.- Parameters:
status
- the DocuSign envelope status- Returns:
- true if the DocuSign envelope status is dead
-
isStatusInProgress
Return true if the DocuSign envelope status is in progress.- Parameters:
status
- the DocuSign envelope status- Returns:
- true if the DocuSign envelope status is in progress
-
isStatusReady
Return true if the DocuSign envelope status is ready to complete processing- Parameters:
status
- the DocuSign envelope status- Returns:
- true if the DocuSign envelope status is READY to process
- Since:
- 4.3.4
-
getRecipientList
Return the list of DocuSignRecipients for the given form submission XML data.Groovy Example
// Determine the signing recipient list based on the submission XML data def recipientList = DocuSignUtils.getRecipientList(submissionXml) // Create DocuSign envelop and send notification signing request emails to the recipients envelopeId = docuSignClient.createAndSendEnvelope(serviceParameters["DocuSign Email Blurb"], serviceParameters["DocuSign Email Subject"], serviceParameters["DocuSign Document FileName"], receiptPDF, recipientList)
- Parameters:
submissionXml
- the form submission XML- Returns:
- list of DocuSignRecipients for the given form submission XML data
-