---
title: "FAQ: How Does BPM Correlate Events Across Different Systems?"
description: How does Nodinite BPM tie events from different systems to one transaction? A Log View groups events by a shared key, Search Fields that an administrator configures make business values searchable, and Services place each event on a BPM step.
---

# How does BPM correlate events across different systems?

## :fa-circle-question: Quick Answer

You give :Nodinite: a correlation key, and it does the rest: it matches by itself which [BPMs][BPM] can display the events of the interchange. Nothing in the logging code refers to a BPM, so you can add, change, or overlay BPMs later. Three pieces of configuration make it work:

1. **A [Log View][Log Views] groups events** by a field that every event of the transaction shares. In the [Order-to-Cash demo][O2C Demo] that's **Application interchange id**, which the **Order 2 Cash** Log View shows under the name **Order Number**.
2. **[Search Fields][] make business values searchable**, such as the order number in the **O2C - Order ID** Search Field. An administrator adds a [Search Field Expression][Search Field Expressions] per [Message Type][Message Types], reading the payload, a context property, or a [Log Event][] field. No expression, no value.
3. **[Services][] place each event on a step**: the event's [Endpoint][Endpoints] and Message Type match a [Transport Contract][Transport Contracts] of the Service in a BPM cell.

![Order ORD-10005 searched by O2C - Order ID in the Order 2 Cash Log View, one group opened on the INT1337 - Order-to-Cash Flow BPM with every step lit, and Show Details on the Order Entry event with the shared Application interchange id, animated walkthrough (7.13)][2]  
*Animated walkthrough: in the **Order 2 Cash** Log View, switch to [Advanced mode][Log Search] and search **O2C - Order ID** = `ORD-10005`. Each demo run logged the order under its own interchange id, so it shows as several groups. Click the BPM button of one group and open **INT1337 - Order-to-Cash Flow**: every step of that order lights up, with events from the Portal, the ERP, the WMS, and ERP-Finance. **Show Details** on the Order Entry event shows **Order Number**, the Application interchange id, that all its events share.*  

For the full picture, see [End-to-End Process Tracking][].

## :fa-diagram-project: How the Pieces Fit

<div class="mermaid">
flowchart LR
    P[fa:fa-globe Portal<br/>JSON] --> LE[fa:fa-bolt Log Events]
    E[fa:fa-building ERP<br/>XML] --> LE
    W[fa:fa-warehouse WMS<br/>flat file] --> LE
    LE --> SF[fa:fa-magnifying-glass Search Field<br/>O2C - Order ID]
    LE --> G[fa:fa-layer-group Log View group by<br/>Application interchange id]
    SF --> R[fa:fa-arrow-progress One order<br/>on the BPM]
    G --> R
    style LE fill:#2678BD
    style SF fill:#E47528
    style G fill:#E47528
    style R fill:#93d16d
</div>

*Different systems and formats log to :Nodinite:. The search on **O2C - Order ID** finds the order; the group-by key, the Application interchange id, collects all its events.*

One order number can show as several groups: when the same order is logged in several interchanges, each interchange is its own group. The demo does this on purpose, because every run reuses the order numbers `ORD-10001` and up with new interchange ids.

## :fa-code: Same Value, Different Formats

The O2C demo rotates its messages between JSON, XML, and flat file, yet one expression covers them all. Every event carries the order number as the context property `OrderNumber`, so the **O2C - Order ID** Search Field has a single [Message Context Key][] expression applied to all nine O2C Message Types:

![Search Field Expressions for O2C - Order ID: Message Context Key OrderNumber applied to nine O2C Message Types (7.11)][1]  
*One context-key expression, nine Message Types, three payload formats.*  

When the value only exists in the payload, add one expression per Message Type with the plugin that fits the format:

| Format | Plugin | Expression (illustration) |
| --- | --- | --- |
| XML | [XPath][] | `//Order/OrderNumber` |
| JSON | [JSON Path][] | `$.order.orderNumber` |
| Flat file | [Flat File CSV][] | column 2 |

To search on a Log Event field instead, such as the interchange id, use the [Formula][] function `field('ApplicationInterchangeId')`.

Test expressions on real events before you rely on them, and re-index if you add one after events are logged; see [Search Fields][].

## :fa-triangle-exclamation: Symptoms and Fixes

| Symptom | Likely cause | Fix |
| --- | --- | --- |
| Search on **O2C - Order ID** finds nothing | No Search Field Expression for the event's Message Type | Add one, test it, and re-index |
| One order shows as several groups | The order was logged in several interchanges, or its events don't share the group-by value | Expected when the order was sent more than once; otherwise log the same key, such as an interchange id, on every event |
| Steps found but stay gray on the BPM | Event not bound to the Service in that cell | Check the Service's Transport Contracts, or the [Repository Binding][] |
| The order number differs per system (`10010` vs `ORD-10010`) | Systems use different formats | Normalize in the expression with [Formula][] functions such as `replace` or `substring` |

## :fa-link: What About Search Field Links?

[Search Field Links][] don't correlate events. They turn an extracted value into a link to an external system, such as the order in your ERP.

## :fa-hand-point-right: Next Steps

* :fa-search: [End-to-End Process Tracking][]  
* :fa-magnifying-glass: [Search log events from a BPM][]  

## :fa-link-horizontal: Related Topics

* :fa-arrow-progress: [Business Process Model (BPM)][BPM] - Main BPM overview  
* :fa-magnifying-glass: [Search Fields][] - Business data extraction  
* :fa-code: [Search Field Expressions][] - Extraction plugins  
* :fa-tags: [Message Types][] - Decide which expressions run  
* :fa-cart-shopping: [Order-to-Cash demo][O2C Demo]  
* :fa-lightbulb: [Troubleshoot-in-Minutes Scenario][Troubleshoot-in-Minutes]  
* :fa-list: [All FAQs][Troubleshooting Overview] - See all BPM FAQs  

[1]:{ndm}/Documentation%20Pictures/IM/WebClient/Repository/BPMs/O2C/SearchFieldExpressionsExample_OrderNumber.png
[2]:{ndm}/Documentation%20Pictures/IM/WebClient/Repository/BPMs/BPM_FAQ_Correlation.gif

[BPM]:{ndr}/Repository%20Model/BPMs/Overview.md
[End-to-End Process Tracking]:{ndr}/Repository%20Model/BPMs/Features/End-to-End%20Process%20Tracking.md
[Endpoints]:{ndr}/Repository%20Model/Endpoints/Overview.md
[Flat File CSV]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/Search%20Field%20Expressions/Flat%20File%20CSV.md
[Formula]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/Search%20Field%20Expressions/Formula/Overview.md
[JSON Path]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/Search%20Field%20Expressions/JSON%20Path.md
[Log Event]:{ndr}/Core%20Services/Log%20Event/Overview.md
[Log Search]:{ndr}/Getting%20Started/2.%20Log/Search%20a%20Log%20View.md
[Log Views]:{ndr}/Administration/1.%20Log%20Management/1.%20Log%20Views/Features/What%20is%20a%20Log%20View.md
[Message Context Key]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/Search%20Field%20Expressions/Message%20Context%20Key.md
[Message Types]:{ndr}/Repository%20Model/Message%20Types/Overview.md
[O2C Demo]:{ndr}/Repository%20Model/BPMs/Examples/Order-to-Cash/Overview.md
[Repository Binding]:{ndr}/Core%20Services/Log%20Event/Features/Repository%20Binding.md
[Search Field Expressions]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/Search%20Field%20Expressions/Overview.md
[Search Field Links]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/What%20is%20a%20Search%20Field.md#fa-arrow-up-right-from-square-jump-to-external-systems-with-search-field-links
[Search Fields]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/What%20is%20a%20Search%20Field.md
[Search log events from a BPM]:{ndr}/Getting%20Started/4.%20Repository/BPMs/Search%20log%20events%20from%20a%20BPM.md
[Services]:{ndr}/Repository%20Model/Services/Overview.md
[Transport Contracts]:{ndr}/Repository%20Model/Services/Overview.md#fa-microchip-transport-contracts-the-heart-of-service-definitions
[Troubleshoot-in-Minutes]:{ndr}/Repository%20Model/BPMs/Scenarios/Troubleshoot-in-Minutes.md
[Troubleshooting Overview]:{ndr}/Repository%20Model/BPMs/Troubleshooting/Overview.md
[XPath]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/Search%20Field%20Expressions/XPath.md