Redirect on Timeout

A timeout boundary event will occur when an end-user has not performed the necessary action of an activity, allowing the flow to timeout. When a timeout event occurs, it may be required to redirect the end-user to a specified URL outside of the TrustWeb application. The 'timeoutRedirectUrl' Process Token parameter can be used to define the redirect URL that will handle redirect for all timeout boundary events within a Process Definition.

Configure the Process Definition

To configure a new Process Definition, follow the steps outlined below.

  1. Log in to the Backoffice application and navigate to the Process Definition page found on the left-side vertical navigation bar.
  2. Click the 'New Process Definition' button to open a pop-up modal where a new Process Definition can be created from scratch or based on an existing template.
  3. The following Process Definition will be used as an example:
  1. From the example above, when a timeout error event occurs on the 'Custom Data Form v3' activity, the user will be redirected to the URL defined in 'timeoutRedirectUrl' parameter and send a webook before completing.

Configure the Process Token

After configuring the Process Definition, create a Process Token that includes 'timeoutRedirectUrl' in the Additional Parameters section of the token.

  1. In the Backoffice application, navigate to Process Definitions > Process Tokens.
  2. On the Process Tokens landing page, click the 'New Process Token' button. A popup modal will appear where details of the Process Token can be defined.
  3. In the Additional parameters section, set the Key to 'timeoutRedirectUrl' and the value to the URL that the end-user will be redirected to.

Example:

  1. Click the 'Create Token' button to finalize the creation.
  2. When the Process Definition times out and the end-user clicks the 'Go Back' button, they will be redirected to the URL defined to the 'timeoutRedirectUrl' parameter.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard