Skip to content
On this page

Task Event Subscriptions

There are two methods that are supported for notifying your application of these status change events: (1) HTTP POST, and (2) HTTP GET.

TIP

If using HTTP POST, data elements are sent via a standard HTTP(S) POST of urlencoded name value pairs as an “application/x-www-form-urlencoded” mime type. This is the same format used by standard HTTP form post actions, so most server side processors understand how to parse form posts.

Controlling Your Events

You may control the processing of these actions by including optional semicolon-separated name/value pairs in the Data property. Valid values are:

Data ParametersDescription
request-timeoutA value from 30 to 180. This is the number of seconds the AlphaTrust® e-Sign HTTP POST or GET should wait for a response from your listener URL before timing out. The default value is 30 seconds.

Example: Data="request-timeout=60;"
required-response-textA value that AlphaTrust® e-Sign will expect to receive from your listener to indicate that you have processed the POST or GET successfully. If a value is set here, you must use a mime type of "text/plain" in your response to the AlphaTrust® e-Sign GET or POST. Use the HTTP Content-Type header (i.e. "Content-Type: text/plain"). If you do not set this value then AlphaTrust® e-Sign will only look for an HTTP status code between 200 and 299 inclusive to indicate success. If you do set this value then both a success status code and "required-response-text" value match is required. This value is case-insensitive.

Example: Data="request-response-text=RECEIVED;"
retry-limitA value representing the maximum number of minutes to retry status update messages in the case of failed (unsuccessful) GET or POST requests to your listener. Valid values are between 30 and 10080 (7 days), inclusive. If you do not specify this value then a default value globally configured for the AlphaTrust® e-Sign installation is used. The value, by default, is "4320" (3 days). The interval between retries is 5 minutes, unless a different globally configured value is set for AlphaTrust® e-Sign (on-prem/in-stack option only).

Example: Data="retry-limit=1440;"

Status Change

You can subscribe to Task status change events by adding a Workflow Action to the Task.

NameValue
TransIDThe TransID is a standard 10 digit ID used for a transaction as discussed elsewhere.

Example: 1234567890
PartIDThe PartID is a standard 10 digit ID used for a participant as discussed elsewhere.

Example: 1234567890
DocIDThe DocID is a standard 10 digit ID used for a document as discussed elsewhere.

Example: 1234567890
TaskIDThe TaskID is a standard 10 digit ID used for a task as discussed elsewhere.

Example: 1234567890
TaskStatusThe TaskStatus will be one of the following one-digit integer values:
  • 2 Pending
  • 4 Complete
  • 7 Closed
  • 8 Cancelled
  • 9 Expired
TXStatusThe TXStatus will be one of the following one-digit integer values:
  • 2 Pending
  • 4 Complete
  • 7 Closed
  • 8 Cancelled
  • 9 Expired
  • 10 Voided
EventTypesignature
ps_securitytokenguid
SigID
SigAccessToken
SigStatus
DocAccessToken
DEPRECATED
csharp
task = new TaskInsertModel()
        {
            WorkflowActions = new List<object>
            {
                new TaskWorkflowActionModel()
                {
                    Type = TaskWorkflowActionModel.TypeEnum.SubscribeToStatusChangeNotificationsByPost,
                    Data = "required-response-text=RECEIVED;retry-limit=1440",
                    Url = "https://myapp.mydomain.com/statuslistener.php"
                }
            }
        }

A completed participant from that uses the above code would see something like the following as the posted status notification values:

TransID=1234567890&TaskID=1234567890&TXStatus=2&TaskStatus=4&EventType=signature&ps_securitytoken=4bf44fb0-f695-40b5-821d-c22273e11c30

Likewise, if the participant was using a SubscribeToStatusChangeNotificationsByGet method type, the posted status notification value might look something like this:

https://myapp.mydomain.com/statuslistener.aspx?TransID=1234567890&TaskID=1234567890&TXStatus=2&TaskStatus=4&EventType=signature&ps_securitytoken=4bf44fb0-f695-40b5-821d-c22273e11c30