---
title: "BPM Binding: Position Services in a BPM from a Log Event"
description: "Reference for positioning a Nodinite Service in a Business Process Model (BPM) from a Log Event: the BPMs array of Repository Binding, domains and steps, service relations, connector styles, and attachment points."
---

# <i class="fal fa-diagram-project" aria-hidden="true"></i> BPM Binding

BPM Binding positions a [Service][Services] of the [Repository Model][] in a [Business Process Model (BPM)][BPM Overview] through the `BPMs` array of the Service in a [Repository Binding][Repository Binding - BPMs]. Each entry places the Service in one cell of the BPM and draws the arrows to the other steps. For a complete, worked process, see the [Order-to-Cash examples][O2C Demo].

![Order Entry's Log Event with the Complete Repository Binding with a BPM posted in Scalar, then the Order-to-Cash BPM with Order Entry in Planning, Step 2 and its arrow to Confirmation Sent, animated walkthrough (7.12)][1]  
*Animated walkthrough: Order Entry's event, with the [Complete Repository Binding with a BPM](#complete-repository-binding-with-a-bpm) as an escaped string in `ExtendedProperties/1.0#RepositoryBinding`, posted in the [Log API][]'s Scalar reference. The BPM *INT1337 - Order-to-Cash Flow* shows *Order Entry* in *Planning*, Step 2, and the ServiceRelation as an Arrow (`0`) from its right (`3`) to the left (`1`) of *Confirmation Sent* in *Sales*, Step 3. The steps are `1` and `2` in the JSON: 0-based in code, 1-based on screen.*  

<aside aria-label="Important" class="nodinite-note nodinite-note--important">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-message-exclamation"></i> Important</p>
<div class="nodinite-note__content"><p>BPM Binding is part of Repository Binding, so it works only when the <a href="https://docs.nodinite.com/administration/settings/system-parameters/allowrepositoryautomapping/">AllowRepositoryAutomapping</a> <a href="https://docs.nodinite.com/administration/settings/system-parameters/overview/">System Parameter</a> is set to <code>true</code>. The <a href="https://docs.nodinite.com/core-services/logging-service/overview/">Logging Service</a> applies it while it processes the <a href="https://docs.nodinite.com/core-services/log-event/overview/">Log Event</a>.</p></div>
</aside>

## <i class="fal fa-table" aria-hidden="true"></i> Reference

<h3 id="bpm-matrix">The BPM Matrix</h3>

BPMs organize process steps as a **matrix**: domains (rows) × steps (columns).

```text
           Step 0        Step 1        Step 2
Sales      Order         [empty]       [empty]
           Received

Planning   [empty]       Order         [empty]
                         Planned

Logistics  [empty]       [empty]       Order
                                       Packed
```

<aside aria-label="Note" class="nodinite-note nodinite-note--note">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-note"></i> Note</p>
<div class="nodinite-note__content"><p>Steps are <strong>0-based in code</strong> (0, 1, 2) but display as <strong>1-based in UI</strong> (Step 1, Step 2, Step 3). Step numbers must always be <strong>non-negative</strong> (0 or positive integers).</p></div>
</aside>

<h3 id="bpm-object">BPM Object</h3>

|Field|Required|Purpose|Example|
|---|---|---|---|
|<span id="bpm-name"></span>`Name`|✅ Yes|Process flow name|`INT1337 - Order-to-Cash Flow`|
|<span id="bpm-artifactrenaming"></span>`ArtifactRenaming`|❌ No|UI display name|`Order Received`|
|<span id="bpm-domain"></span>`Domain`|✅ Yes|Row position ([Domain object](#domain-object))|`{ "Name": "Sales", "Index": 0 }`|
|<span id="bpm-step"></span>`Step`|✅ Yes|Column position (0-based)|`0`, `1`, `2`|
|<span id="bpm-servicerelations"></span>`ServiceRelations`|❌ No|Flow arrows between cells|Array of [service relation objects](#service-relations)|

<h3 id="domain-object">Domain Object</h3>

|Field|Required|Purpose|Example|
|---|---|---|---|
|<span id="domain-name"></span>`Name`|✅ Yes|Business domain|`Sales`, `Planning`, `Logistics`, `Finance`|
|<span id="domain-index"></span>`Index`|✅ Yes|Row order (0-based)|`0`, `1`, `2`, `3`|

<h3 id="service-relations">ServiceRelations (BPM Flow Arrows)</h3>

Links between BPM process steps, displayed as arrows in the BPM matrix visualization.

|Field|Required|Purpose|Values|
|---|---|---|---|
|<span id="servicerelation-name"></span>`Name`|✅ Yes|Target service name|Service name string|
|<span id="servicerelation-direction"></span>`Direction`|✅ Yes|**Target service** direction; it draws the direction arrows on connectors in the [Integration Landscape][]|`Receive`, `Send`, `TwoWayReceive`, `TwoWaySend`; see [Service direction values][Repository Binding - Service direction values]|
|<span id="servicerelation-system"></span>`System`|✅ Yes|Target service system|`{ "Name": "System Name" }`|
|<span id="servicerelation-domain"></span>`Domain`|✅ Yes|Target row|`{ "Name": "Sales", "Index": 0 }`|
|<span id="servicerelation-step"></span>`Step`|✅ Yes|Target column (0-based)|`0`, `1`, `2`|
|<span id="servicerelation-artifactrenaming"></span>`ArtifactRenaming`|❌ No|Relation display name|String|
|<span id="servicerelation-label"></span>`Label`|❌ No|Arrow label text|String|
|<span id="servicerelation-connectorstyle"></span>`ConnectorStyle`|❌ No|Connector line style|[Connector styles](#connector-styles)|
|<span id="servicerelation-sourceattachmentpoint"></span>`SourceAttachmentPoint`|❌ No|Arrow start position|[Attachment points](#attachment-points)|
|<span id="servicerelation-targetattachmentpoint"></span>`TargetAttachmentPoint`|❌ No|Arrow end position|[Attachment points](#attachment-points)|

<aside aria-label="Important" class="nodinite-note nodinite-note--important">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-message-exclamation"></i> Important</p>
<div class="nodinite-note__content"><p><strong>Direction</strong> and <strong>System</strong> fields are required for proper BPM reconstruction. The <strong>Direction</strong> refers to the <strong>target service's direction</strong>, not the current service. Including <a href="https://docs.nodinite.com/repository-model/systems/overview/">System</a> and <a href="https://docs.nodinite.com/repository-model/domains/overview/">Domain</a> in every ServiceRelation ensures <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> can reconstruct the process flow even when events arrive out of sequence due to network delays, retries, or asynchronous processing.</p></div>
</aside>

The [Logging Service][] treats two connectors between the same Services as the same only when both attachment points and the `ConnectorStyle` match; the `Label` is ignored. A later event with another style or attachment point **adds a second arrow**, and the old one stays until you remove it in the BPM Designer. An identical Repository Binding is applied at most once per 10 minutes per Logging Service, so a change shows with the next event after that.

<h3 id="connector-styles">Connector Styles</h3>

Right-angle connectors run in 90° segments between the steps; straight ones draw a direct line. The BPM Designer's context menu offers the same styles (**Change to Arrow**, **Change to Dashed Arrow**, ...).

|Value|Style|Shape|
|---|---|---|
|<span id="connectorstyle-0"></span>`0`|Arrow|Right-angle|
|<span id="connectorstyle-1"></span>`1`|Dashed Arrow|Right-angle|
|<span id="connectorstyle-2"></span>`2`|Line|Straight|
|<span id="connectorstyle-3"></span>`3`|Dashed Line|Straight|
|<span id="connectorstyle-4"></span>`4`|Arrow Line|Straight|
|<span id="connectorstyle-5"></span>`5`|Dashed Arrow Line|Straight|
|<span id="connectorstyle-6"></span>`6`|Hover Arrow: a dashed arrow, hidden until a linked shape is hovered or selected|Right-angle|
|<span id="connectorstyle-7"></span>`7`|Hover Arrow Line: a dashed arrow, hidden until a linked shape is hovered or selected|Straight|

<h3 id="attachment-points">Attachment Points</h3>

`SourceAttachmentPoint` and `TargetAttachmentPoint` use the same values. Leave the field out, or send `0`, and the connector picks its own point.

|Value|Position|
|---|---|
|<span id="attachmentpoint-1"></span>`1`|Left|
|<span id="attachmentpoint-2"></span>`2`|Top|
|<span id="attachmentpoint-3"></span>`3`|Right|
|<span id="attachmentpoint-4"></span>`4`|Bottom|

<h2 id="examples"><i class="fal fa-code" aria-hidden="true"></i> Examples</h2>

### BPMs Array

The `BPMs` array as it appears inside the `Service` object (fragment):

```text
"BPMs": [{
  "Name": "INT1337 - Order-to-Cash Flow",
  "ArtifactRenaming": "Order Entry",
  "Domain": { "Name": "Planning", "Index": 1 },
  "Step": 1,
  "ServiceRelations": [{
    "Name": "INT1337-SND-Confirm-Outgoing",
    "Direction": "Send",
    "System": { "Name": "Portal" },
    "Domain": { "Name": "Sales", "Index": 0 },
    "Step": 2,
    "ArtifactRenaming": "Confirmation Sent",
    "Label": "Confirmation Sent",
    "ConnectorStyle": 0,
    "SourceAttachmentPoint": 3,
    "TargetAttachmentPoint": 1
  }]
}]
```

<h3 id="complete-repository-binding-with-a-bpm">Complete Repository Binding with a BPM</h3>

The same BPM entry in a complete, valid [Repository Binding][] value. The Service, System, and [Integration][Integrations] names are examples. The top-level `"Name"` is the name of the Transport Contract: this example creates a Transport Contract *Default* on *INT1337-ENT-Order-Entry*, for the event's [Endpoint][Endpoints] and [Message Type][Message Types].

```json
{
  "Name": "Default",
  "Service": {
    "Name": "INT1337-ENT-Order-Entry",
    "Direction": "Send",
    "System": { "Name": "ERP" },
    "Integration": { "Name": "INT1337 - Order-to-Cash" },
    "BPMs": [{
      "Name": "INT1337 - Order-to-Cash Flow",
      "ArtifactRenaming": "Order Entry",
      "Domain": { "Name": "Planning", "Index": 1 },
      "Step": 1,
      "ServiceRelations": [{
        "Name": "INT1337-SND-Confirm-Outgoing",
        "Direction": "Send",
        "System": { "Name": "Portal" },
        "Domain": { "Name": "Sales", "Index": 0 },
        "Step": 2,
        "ArtifactRenaming": "Confirmation Sent",
        "Label": "Confirmation Sent",
        "ConnectorStyle": 0,
        "SourceAttachmentPoint": 3,
        "TargetAttachmentPoint": 1
      }]
    }]
  }
}
```

Send it as an escaped string in `ExtendedProperties/1.0#RepositoryBinding`, as shown in the [Repository Binding escaped-string example][Repository Binding - Escaped String].

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

* <i class="fal fa-sitemap" aria-hidden="true"></i> [Repository Binding][]  
* <i class="fal fa-cart-shopping" aria-hidden="true"></i> [Order-to-Cash examples][O2C Demo]  
* <i class="fal fa-sliders" aria-hidden="true"></i> [Context Options][]  

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

* <i class="fal fa-diagram-project" aria-hidden="true"></i> [BPM Overview][]  
* <i class="fal fa-bolt" aria-hidden="true"></i> [Log Event][]  
* <i class="fal fa-brackets-curly" aria-hidden="true"></i> [JSON Log Event][]  
* <i class="fal fa-sitemap" aria-hidden="true"></i> [Repository Model][]  
* <i class="fal fa-hard-drive" aria-hidden="true"></i> [Logging Service][]  
* <i class="fal fa-database" aria-hidden="true"></i> [Let Log Events Build the Model][Build from Log Events]  

[1]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/CoreServices/LogAPI/BpmBinding_Event.gif

[AllowRepositoryAutomapping]:https://docs.nodinite.com/administration/settings/system-parameters/allowrepositoryautomapping/
[BPM Overview]:https://docs.nodinite.com/repository-model/bpms/overview/
[Build from Log Events]:https://docs.nodinite.com/getting-started/repository/documentation-strategy/let-log-events-build-the-model/
[Context Options]:https://docs.nodinite.com/core-services/log-event/features/context-options/
[Domains]:https://docs.nodinite.com/repository-model/domains/overview/
[Endpoints]:https://docs.nodinite.com/repository-model/endpoints/overview/
[Integration Landscape]:https://docs.nodinite.com/getting-started/repository/integrations/integration-landscape/
[Integrations]:https://docs.nodinite.com/repository-model/integrations/overview/
[JSON Log Event]:https://docs.nodinite.com/core-services/log-event/features/json-log-event/
[Log API]:https://docs.nodinite.com/core-services/log-api/overview/
[Log Event]:https://docs.nodinite.com/core-services/log-event/overview/
[Logging Service]:https://docs.nodinite.com/core-services/logging-service/overview/
[Message Types]:https://docs.nodinite.com/repository-model/message-types/overview/
[O2C Demo]:https://docs.nodinite.com/repository-model/bpms/examples/order-to-cash/overview/
[Repository Binding]:https://docs.nodinite.com/core-services/log-event/features/repository-binding/
[Repository Binding - BPMs]:https://docs.nodinite.com/core-services/log-event/features/repository-binding/#service-bpms
[Repository Binding - Escaped String]:https://docs.nodinite.com/core-services/log-event/features/repository-binding/#escaped-string
[Repository Binding - Service direction values]:https://docs.nodinite.com/core-services/log-event/features/repository-binding/#service-direction-values
[Repository Model]:https://docs.nodinite.com/repository-model/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/