Editing a Business Event¶
This page walks through what happens when you edit an existing Business Event version — the two entry points into editing, what each one lets you change (including operation cardinality), how IntelliSense keeps the mapping in step with your changes, which version states allow editing, and what "saving" does depending on where the version started.
Two ways to edit¶
Both actions live on the version row in the Business Events tab (expand an event to see its versions):
| Action | Icon | Opens | Use it when... |
|---|---|---|---|
| Edit | The Edit Business Event wizard | You need to change the event's core configuration — target frame/version, API collection, selected operations, or operation settings such as cardinality — and remap fields to match. | |
| Edit Mappings | The Edit Mappings dialog | You only need to touch the field mapping — nothing about the target frame, operations, or their configuration is changing. |
Flow 1 — Edit: the full wizard¶
Clicking Edit opens the Edit Business Event wizard. Unlike the Create wizard, which has 6 steps, editing only exposes 4:
| Step | Name | What you configure |
|---|---|---|
| 1 | Target Frame | The Template version + Frame Type this version targets |
| 2 | Select Operations | The API Collections and operations to intercept |
| 3 | Configure Operations | Interception mode, correlation source, filters and cardinality per operation |
| 4 | Configure Mapping | Field mappings and BMEL expressions — in the Biz Event Composer |
%%{init: {"themeVariables": {"fontSize": "18px"}}}%%
flowchart TB
A["1 · Target Frame"] --> B["2 · Select Operations"]
B --> C["3 · Configure Operations"]
C -->|"source / target changed?\nIntelliSense agent remaps"| D["4 · Configure Mapping"]
D --> E["Apply Changes"]
Identity and Source Type are not editable here
Event Identity (name, description, interception mode at the event level) and Source Type (the transport — REST API, Kafka Topic, MQTT Queue, or Webhook) are set once at creation and carried over unchanged. The wizard header shows them read-only for context (event name, version, and source type badge), but there's no step to change them — this is why the edit wizard starts directly on Target Frame instead of Step 1 of the create wizard.
Step 1 — Target Frame¶
On the left, Template Versions lists the versions of the profile's Template you can target, each with its lifecycle status and version pill. The version this Business Event version is built on is preselected, and so is its Frame Type on the right. Retired Template versions are not offered, nor are versions already targeted by another version of the same event.
On the right, Frame Types lists the frame types of the selected Template version. Each one shows the Template version it belongs to as a pill — the same pill accompanies the frame type throughout the wizard — along with its id and number of fields.
Publishing still requires a Published Template version
You can target a Template version that's still in progress (e.g. DRAFT) to build and test the event, but the Business Event version can only be published once its target Template version is PUBLISHED.
Step 2 — Select Operations¶
On the left, API Collections lists the collections of the selected Template version, each with its version and status. Pick one to see its operations on the right and check the ones this version should intercept. Every operation shows the version of its API collection as a pill next to its name — e.g. POST registerAgent v1.2.0 — here, in the selection chips at the bottom (hover a chip to see the full operation), and in every later step.
Picking operations with IntelliSense¶
The IntelliSense Selection bar analyzes the collections in scope and finds the operations that best match the target Frame Type. Click IntelliSense Select and, after a few seconds, it lists the matching operations:
Keep the ones you want and click Proceed — they replace the current selection:
This step only picks operations. The mapping itself is built later, once you've finished configuring them (see When IntelliSense remaps).
Step 3 — Configure Operations¶
As in creation, exactly one operation must be Primary, and an HTTP or custom header chosen on it applies to every operation. Business Events created before this option get a default Primary when edited. Changing the Primary enables Apply Changes.
Adjust, for each selected operation, its interception mode (Inbound / Outbound / Inbound & Outbound), correlation source and filters — same as Step 4 of the create wizard — and its cardinality, with the Enable Multiple Cardinality toggle:
See Operation cardinality below for what the toggle does.
HTTP status filters¶
Select HTTP Status Code and add allowed codes using the inline searchable suggestions. Search by code or description; each selected value is a pill. The rules are identical to filter configuration in the create wizard.
Step 4 — Configure Mapping (Biz Event Composer)¶
The same Business Event Mapper described in Configure Mapping: the selected operations on the left (method, name, collection version — and a [] handle when its cardinality is MANY), the target Frame Type with its Template version on the right. Drag source fields onto target components, run IntelliSense, or write BMEL expressions.
Clicking IntelliSense in the composer runs the IntelliSense agent over the current operations and frame type:
If it proposes mappings for components that already have one, it asks before touching them — Override existing mappings?:
- Yes replaces those components' mappings and BMEL expressions with IntelliSense's;
- No keeps the existing configuration and only maps the components that have none.
CLIENT-REFERENCE in the composer¶
The system component that identifies the client appears first on the right, with the connections saved in this version. Running IntelliSense replaces them with the sources of the Primary operation that are criteria of an enabled client type. It returns a bmel:client through bmel:get-client-by-criteria, and connecting or disconnecting a source adds or removes its argument. Without connections, the version can be saved and its traffic is assigned to the Default Client Type. See CLIENT-REFERENCE.
Applying the changes¶
The Apply Changes button appears only in this last step — the composer is where the mapping is reconciled with any change made earlier and its BMEL validated. It stays disabled until:
- you've actually modified something in the wizard — stepping through without changes leaves nothing to save;
- every required frame component is mapped;
- there are no BMEL errors in the expressions.
Operation cardinality¶
Cardinality tells BizMetry how many times an operation is invoked per Business Event.
| Toggle | Cardinality | Meaning |
|---|---|---|
| Off (default) | ONE | The operation is invoked once per Business Event. Each of its fields holds one value. |
| Enable Multiple Cardinality on | MANY | The operation is invoked N times per Business Event — every invocation carrying the same correlation key is captured as part of the same event. |
When to use MANY — whenever one business transaction calls the same operation repeatedly. For example, an AI agent answering one request may call an LLM several times in a RAG loop: all those calls share the transaction's correlation id (e.g. x-correlation-id), so the Business Event receives all of them, not just one.
How a MANY operation is mapped¶
With MANY, the whole operation becomes an array of its invocations, and the composer shows it that way:
- the operation header carries a
[]handle right after its collection version (e.g.POST invokeAgentEndpoint v1.6.0 []), and each of its sections (request, response, headers) is marked as an array — e.g.REQUEST CONTEXT [],Request Payload []; - references to its fields are written with brackets after the section —
{invokeAgentEndpoint:Request Payload[]}.$.agent_id,{invokeAgentEndpoint:Request Context[]}.$bm.request.timestamp— and resolve to the list of values, one per invocation. The Target panel shows them that way under each component they feed; - the operation itself,
{invokeAgentEndpoint:Invocations[]}.$, can be dragged as a whole from its[]handle.
The mapping rules are the same as for any array field:
| Target component | How to map a MANY operation |
|---|---|
| A scalar (string, number, timestamp…) | Aggregate the invocations with a BMEL function — e.g. avg, sum, count, maxOf, minOf, first or last: the average latency, the total tokens spent, the number of calls, the last answer… |
| A NESTED_TABLE | Map the operation (or one of its array sections) as the row source: one row per invocation, each column mapped from that invocation's fields. |
Arrays need an aggregation
Passing a MANY reference straight into a component — or into a function — that expects a single value is flagged by the BMEL validator, and Apply Changes stays disabled until it's wrapped in an aggregation. IntelliSense already proposes MANY-aware expressions (aggregations, one-row-per-invocation tables).
Changing the cardinality of an existing version¶
Switching an operation between ONE and MANY changes how all of its fields are referenced, so the existing mappings that read from it no longer fit. When you leave Configure Operations, IntelliSense redoes them — see below.
When IntelliSense remaps¶
When you click Next on Configure Operations, the wizard compares the version's source/target with the one its current mappings were built for:
- the Frame Type (and its Template version);
- the operations selected;
- each operation's cardinality;
- ASBO and attribute dependencies referenced by BMEL through
#{Name}, including nested lookups, even when the target component itself is unchanged.
If any of them changed — or the operations were picked with IntelliSense — the IntelliSense agent maps them before the composer opens:
- Only what's out of date is redone: the components fed by an operation that was removed or whose cardinality changed — mapping and BMEL expression — or every component, if the Frame Type changed. Mappings of untouched operations, manual edits included, are kept.
- If it also proposes mappings for components that are still mapped, it asks Override existing mappings? (Yes / No), as in the composer.
- You can Cancel at any time: the composer opens with the existing mappings, and IntelliSense stops on the server.
- If nothing changed — e.g. you removed an operation and added it back — it doesn't run, and the composer opens with the saved mappings.
Deleted ASBO or attribute dependencies¶
Removing or redefining a referenced ASBO or attribute invalidates expressions that depend on it. Revalidation also runs when editing and when forking a Published event. IntelliSense attempts a replacement using the current schema; if none is valid, the target remains unmapped rather than retaining a broken expression. Review it before saving. The original Published version is preserved when a new Draft is forked.
See Recompute and BMEL dependencies.
Flow 2 — Edit Mappings: the shortcut¶
Clicking Edit Mappings skips the wizard entirely and opens the Configure Field Mappings canvas directly, in a standalone dialog — no stepper, no other steps. The dialog header shows the event name, version, and current status, and the save action is labeled Save Mappings.
This is the fastest path when only the mapping needs a change: nothing about the target frame, API collection, operations, or their configuration is touched. It's the same composer as Step 4 of the Edit wizard — drag source fields onto target components, run IntelliSense, or open the BMEL editor for computed values.
Just like Apply Changes in the full wizard, Save Mappings stays disabled until you actually change at least one mapping — opening the dialog and closing it without touching anything leaves nothing to save.
CLIENT-REFERENCE in Edit Mappings¶
Edit Mappings shows the CLIENT-REFERENCE system component first, with the connections saved in the version. IntelliSense computes them again from the Primary operation and the enabled client types, and each connection is an argument of bmel:get-client-by-criteria, which returns a bmel:client. If a version has no Primary operation, the dialog applies the same default as the wizards and keeps it when you save. Without connections, the version can be saved and its traffic is assigned to the Default Client Type.
Which versions can be edited¶
A version can be edited — via either Edit or Edit Mappings — in any state except DEPRECATED and RETIRED:
| Status | Edit available? |
|---|---|
DRAFT | |
PENDING_REVIEW | |
APPROVED | |
REJECTED | |
PUBLISHED | |
DEPRECATED | |
RETIRED |
DEPRECATED and RETIRED versions are historical — reactivate a DEPRECATED one via Reinstate instead, since there's no path back from either state through editing.
What happens when you save¶
Saving behaves differently depending on the version's status when you opened it — this applies identically whether you used Edit or Edit Mappings:
%%{init: {"themeVariables": {"fontSize": "18px"}}}%%
flowchart TB
A["Apply Changes / Save Mappings"] --> B{"Version status?"}
B -->|"DRAFT, PENDING_REVIEW,\nAPPROVED, or REJECTED"| C["Same version updated in place\nStatus → DRAFT"]
B -->|"PUBLISHED"| D["New DRAFT version forked\n(number auto-calculated)"]
D --> E["Original PUBLISHED version\nuntouched — still live"]
Editing a DRAFT, PENDING_REVIEW, APPROVED, or REJECTED version¶
Saving updates that same version, in place — no new version number is created. Regardless of which of these four states it started in, its status always becomes DRAFT afterward, which restarts the review cycle: Submit → Approve/Reject.
Editing a PUBLISHED version¶
A PUBLISHED version is never modified in place — it's actively capturing telemetry and must keep doing so uninterrupted. Instead, saving:
- Forks a new version — copying the current configuration, operations, and mappings — created in
DRAFTstatus. - Auto-calculates its version number based on the scope of what changed (major bump if the target Template version changed, otherwise a minor bump — see Versioning & Fork-on-Bump for the full table).
- Leaves the original
PUBLISHEDversion untouched, still live and capturing telemetry for every environment scoped to it.
From there, the new DRAFT follows the normal lifecycle — review it, submit it, and publish it when it's ready. Until you do, the PUBLISHED original keeps serving telemetry exactly as before. In the meantime, if an interceptor instruments the event, the new DRAFT can already capture staging traffic — see Capture States.
Existing DRAFT blocks a new fork
A Business Event can only have one DRAFT version at a time. If one already exists, editing the PUBLISHED version isn't available until that DRAFT is published, submitted, or deleted.












![Biz Event Composer — an operation with Multiple Cardinality: the [] handle on the operation header and on each of its sections](../../../images/edit-biz-event-wizard/biz-event-composer-array-of-operations-multiple-cardinality.png)


