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

# :fa-diagram-project: 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.*  

>[!IMPORTANT]
>BPM Binding is part of Repository Binding, so it works only when the [AllowRepositoryAutomapping][] [System Parameter][System Parameters] is set to `true`. The [Logging Service][] applies it while it processes the [Log Event][].

## :fa-table: Reference

### The BPM Matrix {#bpm-matrix}

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

>[!NOTE]
>Steps are **0-based in code** (0, 1, 2) but display as **1-based in UI** (Step 1, Step 2, Step 3). Step numbers must always be **non-negative** (0 or positive integers).

### BPM Object {#bpm-object}

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

### Domain Object {#domain-object}

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

### ServiceRelations (BPM Flow Arrows) {#service-relations}

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

>[!IMPORTANT]
>**Direction** and **System** fields are required for proper BPM reconstruction. The **Direction** refers to the **target service's direction**, not the current service. Including [System][Systems] and [Domain][Domains] in every ServiceRelation ensures :Nodinite: can reconstruct the process flow even when events arrive out of sequence due to network delays, retries, or asynchronous processing.

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.

### Connector Styles {#connector-styles}

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|

### Attachment Points {#attachment-points}

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

## :fa-code: Examples {#examples}

### 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
  }]
}]
```

### Complete Repository Binding with a BPM {#complete-repository-binding-with-a-bpm}

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

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

* :fa-sitemap: [Repository Binding][]  
* :fa-cart-shopping: [Order-to-Cash examples][O2C Demo]  
* :fa-sliders: [Context Options][]  

## :fa-link-horizontal: Related Topics

* :fa-diagram-project: [BPM Overview][]  
* :fa-bolt: [Log Event][]  
* :fa-brackets-curly: [JSON Log Event][]  
* :fa-sitemap: [Repository Model][]  
* :fa-hard-drive: [Logging Service][]  
* :fa-database: [Let Log Events Build the Model][Build from Log Events]  

[1]:{ndm}/Documentation%20Pictures/IM/CoreServices/LogAPI/BpmBinding_Event.gif

[AllowRepositoryAutomapping]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/AllowRepositoryAutomapping.md
[BPM Overview]:{ndr}/Repository%20Model/BPMs/Overview.md
[Build from Log Events]:{ndr}/Getting%20Started/4.%20Repository/Documentation%20Strategy/Let%20Log%20Events%20Build%20the%20Model.md
[Context Options]:{ndr}/Core%20Services/Log%20Event/Features/Context%20Options.md
[Domains]:{ndr}/Repository%20Model/Domains/Overview.md
[Endpoints]:{ndr}/Repository%20Model/Endpoints/Overview.md
[Integration Landscape]:{ndr}/Getting%20Started/4.%20Repository/Integrations/Integration%20Landscape.md
[Integrations]:{ndr}/Repository%20Model/Integrations/Overview.md
[JSON Log Event]:{ndr}/Core%20Services/Log%20Event/Features/JSON%20Log%20Event.md
[Log API]:{ndr}/Core%20Services/Log%20API/Overview.md
[Log Event]:{ndr}/Core%20Services/Log%20Event/Overview.md
[Logging Service]:{ndr}/Core%20Services/Logging%20Service/Overview.md
[Message Types]:{ndr}/Repository%20Model/Message%20Types/Overview.md
[O2C Demo]:{ndr}/Repository%20Model/BPMs/Examples/Order-to-Cash/Overview.md
[Repository Binding]:{ndr}/Core%20Services/Log%20Event/Features/Repository%20Binding.md
[Repository Binding - BPMs]:{ndr}/Core%20Services/Log%20Event/Features/Repository%20Binding.md#service-bpms
[Repository Binding - Escaped String]:{ndr}/Core%20Services/Log%20Event/Features/Repository%20Binding.md#escaped-string
[Repository Binding - Service direction values]:{ndr}/Core%20Services/Log%20Event/Features/Repository%20Binding.md#service-direction-values
[Repository Model]:{ndr}/Repository%20Model/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