---
title: "Let Log Events Build the Nodinite Repository Model: Repository and BPM Binding"
description: "Let Nodinite Log Events build and bind the Repository Model: Repository Binding creates Integrations, Services, Systems, and Contracts as events are logged, BPM Binding places Services in a BPM, and AllowRepositoryAutomapping turns it on."
---

# :fa-database: Let Log Events Build the Model

Documentation written by hand starts going stale the day it's written. The cheapest way to keep the [Repository Model][] true is to let the integrations describe themselves: every [Log Event][] can carry the names of its [Integration][Integrations], [Service][Services], and [System][Systems], and :Nodinite: creates and binds them as it logs.

* ✅ Build the model from the traffic that actually runs  
* ✅ Tie every event to its Integration without a manual step  
* ✅ Place Services in a business process from the same events  

![Search the O2C order ORD-10001, open the newest run, open the Details of Order Received, open the Repository Model tab with its Transport Contract, Service, Contract and Integration, and click INT1337 - Order-to-Cash to reach the Integration's view page with the automatic-creation description, animated walkthrough (7.12)][Hero]  
*Animated walkthrough: what a binding created. The event's **Repository Model** tab lists the Transport Contract, Service, [Contract][Contracts], and Integration, and the Integration's page says it was created automatically. Every field is on [Repository Binding][].*  

## :fa-network-wired: Understanding Binding from Log Events {#understanding}

<div class="mermaid">
flowchart LR
    App["fa:fa-plug Your integration<br/>logs an event"] --> LS["fa:fa-gears Logging Service"]
    LS -->|"RepositoryBinding"| Model["fa:fa-sitemap Integration, Service,<br/>System, Contract"]
    LS -->|"BPMs array"| BPM["fa:fa-project-diagram Service in a BPM<br/>Domain and step"]
    LS -->|"Message Type, Endpoint"| TC["fa:fa-dot-circle Transport Contract<br/>event bound"]
    style App fill:#9E59BB
    style LS fill:#3F827B
    style Model fill:#2678BD
    style BPM fill:#2678BD
    style TC fill:#93d16d
</div>

*Your integration (purple) logs an event with [Context Options][]. The [Logging Service][] (teal) creates the Repository entities named in its `RepositoryBinding` value and places the Service in a [BPM][] from its `BPMs` array (blue). It then matches the event's [Message Type][Message Types] and [Endpoint][Endpoints] against the Transport Contracts, so the event is bound (green).*

### :fa-puzzle-piece: What Each Feature Does

| Feature | Creates or binds | Read |
| --- | --- | --- |
| [Repository Binding][] | Integrations, Services, Systems, and Contracts, from the context key `ExtendedProperties/1.0#RepositoryBinding` | The JSON structure, the required fields, and the legacy keys |
| [BPM Binding][] | A Service's place in a BPM: its [Domain][Domains] and step, through the `BPMs` array of the Service | The BPM object, service relations, and arrows |
| Logging itself | [Message Types][] and [Endpoints][] that don't exist yet | [Context Options][] |

Both bindings work only when the [AllowRepositoryAutomapping][] [System Parameter][System Parameters] is `true`. Your events can carry BPM Binding data whether or not you have the BPM license: users see BPMs only once the license is in your product key.

## :fa-code-compare: Bind from Events, by Hand, or by Script {#compare}

| Approach | Best for | Keep in mind |
| --- | --- | --- |
| Repository Binding in the Log Event | Integrations you build or can change: the model follows what runs | Names come from the event; rename in the binding, not in the Repository, or the next event creates the old name again |
| By hand in the [Web Client][Repository Overview] | Systems and integrations that don't log, owners, and descriptions | Manual updates enhance the model; they aren't required for binding |
| The [Web API][] | Deployment pipelines that register what they deploy | Create, update, and query every Repository entity from scripts |

## :fa-list-check: Rules {#rules}

* ✅ Turn on [AllowRepositoryAutomapping][] in the environments where events should build the model.  
* ✅ Send one `RepositoryBinding` value with the Transport Contract name and its Service, System, and Integration, rather than the legacy individual keys.  
* ✅ Use a naming convention in the binding, because the names become the model; see [Model Your Integration Landscape][Model the Landscape].  
* ✅ Add [Custom Metadata][], such as the owner, by hand on top; see [Give Every Integration an Owner][Ownership Strategy].  
* ❌ Don't rename a created entity in the Repository; change the binding instead.  

The logging side, from what to log to correlation, is in [Plan Your Logging with Nodinite][Logging Strategy].

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

* :fa-wand-magic-sparkles: [Generate Documentation from Your Platforms][Generate Documentation]  
* :fa-compass: [Plan Your Integration Documentation with Nodinite][Documentation Strategy]  

## :fa-link-horizontal: Related Topics

* :fa-sitemap: [Repository Binding][]  
* :fa-diagram-project: [BPM Binding][]  
* :fa-sliders: [Context Options][]  
* :fa-compass: [Plan Your Logging with Nodinite][Logging Strategy]  

[AllowRepositoryAutomapping]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/AllowRepositoryAutomapping.md
[BPM]:{ndr}/Repository%20Model/BPMs/Overview.md
[BPM Binding]:{ndr}/Core%20Services/Log%20Event/Features/BPM%20Binding.md
[Context Options]:{ndr}/Core%20Services/Log%20Event/Features/Context%20Options.md
[Contracts]:{ndr}/Getting%20Started/4.%20Repository/Contracts/Overview.md
[Custom Metadata]:{ndr}/Repository%20Model/Custom%20Metadata/Overview.md
[Documentation Strategy]:{ndr}/Getting%20Started/4.%20Repository/Documentation%20Strategy/Overview.md
[Domains]:{ndr}/Repository%20Model/Domains/Overview.md
[Endpoints]:{ndr}/Repository%20Model/Endpoints/Overview.md
[Generate Documentation]:{ndr}/Getting%20Started/4.%20Repository/Documentation%20Strategy/Generate%20Documentation%20from%20Your%20Platforms.md
[Hero]:{ndm}/Documentation%20Pictures/IM/CoreServices/LogAPI/RepositoryBinding_Event.gif
[Integrations]:{ndr}/Repository%20Model/Integrations/Overview.md
[Log Event]:{ndr}/Core%20Services/Log%20Event/Overview.md
[Logging Service]:{ndr}/Core%20Services/Logging%20Service/Overview.md
[Logging Strategy]:{ndr}/Getting%20Started/2.%20Log/Logging%20Strategy/Overview.md
[Message Types]:{ndr}/Repository%20Model/Message%20Types/Overview.md
[Model the Landscape]:{ndr}/Getting%20Started/4.%20Repository/Documentation%20Strategy/Model%20Your%20Integration%20Landscape.md
[Ownership Strategy]:{ndr}/Getting%20Started/4.%20Repository/Documentation%20Strategy/Give%20Every%20Integration%20an%20Owner.md
[Repository Binding]:{ndr}/Core%20Services/Log%20Event/Features/Repository%20Binding.md
[Repository Model]:{ndr}/Repository%20Model/Overview.md
[Repository Overview]:{ndr}/Getting%20Started/4.%20Repository/Overview.md
[Services]:{ndr}/Repository%20Model/Services/Overview.md
[System Parameters]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/Overview.md
[Systems]:{ndr}/Repository%20Model/Systems/Overview.md
[Web API]:{ndr}/Core%20Services/Web%20API/Overview.md