Contact Us 1-800-596-4880

Transaction (<tracking:transaction/>)

Set an identifier for all tracked events.

Use a transaction ID so that meaningful information, such as an order number, is displayed for a transaction when analyzing tracked events at runtime, whether using Anypoint Runtime Manager or CloudHub.

The transaction ID supports DataWeave expressions, which enables you to create an ID dynamically and include information related to the event into the ID.

Component XML

This component supports the following XML structure:

<tracking:transaction
    id="#[payload.orderId]"
    doc:name="Transaction"
    doc:id="qjktlq" />

Transaction (<tracking:transaction/>) attributes are configurable through the UI and XML.

Attribute Name Attribute XML Description

Transaction (default)

doc:name

Editable name for the component to display in the canvas.

N/A

doc:id

Automatically generated identifier for the component.

Id

id

Defines the value of the identifier, which can be an expression or a literal. By default, the component assigns a numeric value.

Examples

The following example sets a transaction ID using the payload.orderId value.

<flow name="flow">
...
  <tracking:transaction id="#[payload.orderId]" />
...
</flow>