---
title: "Scenario: Show the Logged Trail of a Transaction with Nodinite BPM"
description: "Show an auditor the logged trail of one order on a Nodinite BPM: which steps ran, when, with what payload and status, and who is allowed to see it. Explained with the Order-to-Cash demo."
---

# :fa-scale-balanced: Prove Compliance: Show the Logged Trail of a Transaction

When an auditor or your finance team asks "what happened to this order?", the answer is spread over several systems' logs. A :Nodinite: [BPM][] puts that audit trail on one page: the steps the order went through, when each one was logged, its status, and the message itself, shown only to the people whose [Role][Roles] allows it.

* ✅ One search from the BPM shows every logged step of one order, with timestamps and status  
* ✅ Open the logged payload and context of each step, subject to role permissions  
* ✅ Decide who sees bodies and context, and record who read which message body or context with [Log Audits][]  
* ✅ Add a new search value later and re-index the events you still retain  

![The evidence trail of one Order-to-Cash order: its steps with timestamps on the BPM, the invoice body, and the Log Audit rows that record who read it, animated walkthrough (7.12)][2]  
*Animated walkthrough: the order's trail in BPM [Log Search][Search log events from a BPM], the invoice body opened from Order Invoiced, and Log Audit Search listing every read of that message.*  

## :fa-briefcase: The Business Context

In the [Order-to-Cash demo][O2C Demo], an order passes seven steps across Sales, Planning, Logistics, and Finance, handled by a Portal, an ERP, a WMS, and ERP-Finance. The questions are business questions: did order 10010 get a confirmation, when was it invoiced, and what did we actually send?

## :fa-circle-exclamation: The Problem

Without a common log, each question means asking the owners of the Portal, the ERP, and the WMS to search their own logs, match timestamps by hand, and send screenshots. It is slow and hard to repeat.

## :fa-lightbulb: The Solution

Every step logs a [Log Event][] to :Nodinite: with its timestamp, [Log Status Code][Log Status Codes], and optionally the payload and context. With [BPM Log Search][Search log events from a BPM] :new7.11:, you type the Order Number and the order's trail is plotted on the BPM:

![BPM Log Search with one Order-to-Cash order, every step from Order Received to Order Invoiced logged (7.12)][1]  
*The trail of one order: seven events over 13 minutes, from Order Received to Order Invoiced at 07:46:22, each with its timestamp and the time between steps. A failed step would show red, and a step never logged stays gray.*  

From each row you open the logged message in the [Log View][Log Views]. What a user may see is decided per Log View and Role, and access is recorded:

* [Permission Set for Log Views][] controls per Role whether users can see the message body, the context values, or a transformed view. [Stylesheets][] can show a business-friendly view without sensitive parts.
* [Log Audits][] record who read a message body and, since 7.12, its context values (**Show Details** of an event with context, the **Resend** and **Repair** dialogs, and the [Search Field Wizard][]), with the Log View it was read through. The values extracted into [Search Fields][] are not recorded. [DaysToKeepLogAudits][] sets how long those records are kept.
* [Search Fields][] decide what you can search on. If the auditor asks for a value you never indexed, an administrator adds a [Search Field Expression][Search Field Expressions] and re-indexes the events still in the [Log Databases][]. See [Late binding and retroactive modeling][FAQ Reindex].

### :fa-clipboard-check: Show Who Read a Message

The walkthrough above collects the evidence for one order:

1. In BPM Log Search, read the order's trail: the **Log Date Time** of each step.
2. Click **Show Details** on Order Invoiced, then **Action** > **View message body** to show the invoice JSON, and **Close**.
3. Go to **Administration** > **Tools** > **Log Audit Search**.
4. Set **Functions** to *LogEventsController Body* and **Operation** to the message's id, then click **Search**.

Every read of the message body writes two Log Audit rows that share one Correlation Id:

| Row | Status | Operation |
|---|---|---|
| 1 | Started | The user is trying to access a body, with the EventId, MessageId, BodyId, Log Database, server, and the id of the Log View it was read through |
| 2 | Succeeded | The message body was read, with its MessageId, BodyId, size in bytes, Log Database, and server |

Both rows also record the user (**Created By**), the time (**Created**), the **Function** (*LogEventsController Body*; a Stylesheet view logs *LogEventsController BodySafe* and adds the Stylesheet id), the **Source** (*Nodinite Web API*), the level, the duration, and the IP address of the request. A refused read, with no access to the Log View, the body, or the Stylesheet, writes a Failed row with the reason.

## :fa-chart-line: The Results

* One search from the BPM instead of separate requests to the Portal, ERP, and WMS teams, with the same answer every time.
* Access to message content follows your Role setup, so an auditor can get read access without seeing more than you decide.

The logged trail helps you answer auditor questions; it doesn't make a process compliant on its own. How long events, payloads, and context are kept is governed by retention settings such as [DaysToKeepMessageEventsDefault][] and [DaysToKeepMessageDataDefault][], so align them with your own retention policy.

## :fa-puzzle-piece: How This Scenario Uses Nodinite Features

1. [BPM Log Search][Search log events from a BPM] - Find one order and see its steps
2. [Permission Set for Log Views][] - Decide who sees body, context, and transformed views
3. [Search Fields][] - Make Order Number searchable, and re-index for new values
4. [Custom Metadata Support][] - Record compliance notes and the process owner on the BPM itself

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

* :fa-magnifying-glass: [Search log events from a BPM][]  
* :fa-cart-shopping: [Order-to-Cash demo][O2C Demo]  
* :fa-user-shield: [Permission Set for Log Views][]  

## :fa-link-horizontal: Related Topics

* :fa-arrow-progress: [Business Process Model (BPM)][BPM]  
* :fa-lightbulb: [All BPM scenarios][Scenario Index]  
* :fa-search: [End-to-End Process Tracking][]  
* :fa-clock-rotate-left: [Late binding and retroactive modeling][FAQ Reindex]  
* :fa-circle-question: [BPM FAQ][Troubleshooting Overview]  

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

[BPM]:{ndr}/Repository%20Model/BPMs/Overview.md
[Custom Metadata Support]:{ndr}/Repository%20Model/BPMs/Features/Custom%20Metadata%20Support.md
[DaysToKeepLogAudits]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/DaysToKeepLogAudits.md
[DaysToKeepMessageDataDefault]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/DaysToKeepMessageDataDefault.md
[DaysToKeepMessageEventsDefault]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/DaysToKeepMessageEventsDefault.md
[End-to-End Process Tracking]:{ndr}/Repository%20Model/BPMs/Features/End-to-End%20Process%20Tracking.md
[FAQ Reindex]:{ndr}/Repository%20Model/BPMs/Troubleshooting/FAQ%20-%20Late%20binding%20and%20retroactive%20modeling.md
[Log Audits]:{ndr}/Administration/6.%20Tools/2.%20Log%20Audit%20Search.md
[Log Databases]:{ndr}/Core%20Services/Log%20Databases/Overview.md
[Log Event]:{ndr}/Core%20Services/Log%20Event/Overview.md
[Log Status Codes]:{ndr}/Administration/1.%20Log%20Management/3.%20Log%20Agents/Features/What%20is%20a%20Log%20Status%20Code.md
[Log Views]:{ndr}/Administration/1.%20Log%20Management/1.%20Log%20Views/Features/What%20is%20a%20Log%20View.md
[O2C Demo]:{ndr}/Repository%20Model/BPMs/Examples/Order-to-Cash/Overview.md
[Permission Set for Log Views]:{ndr}/Administration/3.%20Access%20Management/1.%20Roles/Features/Permission%20Set%20for%20Log%20Views.md
[Roles]:{ndr}/Administration/3.%20Access%20Management/1.%20Roles/Features/What%20is%20a%20Role.md
[Scenario Index]:{ndr}/Repository%20Model/BPMs/Scenarios/Overview.md
[Search Field Expressions]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/Search%20Field%20Expressions/Overview.md
[Search Field Wizard]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Getting%20started/How%20to%20use%20the%20Search%20Field%20Wizard.md
[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
[Stylesheets]:{ndr}/Administration/4.%20Customize/2.%20Stylesheets/Overview.md
[Troubleshooting Overview]:{ndr}/Repository%20Model/BPMs/Troubleshooting/Overview.md