O2C Demo: Log Event Structure
Section titled “ O2C Demo: Log Event Structure”This page is part of the Order-to-Cash demo. It shows how every Log Event of the demo is built, how it reaches the Log API, how the events of one order are correlated, and which payload fields make good Search Fields.

Animated walkthrough: search the Contoso: Orders Log View on O2C - Order ID ORD-10005 and open step 1, Order Received from Customer. View message body shows the Portal's order as JSON. Show Details › Context Values has the file name, order number, customer, amount, and the Repository Binding; Additional Field Values has the Correlation ID in Application interchange id, shared by every event of the order; and Search Field Values has O2C - Order ID, extracted from the body.
Log Event Structure in This Demo
Section titled “ Log Event Structure in This Demo”Each Log Event follows the Nodinite JSON formatted Log Event structure with:
- Details (mandatory fields + optional context)
- LogAgentValueId:
5 - EndPointName: Domain-specific endpoint name
- EndPointUri: File-based path
- EndPointDirection:
0(receive) or1(send) - EndPointTypeId:
60(file) - OriginalMessageTypeName: Message Type from the table of steps for business events,
O2C.Forwarding/1.0for forwarding events - LogDateTime: UTC with random increments between steps
- SequenceNo: Position of the event within its order (1-14); EventNumber: running counter across all orders
- LogAgentValueId:
- Payload (Body)
- Base64-encoded message content
- Alternates between JSON, XML, and flat-file formats
- All messages keep the same business data values
- Context Properties (Context Options)
- FileName: Order-specific file name
- OrderNumber: Incrementing order number
CustomerId,CustomerName,OrderAmount: The order's customer and total; they follow the order (six customers in rotation, a product and quantity per order), see Customers, products, and groupingExtendedProperties/1.0#RepositoryBinding: Repository Binding for automatic landscape creation
The Correlation ID is not a Context Property; the demo stores it in ApplicationInterchangeId.
Log Agent Configuration
Section titled “ Log Agent Configuration”- Log Agent Value Id:
5(the Log Agent the demo logs as) - Endpoint Type Id:
60(file-based endpoint for the demo) - Endpoint Direction:
0(Receive),1(Send) - Event Direction:
17for Receive events,18for Send events
Log API Invocation
Section titled “ Log API Invocation”Each interchange step is a Log Event for the Nodinite Log API. The script exports the events to a file; a separate call posts them, see Post the Exported Events to the Log API:
- Correlation ID:
{PREFIX}-{DATEPART}-{HHMM}-{SEQUENCE}inApplicationInterchangeId(see Correlation ID Format below) - Endpoint: REST POST to
https://{host}:{port}/LogAPI/api/LogEvent, see Log using REST - Payload: Nodinite JSON Log Event (base64-encoded body + context)
Important Implementation Details
Section titled “ Important Implementation Details”Log Status Handling
Section titled “Log Status Handling”- Log Status 0: Success (all completed steps)
- Log Status -1337: Failed/incomplete (the last Send event of an incomplete order; its Receive event keeps
0) - Semantic meaning: Lets you track where orders stop in the pipeline
Correlation ID Format
Section titled “Correlation ID Format”- Format:
{PREFIX}-{DATEPART}-{HHMM}-{SEQUENCE}, stored asApplicationInterchangeId - Components:
{PREFIX}= Customer code (e.g.,PIC, Process Interchange Correlation){DATEPART}= Execution date inYYYYMMDDformat (generated when the script runs){HHMM}= Hour and minute when the script generates the order (e.g.,0915for 09:15){SEQUENCE}= Order sequence number (e.g.,0001)
- Example:
PIC-20251023-0915-0001,PIC-20251023-0915-0042, etc. (when executed on Oct 23, 2025 at 09:15) - Example:
PIC-20251024-1430-0001,PIC-20251024-1430-0002, etc. (when executed on Oct 24, 2025 at 14:30) - Scope: All steps of an order share the same Correlation ID
- Purpose: End-to-end tracing and grouping
- Benefit: You can rerun the script on any date and time without code changes
Log Event Reference
Section titled “ Log Event Reference”All steps create Nodinite Log Events that follow the JSON formatted Log Event structure:
The first Log Event of order ORD-10001, generated on Oct 14, 2025 at 09:15 (Body and the Repository Binding shortened):
{ "LogAgentValueId": 5, "EndPointName": "Portal-OrderReceived-Drop", "EndPointUri": "C:\\Integration\\Portal\\Orders\\In", "EndPointDirection": 0, "EndPointTypeId": 60, "OriginalMessageTypeName": "O2C.Order.Received/1.0", "LogDateTime": "2025-10-14T06:02:15.0000000Z", "EventDirection": 17, "ProcessingUser": "Portal\\OrderService", "SequenceNo": 1, "EventNumber": 1, "LogText": "Order Received from Customer", "ApplicationInterchangeId": "PIC-20251014-0915-0001", "LocalInterchangeId": null, "LogStatus": 0, "ProcessName": "O2C-Order-Reception", "ProcessingMachineName": "portal-server-01", "ProcessingModuleName": "Portal.OrderService.Receiver", "ProcessingModuleType": "WindowsService", "ServiceInstanceActivityId": null, "ProcessingTime": 23, "Body": "eyJiYXRjaElkIjoiYmF0Y2gtMjAyNS0x...", "Context": { "FileName": "ORD-10001-order-received-from-customer.json", "OrderNumber": "ORD-10001", "CustomerId": "CUST-001", "CustomerName": "Contoso Corporation", "OrderAmount": "99.95", "ExtendedProperties/1.0#RepositoryBinding": "{...}" }}Key Fields
Section titled “Key Fields”- OriginalMessageTypeName: Determines the Search Field Expressions (critical); forwarding events use
O2C.Forwarding/1.0 - ApplicationInterchangeId: Correlation ID linking all Log Events of one order
- SequenceNo: Starts at
1for each order and runs to14for a complete order; EventNumber keeps counting across all orders - LogStatus:
0(success) or-1337(incomplete) - EndPointDirection:
0(Receive) or1(Send), with EventDirection17or18to match - Body: Base64-encoded message (JSON, XML, or flat file)
- LogText: Milestone name only (e.g., "Order Received from Customer"), with no order ID to avoid clutter
- ExtendedProperties/1.0#RepositoryBinding: Automatic landscape creation (requires
AllowRepositoryAutomapping=true)
Search Field Extraction
Section titled “ Search Field Extraction”The Message Type of each step decides which Search Fields Nodinite extracts from its message. The table lists the payload fields of each message that make good Search Fields, with example values for order ORD-10001:
| Step | Message Type | Payload Fields to Extract | Example |
|---|---|---|---|
| 1 | O2C.Order.Received/1.0 | orderId, customer.customerId, orderTotal, orderDate | ORD-10001 |
| 2 | O2C.Order.Entry/1.0 | OrderId, ERPReferenceNumber, EntryDate | ERP-2025-10001 |
| 3 | O2C.Order.Confirmation/1.0 | OrderId, ConfirmationId, EstimatedShipDate | CONF-2025-10001 |
| 4 | O2C.Order.Scheduled/1.0 | orderId, scheduleId, productionLines lineId | SCH-2025-10001 |
| 5 | O2C.Order.Ready/1.0 | OrderId, PackingId, TrackingNumber, Warehouse | TRK-20251016-10001 |
| 6 | O2C.Order.Delivered/1.0 | OrderId, DeliveryId, DeliveryDate, TrackingNumber | DLVY-2025-10001 |
| 7 | O2C.Order.Invoice/1.0 | orderId, invoiceId, invoiceTotal, dueDate | INV-2025-10001 |
Next Steps
Section titled “ Next Steps”- O2C Demo: Repository Binding - The landscape metadata each Log Event carries
- O2C Demo: Data Generation - How the script generates the events
- 1. Order Received from Customer - Examine each message format in Steps 1-7