Overview
The QuantumBPM SDKs cover the full platform - DMN evaluation, BPMN process orchestration, and external job workers - through one library per language.
| Language | Package | Worker concurrency primitive |
|---|---|---|
| Go | github.com/QuantumBPM/quantum-go-sdk/v2 | goroutine pool per task type |
| TypeScript / JavaScript | @quantumbpm/sdk | async with concurrency limit |
| Python | quantumbpm-sdk | asyncio tasks per task type |
| Java | com.quantumbpm:quantum-client, quantum-spring | virtual threads (Java 21+) |
Every SDK exposes the same shape: a top-level client with DMN and BPMN sub-clients and a worker factory for external job handlers. APIs are async-first where the language ecosystem expects it (Python, TS) and idiomatic-sync where it doesn't (Go, Java).
For coding agents there is the MCP server, which gives Claude Code, Cursor and other MCP clients the engine itself: FEEL evaluation, DMN validation and tests, and BPMN dry runs, all running locally.
Authentication
The SDKs send an OAuth 2.0 access token from the OIDC identity provider your QuantumBPM deployment trusts, for example Keycloak, Microsoft Entra ID, Okta or Auth0. Every SDK ships two token providers and a TokenProvider extension point for any other token source:
ClientCredentialsTokenProviderfetches tokens with the OAuth 2.0 client credentials grant. It takes the identity provider's token URL, a client ID, a client secret, optional scopes and an optional audience.StaticTokenProvidersends a token you acquired yourself, for example in tests.
Client credentials
Register a confidential client for your service at the identity provider. The token URL is the identity provider's token endpoint, for example:
https://idp.example.com/realms/acme/protocol/openid-connect/token
The exact token endpoint depends on the identity provider. Its OIDC discovery document (/.well-known/openid-configuration) lists it as token_endpoint.
The provider POSTs grant_type=client_credentials, client_id and client_secret as a form to the token URL. It adds scope (the scopes joined by spaces) and audience only when you set them. Some providers, such as Auth0, need the audience parameter to issue a token for your API. Set up the client at the identity provider so its tokens carry the audience and roles your QuantumBPM deployment expects.
The provider caches the token and fetches a new one once less than 60 seconds of its lifetime remain. When the token response has no expires_in, it treats the token as valid for 300 seconds. Concurrent callers share one token request. A non-2xx response from the token endpoint fails with an error that carries the HTTP status and response body.
What's in each SDK
Every SDK exposes:
- DMN evaluation - deployed definitions by definitions ID, ad-hoc XML, and batch evaluation of ad-hoc XML.
- BPMN runtime - resource lifecycle (create / deploy / list), instance lifecycle (start / get / cancel / variables / children / history / incidents), deployed process versions, messaging and signals, and user tasks (list / complete / throw error).
- External job workers - a long-poll runtime that owns lock heartbeats, dispatch, and outcome mapping. Handlers register per task type and run with per-task-type concurrency limits.
Vars- a small wrapper around the language's native map type with typed accessors. The same type carries DMN evaluation contexts, BPMN process variables, and worker job payloads.
For endpoints not yet wrapped (instance migration, modification, ad-hoc triggers, batch job complete/error), every SDK exposes the raw generated client via a client.raw() / client.raw escape hatch.