BRIDGE_CALL step calls a configured Service Bridge from an Activity Plan. It is the right tool when an external system call is part of the business process and should have its own status, result, logs, retry behavior, and audit trail.
Service Bridges keep authentication, target URLs, request rules, caching, and endpoint configuration outside of the Activity Plan. The Activity Plan references the bridge and endpoint, then supplies the request data for this workflow.
When to Use a BRIDGE_CALL Step
Use aBRIDGE_CALL step when you need to:
- Validate extracted data against a system of record
- Fetch enrichment data before review
- Post approved data to an ERP, loan origination, claims, KYC, or compliance system
- Notify an external workflow when a Kodexa Activity completes
- Keep the external call visible as its own monitored workflow step
serviceBridge.call() inside a SCRIPT step when the bridge call is only one part of a larger custom decision.
Step Configuration
How It Runs
The step result is stored on the Activity step. Operators can inspect the response, failure details, and logs without digging through a script.Request Mapping
Start with a static JSON body when possible:requestScript when the request needs conditional shaping:
Response Routing
A bridge call can emit actions so downstream steps depend on the external response.Per-Document Bridge Calls
By default aBRIDGE_CALL step makes a single HTTP call for the whole Activity. Set perDocument to true to fan the step out into one call per routed document instead.
perDocument is enabled, the step processes the routed documents one at a time. Each call’s request context is augmented with that document’s documentFamilyId, extractedData (the document family metadata), and documentPath, so the same request mapping can reference the current document.
Per-document behavior:
- Each document resolves its own action. Response routing runs per call, so different documents can take different downstream branches.
- Failures are isolated. A request-build error, a bridge transport error, or a
treatAsErrormatch fails only that document; the remaining documents continue. (An output-mapping expression that fails to compile or evaluate is logged as a warning and skipped — it does not fail the document.) - The step gets a consensus action only when every completed document resolves the same action. If documents disagree, no step-level action is emitted, but each document still records the action it resolved.
- The join policy governs the step rollup. The default is
ALL_SETTLED; setjoinPolicytoANY_BRANCHto complete the step as soon as one branch is satisfied. - Calls run sequentially.
maxParalleldoes not apply to per-documentBRIDGE_CALLsteps.
perDocument is only supported on EXECUTION, LLM, SCRIPT, and BRIDGE_CALL steps. Setting it on any other step kind is a plan validation error.Error Handling
UsetreatAsError when a successful HTTP response should still fail the step.
Security and Binding
Service Bridges are project resources. ABRIDGE_CALL step can only use bridges that are available to the project running the Activity.
This gives the platform a clear boundary:
- The Activity Plan defines the workflow.
- The project binding defines which bridges are allowed.
- The bridge configuration owns authentication and endpoint details.
- The step owns request data, routing, and result handling for this business process.
BRIDGE_CALL vs SCRIPT with serviceBridge.call()
Next Steps
Activity Plan Steps
See how bridge steps fit with CREATE_TASK, SCRIPT, EXECUTION, and LLM steps.
Calling Service Bridges from Scripts
Use
serviceBridge.call() from scripts, formulas, and event subscriptions.