---
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."
---

# <i class="fal fa-database" aria-hidden="true"></i> 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 <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> 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][].*  

<h2 id="understanding"><i class="fal fa-network-wired" aria-hidden="true"></i> Understanding Binding from Log Events</h2>

<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).*

### <i class="fal fa-puzzle-piece" aria-hidden="true"></i> 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.

<h2 id="compare"><i class="fal fa-code-compare" aria-hidden="true"></i> Bind from Events, by Hand, or by Script</h2>

| 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 |

<h2 id="rules"><i class="fal fa-list-check" aria-hidden="true"></i> Rules</h2>

* ✅ 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].

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

* <i class="fal fa-wand-magic-sparkles" aria-hidden="true"></i> [Generate Documentation from Your Platforms][Generate Documentation]  
* <i class="fal fa-compass" aria-hidden="true"></i> [Plan Your Integration Documentation with Nodinite][Documentation Strategy]  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

* <i class="fal fa-sitemap" aria-hidden="true"></i> [Repository Binding][]  
* <i class="fal fa-diagram-project" aria-hidden="true"></i> [BPM Binding][]  
* <i class="fal fa-sliders" aria-hidden="true"></i> [Context Options][]  
* <i class="fal fa-compass" aria-hidden="true"></i> [Plan Your Logging with Nodinite][Logging Strategy]  

[AllowRepositoryAutomapping]:https://docs.nodinite.com/administration/settings/system-parameters/allowrepositoryautomapping/
[BPM]:https://docs.nodinite.com/repository-model/bpms/overview/
[BPM Binding]:https://docs.nodinite.com/core-services/log-event/features/bpm-binding/
[Context Options]:https://docs.nodinite.com/core-services/log-event/features/context-options/
[Contracts]:https://docs.nodinite.com/getting-started/repository/contracts/overview/
[Custom Metadata]:https://docs.nodinite.com/repository-model/custom-metadata/overview/
[Documentation Strategy]:https://docs.nodinite.com/getting-started/repository/documentation-strategy/overview/
[Domains]:https://docs.nodinite.com/repository-model/domains/overview/
[Endpoints]:https://docs.nodinite.com/repository-model/endpoints/overview/
[Generate Documentation]:https://docs.nodinite.com/getting-started/repository/documentation-strategy/generate-documentation-from-your-platforms/
[Hero]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/CoreServices/LogAPI/RepositoryBinding_Event.gif
[Integrations]:https://docs.nodinite.com/repository-model/integrations/overview/
[Log Event]:https://docs.nodinite.com/core-services/log-event/overview/
[Logging Service]:https://docs.nodinite.com/core-services/logging-service/overview/
[Logging Strategy]:https://docs.nodinite.com/getting-started/log/logging-strategy/overview/
[Message Types]:https://docs.nodinite.com/repository-model/message-types/overview/
[Model the Landscape]:https://docs.nodinite.com/getting-started/repository/documentation-strategy/model-your-integration-landscape/
[Ownership Strategy]:https://docs.nodinite.com/getting-started/repository/documentation-strategy/give-every-integration-an-owner/
[Repository Binding]:https://docs.nodinite.com/core-services/log-event/features/repository-binding/
[Repository Model]:https://docs.nodinite.com/repository-model/overview/
[Repository Overview]:https://docs.nodinite.com/getting-started/repository/overview/
[Services]:https://docs.nodinite.com/repository-model/services/overview/
[System Parameters]:https://docs.nodinite.com/administration/settings/system-parameters/overview/
[Systems]:https://docs.nodinite.com/repository-model/systems/overview/
[Web API]:https://docs.nodinite.com/core-services/web-api/overview/