For the complete documentation index, see llms.txt.
Skip to main content
Version: 8.10 (unreleased)

Configuration

Configuration is resolved from explicit options first, then environment variables, then built-in defaults.

AuthStrategy​

Authentication strategy.

Variants​

VariantPayloadDescription
OAuth—OAuth 2.0 client-credentials grant.
Basic—HTTP Basic authentication.
None—No authentication.

Authentication​

Resolves and applies authentication to outgoing requests.

Cloning an Authentication shares the same underlying OAuth token cache.

Methods​

MethodDescription
applyApply authentication to a generated-client Configuration, refreshing the OAuth token if necessary.
from_configBuild an Authentication from resolved configuration.
strategyThe configured strategy.

CamundaConfig​

Resolved SDK configuration.

Fields​

FieldTypeDescription
rest_addressStringBase REST address of the Orchestration Cluster, including the /v2 suffix.
auth_strategyAuthStrategyAuthentication strategy.
client_idOption<String>OAuth 2.0 client id (client-credentials grant).
client_secretOption<String>OAuth 2.0 client secret.
oauth_urlOption<String>OAuth 2.0 token endpoint URL.
token_audienceOption<String>OAuth token audience (sent as the audience form parameter).
oauth_scopeOption<String>OAuth scope (optional).
oauth_cache_dirOption<String>Directory for the on-disk OAuth token cache (CAMUNDA_OAUTH_CACHE_DIR). When set, fetched tokens are persisted so they survive process restarts.
basic_auth_usernameOption<String>Basic-auth username.
basic_auth_passwordOption<String>Basic-auth password.
default_tenant_idOption<String>Default tenant id applied to operations that accept one.
backpressure_profileBackpressureProfileAdaptive backpressure profile (CAMUNDA_SDK_BACKPRESSURE_PROFILE).
log_levelLogLevelSDK log level (CAMUNDA_SDK_LOG_LEVEL).
eventual_poll_default_msu64Default per-operation timeout, in milliseconds, for eventual-consistency polling helpers (CAMUNDA_SDK_EVENTUAL_POLL_DEFAULT_MS).
retryRetryConfigTransient-error HTTP retry policy.
tlsTlsConfigTLS / mutual-TLS configuration.
worker_defaultsWorkerDefaultsDefault job-worker settings sourced from CAMUNDA_WORKER_*.
falconboolWhether to upgrade to the nanobpmn command-stream transport when the gateway advertises it (CAMUNDA_FALCON, default on). When off, the SDK stays on pure REST even against a nanobpmn gateway.

Methods​

MethodDescription
from_envResolve configuration from process environment variables.
from_env_with_overridesResolve configuration from environment variables, with overrides taking precedence.

ConsistencyOptions​

Options controlling an eventual-consistency poll.

Fields​

FieldTypeDescription
timeoutOption<Duration>Maximum time to keep polling before giving up. None uses the SDK default (CAMUNDA_SDK_EVENTUAL_POLL_DEFAULT_MS).
intervalDurationDelay between polling attempts.
retry_not_foundboolTreat a 404 (not-found) result as "not yet consistent" and keep polling, rather than failing. Useful right after creating an entity.

Methods​

MethodDescription
intervalSet the delay between polling attempts.
retry_not_foundWhether to treat 404 as "not yet consistent" (default true).
timeoutSet an explicit overall timeout.

LogLevel​

SDK log level, controlling the verbosity of the SDK's structured logging.

Variants​

VariantPayloadDescription
Off—Suppress all SDK logging.
Error—
Warn—
Info—
Debug—
Trace—

Methods​

MethodDescription
to_tracingThe matching tracing::Level, or None when logging is off.

RetryConfig​

Transient-error HTTP retry policy (CAMUNDA_SDK_HTTP_RETRY_*).

Initiating operations that fail with a retryable signal (HTTP 429/503, or a network error) are retried with exponential backoff and full jitter.

Fields​

FieldTypeDescription
max_attemptsu32Maximum number of attempts (1 disables retries).
base_delay_msu64Base backoff delay, in milliseconds.
max_delay_msu64Maximum backoff delay, in milliseconds.

TlsConfig​

TLS / mutual-TLS configuration (CAMUNDA_MTLS_*).

A client certificate (cert + key) enables mutual TLS; a ca enables trusting a private certificate authority. Inline PEM values take precedence over the *_path file locations.

Fields​

FieldTypeDescription
certOption<String>Inline client-certificate PEM (CAMUNDA_MTLS_CERT).
keyOption<String>Inline client-key PEM (CAMUNDA_MTLS_KEY).
caOption<String>Inline CA-certificate PEM (CAMUNDA_MTLS_CA).
cert_pathOption<String>Path to a client-certificate PEM (CAMUNDA_MTLS_CERT_PATH).
key_pathOption<String>Path to a client-key PEM (CAMUNDA_MTLS_KEY_PATH).
ca_pathOption<String>Path to a CA-certificate PEM (CAMUNDA_MTLS_CA_PATH).
key_passphraseOption<String>Passphrase for an encrypted client key (CAMUNDA_MTLS_KEY_PASSPHRASE).

Methods​

MethodDescription
is_configuredWhether any TLS material has been configured.

WorkerDefaults​

Default job-worker settings sourced from CAMUNDA_WORKER_*. Used to seed JobWorkerConfig defaults.

Fields​

FieldTypeDescription
timeout_msi64Job activation timeout, in milliseconds (CAMUNDA_WORKER_TIMEOUT).
max_concurrent_jobsi32Maximum concurrent jobs per worker (CAMUNDA_WORKER_MAX_CONCURRENT_JOBS).
request_timeout_msi64Long-poll request timeout, in milliseconds (CAMUNDA_WORKER_REQUEST_TIMEOUT).
nameStringWorker name reported to the engine (CAMUNDA_WORKER_NAME).
startup_jitter_max_secondsu64Maximum random startup delay, in seconds (CAMUNDA_WORKER_STARTUP_JITTER_MAX_SECONDS).