This article describes advanced DocuSign integration capabilities available in Pega Platform, including multi-signer support, multi-document sent as a single envelope, extension points for DocuSign events, connector timeout configuration, and DocuSign reminder/expiration settings.
Initial Setup - Seamless DocuSign eSignature Integration in Pega Constellation
Note: Pega’s DocuSign integration supports PDF documents only.
1) Sending Documents to Multiple Signers
Pega can send a single DocuSign envelope to multiple recipients while controlling signing order, recipient roles, and (where applicable) identity verification requirements.
Configuring recipients with
Use the**pyAssignRecipientsToEnvelope** data transform to define envelope recipients.
Steps
-
Open the
**
pyAssignRecipientsToEnvelope**data transform. -
Go to the Definition tab.
-
In Step 2, add a signer and populate the following properties:
| Property | Description |
|---|---|
.pyDeliveryMethod |
Set to |
.pyRecipientId |
Unique identifier for each recipient. Must be a non-negative integer (for example, |
.pyRoutingOrder |
Controls signing sequence. A value of |
.pyName |
Recipient’s full legal name. |
.pyEmail |
Recipient’s email address. |
With this setup, you can support sequential signing (via routing order) and, where applicable, parallel signing patterns aligned with business and legal requirements.
2) Sending Multiple Documents in a Single Envelope
If your case workflow includes multiple uploaded documents, Pega can send them to DocuSign as a single envelope.
Key points
-
Multiple PDF documents can be bundled into one DocuSign envelope.
-
Recipients see all documents together during the signing ceremony.
-
This simplifies the signing experience and helps ensure document consistency.
3) Extension Points for DocuSign Events (DocuSign Connect)
Pega provides extension points for handling DocuSign envelope and recipient events through DocuSign Connect callbacks.
pyProcessDocuSignEventsactivity
The**pyProcessDocuSignEvents** activity functions as a central dispatcher for DocuSign event notifications.
What you can do
-
Subscribe to envelope and recipient lifecycle events.
-
Implement custom business logic based on DocuSign callbacks.
-
Use the default implementations as reference templates.
Steps to configure event handling
-
In your Pega application, locate
pyProcessDocuSignEvents. -
Save it into your application ruleset (so you can extend it safely).
-
On the Steps tab, open the placeholder activity for the event you want to handle.
Example:pyProcessDocumentDeclinedEvent(triggered when a document is declined). -
Save the selected activity into your application ruleset.
-
Implement your custom processing logic.
Tip: Review the default Document Completed implementation as a reference when designing logic for other event types.
4) DocuSign Integration Timeout Configuration
You can configure timeout values for DocuSign connector interactions using the
pySetDocuSignConnectorTimeout
data transform.
Benefits
-
Prevents long-running or stalled integration calls.
-
Improves resiliency and error handling.
-
Centralizes timeout settings for DocuSign-related connector calls.
5) Configuring Reminders and Expiration in DocuSign Account
DocuSign administrators can configure automatic reminders and envelope expiration policies to drive timely completion.
Steps (DocuSign Admin)
-
Log in to DocuSign and switch to Admin.
-
Navigate to Signing and Sending → Reminders and Expirations.
Reminder settings
-
Enable Send automatic reminders.
-
Remind signers … day(s) after receipt: set the first reminder (for example, 3 days).
-
Continue to send reminders every … day(s): set the reminder frequency.
Summary
By using these DocuSign capabilities in Pega, you can:
-
Orchestrate complex multi-signer workflows
-
Send multiple documents in a single envelope
-
Extend processing using DocuSign event callbacks
-
Control integration performance through connector timeouts
-
Improve completion rates with reminders and expiration policies
Implementation Tip: Locking Strategy
Use optimistic locking because the signed document is typically sent back to Pega once the signing is completed. This helps avoid case locking issues.
If you must use default locking, consider using an extension activity to implement a retry mechanism via a Queue Processor.