ADocumentation Index
Fetch the complete documentation index at: https://developer.kodexa.ai/llms.txt
Use this file to discover all available pages before exploring further.
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
| Config key | Description |
|---|---|
serviceBridgeRef | Service Bridge slug or ref |
endpointName | Endpoint defined by the bridge |
requestBody | Static body, template, or expression that builds the JSON request |
requestQuery | Optional query-string template |
requestPath | Optional path substitution |
requestHeaders | Optional request headers, excluding secrets |
requestScript | Optional JavaScript preprocessor for complex request construction |
bridgeActions | Actions the bridge response can emit for downstream routing |
treatAsError | Predicate that marks a response as a failed step |
timeoutSeconds | Per-call timeout |
disableCache | Whether to bypass bridge-level caching for this call |
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.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()
| Requirement | Better fit |
|---|---|
| One external call should be visible and retryable as its own step | BRIDGE_CALL |
| Several external calls feed one custom decision | SCRIPT |
| Request mapping is straightforward | BRIDGE_CALL |
| The call should mutate documents before deciding the branch | SCRIPT |
| Operators need to see the external call status directly | BRIDGE_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.