Step 6 — Configure Mapping¶
The final step is the BizMetry Event Composer — Configure Field Mappings: a split-pane view where you map fields from your selected operations (left, Sources) onto the target Frame's components (right, Target).
- Sources — each selected operation with its method, name, collection version pill and interception mode (e.g.
INBOUND). An operation with cardinalityMANYcarries a[]badge, and its fields are referenced as arrays — e.g.{registerAgent:Request Payload[]}.$.description(see Operation cardinality). - Target — the Frame Type with its Template version (e.g.
AGENT_REGISTRATION v1.3). Each component shows its mapping type (e.g.FIELD_REFERENCE,OBJECT_REFERENCE,OBJECT_FIELD_REF), what it references, its data type, and the source field references feeding it. - Header — Clear All, IntelliSense, and a counter of the frame components that have at least one source (e.g.
11 / 11 mapped). A component can receive several sources, so the first number can exceed the second.
Mappings built by IntelliSense¶
If you picked your operations with IntelliSense Select in Step 3, the composer doesn't open empty: when you clicked Next on Configure Operations, the IntelliSense agent mapped exactly the operations you kept — with their final cardinality — onto the Frame's components, BMEL expressions included. A Building Mappings… dialog shows its progress:
- You can Cancel at any time — the composer opens without those mappings, and you can still run IntelliSense from here.
- If you go back and change the target frame, the operations or any operation's cardinality, the agent maps them again the next time you leave Configure Operations. If the composer already has mappings, it asks first — Override existing mappings?: Yes maps again and overrides them; No keeps the existing configuration.
- If nothing changed, it doesn't run again.
If you selected the operations manually, the composer opens empty: drag the mappings yourself or click IntelliSense.
Required vs. optional components¶
Not every component in the target Frame Type needs a mapping. Each one is marked as either required or optional:
- A required component is rendered with a red asterisk (
*) right after its name. - An optional component has no asterisk — you can leave it unmapped and still create the event.
This directly affects when you can finish the wizard — see Creating the Business Event below.
Working the source panel¶
Each selected operation appears as its own collapsible tree on the left, with its request/response fields nested underneath. Click the chevron next to an operation's name to collapse or expand its field tree — collapsing the operations you're not currently working on reduces clutter when several are selected:
Inside each operation, the fields are grouped in sections — Request Context, Response Context, Custom Headers, URI Parameters, Query Parameters, Request Payload and Response Payload. While you scroll, the operation's header stays pinned at the top of the panel, and the section you're in stays pinned right below it — so you always know which operation and which part of the call the fields on screen belong to.
Working the target panel¶
The right panel lists the components of the target Frame Type. Its context stays visible while you scroll, however long a component is:
- Frame type and version — the header with the Frame Type's name and its Template version (e.g.
AGENT_INVOCATION v1.5) is always pinned at the top of the panel, highlighted. - An expanded NESTED_TABLE — while you scroll through its columns, the table's component row stays pinned right below that header, highlighted, until the table ends and the next component takes its place.
- A component with many sources — when its mapped sources don't fit on screen, its name and type stay pinned and highlighted while the sources scroll by.
In this example, the columns of LLM_TURN_SUMMARY are scrolled down to model_supports_vision, while AGENT_INVOCATION v1.5 and LLM_TURN_SUMMARY stay pinned above them:
Creating mappings by drag and drop¶
To create a mapping:
- Click and hold on a source field row on the left panel.
- Drag it across to the target component you want it mapped to, on the right panel.
- Release the mouse button over the target component.
A connector line is drawn between the two once the mapping is created, and the target component is marked as mapped (its checkmark turns green):
A target component can receive multiple source field mappings — dragging additional source fields onto a component that's already mapped adds them alongside the existing one, rather than replacing it. When a component has more than one source mapped, use BMEL to define how those sources should be combined into the single value assigned to that component.
How each component type is mapped¶
Each component on the right shows a pill with its type, and each type expects a different kind of source field:
| Type | Pill shows | Map from the source |
|---|---|---|
| CUSTOM | CUSTOM + its data type | The field that carries the value — or a BMEL expression that computes it |
| FIELD_REFERENCE | FIELD_REFERENCE + resource → attribute + data type | The field that carries the attribute value itself |
| OBJECT_REFERENCE | OBJECT_REFERENCE + resource type | The field that identifies the object (its key) |
| OBJECT_FIELD_REF | OBJECT_FIELD_REF + resource → attribute | The field that carries the object's ID — the attribute value is looked up in the imported resources |
| NESTED_TABLE | NESTED_TABLE + COLUMNS | An array for the rows, then its child fields for each column |
CUSTOM¶
AGENT_QUERY is a CUSTOM String: it receives $.query from the request of invokeAgent — the question the agent was asked.
FIELD_REFERENCE¶
AGENT_NAME captures agents → name: it receives $.agent_run.last_agent.name from the response of invokeAgent, the agent's name exactly as the API returns it.
OBJECT_REFERENCE¶
LLM_MODEL points to the aimodel resource type: it receives $.model from the response of invokeAgent, the model id that identifies the aimodel instance used.
OBJECT_FIELD_REF¶
AGENT_PROVIDER_NAME projects agent_providers → name, but the API only carries the provider's ID: it receives $.provider_id (a UUID) from the request of invokeAgentEndpoint. At runtime the imported agent_providers resource with that ID is looked up, and its name is written into the frame. The same provider_id also feeds AGENT_PROVIDER_DESCRIPTION, which projects the provider's description.
NESTED_TABLE¶
A NESTED_TABLE is mapped in two levels: an array feeds the table — one row per element — and its child fields feed the columns (expand them with COLUMNS).
LLM_TURN_SUMMARY takes one row per invocation of createChatCompletion, an operation with cardinality MANY (marked [] next to its version): drag that [] handle onto the table, and it reads {createChatCompletion:Invocations[]}.$. Then each column receives its field from those invocations — object, model, usage.prompt_tokens, usage.completion_tokens — as {createChatCompletion:Response Payload[]}.$.…. A payload array works the same way: TOOL_TURN_SUMMARY, for instance, takes one row per element of $.agent_run.new_items.
Each column is mapped according to its column type. An OBJECT FIELD REF column works like an OBJECT_FIELD_REF component, row by row: model_supports_vision shows the chip aimodel → supports_vision and receives the field that carries the model's ID — $.model from the response of each createChatCompletion call. At runtime, each row's supports_vision is read from the imported aimodel with that ID.
CLIENT-REFERENCE¶
The CLIENT-REFERENCE system component identifies the client that generated the event. It appears first on the right, and when you reach this step it's already connected.
- Default connections: BizMetry connects it to every source of the Primary operation that's a criterion of an enabled client type: Client IP, HTTP headers, URI and query parameters, and request and response payload fields. IntelliSense computes these connections again from scratch.
- Expression: it returns a
bmel:clientthroughbmel:get-client-by-criteria. Connecting or disconnecting a source adds or removes its argument. - Without connections: the event can be saved, and its traffic is assigned to the Default Client Type.
See CLIENT-REFERENCE for the full explanation.
Removing a mapping¶
Hover over either end of a connector to reveal a small unlink icon, and click it to remove that mapping. Unlinking from the source side or the target side isn't quite symmetric, since a target component can have multiple sources mapped to it (see above):
From the source field — removes only that field's connection to the target, leaving any other sources still mapped to it untouched:
From the target component — removes all source mappings connected to it at once, not just one. Use this when you want to unmap a component entirely and start its mapping over from scratch:
Tip
Use the Clear All button in the mapper header to remove every mapping for every component at once, instead of unlinking one by one.
Auto-mapping with IntelliSense¶
Instead of dragging fields manually, click IntelliSense in the composer header. The composer always runs the IntelliSense agent: it maps the selected operations onto the target Frame's components and writes the BMEL expressions where values need to be combined, transformed or aggregated (e.g. for MANY operations). It takes around 30–60 seconds; a progress dialog shows each stage, and you can Cancel at any time — IntelliSense stops on the server and your mappings stay as they were.
Its suggestions are applied directly onto the target panel — connector lines, BMEL expressions and the mapped counter update automatically. Components that were still unmapped are simply filled in.
Override existing mappings?¶
If IntelliSense proposes a mapping for components that already have one, it asks before touching them, listing how many and which:
- Yes overrides them with IntelliSense's mapping and BMEL expression.
- No keeps the existing configuration and only maps the components that have none.
Tip
Use Clear All before running IntelliSense if you want it to map everything from scratch without asking.
Review the result the same way you would a manual mapping: drag a different source field onto any component to replace a suggestion you disagree with, or unlink it if it shouldn't be mapped at all.
Navigating complex mappings¶
When a mapping involves many source fields, or the source and target panels are scrolled far apart, BizMetry gives you two shortcuts to keep track of a connection:
- Click a component's BMEL expression (the small line of code shown under a mapped component) to have BizMetry automatically scroll both panels so the full connection — every source field feeding into it — comes into view.
- Click a component's name to jump straight into editing its mapping, opening the BMEL editor for it.
BMEL expressions¶
For computed values, or mappings that combine or transform multiple source fields, open the BMEL editor for a target component either by clicking its name, or by clicking the ƒ icon shown on the connector line linking it to its source(s):
From here you can:
- Type a BMEL expression directly into the editor.
- Browse the Functions panel on the left and click a function to insert it at the cursor.
- Browse the Source Fields panel on the right and click a field to insert its reference at the cursor.
Use the search box in either panel to quickly find a specific function or field by name:
Once you're happy with the expression, click Apply Expression at the bottom of the editor to save it back to the mapping. Closing the editor without applying discards your changes.
Handling syntax errors¶
Invalid expressions are flagged directly in the editor as you type, with the specific problem shown just below the code area:
Click into the error, or read the inline message, to see the details of what's wrong — for example a type mismatch between what the expression returns and what the target component expects:
Correct the expression in the editor — the error indicator clears once the syntax is valid, and Apply Expression becomes available again:
Warning
You can't finish creating the event while any BMEL expression has a syntax error — fix or remove it first. The Create button stays disabled until every expression in use is valid.
Cancelling¶
Clicking Cancel at any point in the wizard prompts you to confirm — proceeding discards all progress on this Business Event, including every mapping and BMEL expression configured on this screen:
Creating the Business Event¶
Once every required target component is mapped and there are no pending BMEL errors, the Create button becomes enabled — optional components don't need to be mapped for this to happen. Click Create to submit the new Business Event:
The wizard submits the new Business Event version in DRAFT status and takes you to its summary view.
Click Back to return to Step 5 — Name & Description.
Back to the wizard overview.






















