Delay Integration Processing for a Specified Time Period with a Wait Action

The wait action enables you to delay the processing of an integration for a specified period of time. Use this action in schedule integrations, asynchronous integrations, synchronous integrations, and fire-and-forget integrations. A typical use for this action is to invoke a specific operation at a certain time. You can specify literal values or build XPath expressions that you can configure with property values during runtime.

Create a Wait Action

  1. Add a wait action to an integration in either of the following ways:
    • On the side of the canvas, click Actions Integration actions icon and drag the Wait action to the appropriate location.
    • Click Add icon at the location where you want to add the wait action, then select Wait.

    The Configure wait panel opens.

  2. Click Edit Edit icon under Configure wait to enter a name and optional description for the wait action.

    Configure the time to wait before processing the integration in either of two ways:

  3. If you want to use literal (hard coded) values:
    1. Enter the number of seconds to wait before processing the integration. Literal values can only be in seconds, with no upper limit. The wait time cannot exceed the total running time of the integration.


      The Input sources tab (which is selected) and Functions tab are shown in the wait action. The Sources section appears below. To the right is the Configure wait section. A value of 60 has been entered into the field. To the right are clear and developer mode icons. In the upper right is an edit icon. To the right are four addition icons.

  4. If you want to enter an XPath expression:

    This option enables you to update a wait action parameter with an integration property value after the integration is activated. This update does not require a re-activation of the integration.

    1. Drag an element from the Input sources section.


      The Input sources tab (which is selected) and Functions tab are shown in the wait action. The Sources section appears expanded below. The Wait_integration_property_1 parameter has been dragged to the field in the Configure wait section on the right. To the right are clear and developer mode icons. In the upper right is an edit icon.

    2. Complete design of your integration and exit the integration canvas.
    3. Activate the integration.
    4. Hover your cursor over the integration, and select Actions Actions icon, then select Update property values.
    5. Enter a value to use at runtime in the New value field (for this example, 9 is entered). This value overrides the value provided in the Default value field.


      The Update property values section shows fields for Default value, Current value, and New value. A value of 9 has been added to the New value field.

    6. Run the integration and view the activity stream.
    7. Click View View icon for the action in front of the wait action (for this example, a logger action) and note that the integration property value is 9 and the wait action was initiated at 02:36:32 and the next action (for this example, a second logger action) was initiated at 02:36:41 (nine seconds later).


      The activity stream shows the following message between the logger action and the wait action: Before wait : Wait Integration Property Value is : 9. The time lapse between the wait action and the second logger action is nine seconds.

Track the Status of a Wait Action During Runtime

During runtime, you can track the status of the wait action on the Tracking page through the tracking diagram and activity stream for an activated integration.

  1. In the navigation pane, click Observability, then Instances.
  2. Click the business identifier value of the integration to track.

    The integration flow (including any wait actions) is displayed.

Related Documentation
The following sections provide examples of using a wait action in an integration: