resolveDryRun
Function: resolveDryRun()
resolveDryRun(
context,operationId):boolean
Defined in: packages/core/src/core/operations.ts:956
Decide whether an operation call should run in dry-run mode.
Resolution order:
- Already dry: if context.getExtension("dryRun") === true, nested operations stay dry.
- Enforce: if operation matches parameters.dryRun.enforce, always dry (wins over exclude).
- Exclude: if operation matches parameters.dryRun.exclude, turns off sources 4 & 5 (never overrides enforce).
- Global switch: parameters.dryRun.enabled === true.
- Per-call request:
- context.getExtension("requestedDryRun") === true
- REST header
X-Webda-Dry-Run: truewhen parameters.dryRun.allowRequest === true
Parameters
context
execution context
operationId
string
operation id
Returns
boolean
true if the call should run in dry mode