<flow name="flow">
...
<tracking:transaction id="#[payload.orderId]" />
...
</flow>
Set Transaction Id
The Set Transaction Id component enables you to set an identifier for all tracked events 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.
Customize the Transaction ID
Follow these steps to set a transaction ID either in Anypoint Studio or by editing the configuration XML:
-
In the Studio UI:
-
Drag the Set Transaction Id component to your flow.
-
In the Set Transaction ID configuration screen, set an ID value for the Transaction ID field:
-
-
In the XML editor:
-
Add a child element to the
flow
element:
-