Registered Workflows
The workflows registered in the onboarding service, with their identifiers, inputs, and steps.
Workflow ids are stable UUIDs and do not change across deployments. Slugs are metadata: the enrollment-group-scoped routes accept either a slug or a UUID, the generic routes accept a UUID only.
Input keys are literal dictionary keys in the params and outputs bags. They keep their dotted
and underscored form and are not camelCased, unlike DTO property names elsewhere in the
management API.
Catalog
| Slug | Kind | Id | Subject key | Success response |
|---|---|---|---|---|
basic-device-activation | activation | 019ffcca-b078-71f0-a7ba-b3292fc1b135 | device.id | ActivationResponse — 201 / 200 |
advanced-activation | activation | 019fffb1-de5f-795a-8871-4df25bf2d6c4 | device.id | ActivationResponse — 201 / 200 |
provider-client-only | activation | 019f863b-26c2-73af-bdef-060c49f82a61 | device.id | ActivationResponse — 201 / 200 |
device-activation | activation | 019f863b-26c2-7055-9499-5b3270b49314 | device.id | ActivationResponse — 201 / 200 |
device-deactivation | deactivation | 019f863b-26c2-7a41-9d0e-1f7c4b8e5a22 | device.id | DeactivationResponse — 200 |
provider-client-only-teardown | deactivation | 019f863b-26c2-791c-b890-a03648269806 | device.id | DeactivationResponse — 200 |
list-org-assets | query | b7a4c273-7e3d-40e5-b1de-ec6e807cd3fd | — | WorkflowQueryResponse — 200 |
gdpr-customer-teardown | erasure | 2b7ba7e4-d37c-4f49-aaa2-e1f968b1f654 | customer.id | WorkflowRunResponse — 200 |
A query workflow declares no subject key. It takes no run lock and writes no run record.
Choosing an activation workflow
| Workflow | Creates a per-customer sub-organization | Use for |
|---|---|---|
basic-device-activation | No — relates to the configured organization | Flat tenancy |
advanced-activation | Yes — resolves or creates one from customer.id | Per-customer tenancy |
provider-client-only | No — creates no asset either | Provider client alone |
device-activation | Yes | Energy-sector integrations only |
device-activation is sector-specific: it requires meter.id and meter.address and writes them
as the asset tags meter_id and address. New integrations should use basic-device-activation
or advanced-activation, which carry no sector vocabulary.
Input keys
| Key | Used by |
|---|---|
device.id | All device workflows |
customer.id | advanced-activation, device-activation, list-org-assets, gdpr-customer-teardown |
organization.id | All activation workflows, list-org-assets, gdpr-customer-teardown |
model.id | basic-device-activation, advanced-activation, device-activation |
provider.id | All activation workflows |
provider_template.id | All activation workflows |
meter.id | device-activation (optional on provider-client-only) |
meter.address | device-activation |
auth.method | All activation workflows (optional) |
client.id | All activation workflows (optional) |
client.display_name | All activation workflows (optional) |
asset.id | All activation workflows (optional) |
asset.display_name | basic-device-activation, advanced-activation (optional) |
asset.tag.<key> | Any workflow with a create_asset step (optional) |
enrollment_group_id | All device workflows (optional; route-owned on the scoped route) |
Names
Assets and provider clients are named independently.
| Input | Names | Falls back to |
|---|---|---|
asset.display_name | The asset's human-readable name | asset.id, which falls back to device.id |
asset.id | The asset's identifier | device.id |
client.display_name | The provider client's name | — |
device-activation is the exception: it takes the asset's display name from meter.id rather than
asset.display_name.
Neither display name is written as a tag.
Relations
Creating a resource writes its own owner relation to the organization it is created in — assets through the asset API, provider clients through core. Activation workflows never write that relation themselves.
An explicit set_relation step is therefore only needed when a resource must be reachable from an
organization other than the one that owns it. That is what the sub-organization flows do:
| Workflow | set_relation steps |
|---|---|
basic-device-activation | None |
provider-client-only | None |
advanced-activation | Four, from the minted customer sub-organization |
device-activation | Four, from the minted customer sub-organization |
The four are asset, model, provider, and provider_client, each with relation viewer.
Access to shared resources — models, providers, provider templates — is granted at setup time. Activation never grants it.
Asset tags
Any workflow whose steps include create_asset writes tags onto the asset it creates. Tags come
from two independent sources:
| Source | Form | Set by |
|---|---|---|
| Workflow configuration | tag_input.<tagKey> naming a bag key | The workflow definition |
| Caller input | asset.tag.<tagKey> carrying a literal value | The run request |
Both produce a tag of the form tagKey:value. Configuration tags are emitted first, then caller
tags in ordinal key order. A source whose value is absent or empty is skipped.
Caller tags use a dynamic key prefix, so they are not listed in requiredInputs or
optionalInputs and do not appear in the describe response. Sending
"asset.tag.externalid": "ABC" in params produces the tag externalid:ABC.
device-activation
Energy-sector activation. Resolves or creates a per-customer sub-organization and relates the created and configured resources to it.
Writes two asset tags from its inputs: meter_id from meter.id, and address from
meter.address. The asset's display name is taken from meter.id.
For new integrations prefer advanced-activation, which has the same
sub-organization behaviour without the meter vocabulary.
| Required inputs | Optional inputs | Default |
|---|---|---|
device.id | auth.method | shared_key |
customer.id | client.display_name | — |
meter.id | asset.id | — |
meter.address | client.id | — |
organization.id | enrollment_group_id | — |
model.id | ||
provider_template.id | ||
provider.id |
Steps, in order:
require_device_id_format
require_enrollment_group_enabled
require_device_registered
probe_device_state
require_state
validate_provider_inputs
resolve_device_identities
create_provider_client
provision_provider_client
create_asset
bind_asset
create_org
set_relation (org -> asset, relation viewer)
set_relation (org -> model, relation viewer)
set_relation (org -> provider, relation viewer)
set_relation (org -> provider_client, relation viewer)
persist_device_state
basic-device-activation
Flat activation without a per-customer sub-organization. Creates the asset and provider client
under the configured organization.id.
| Required inputs | Optional inputs | Default |
|---|---|---|
device.id | auth.method | shared_key |
organization.id | client.display_name | — |
model.id | asset.id | — |
provider_template.id | asset.display_name | — |
provider.id | client.id | — |
enrollment_group_id | — |
Steps, in order:
require_device_id_format
require_enrollment_group_enabled
require_device_registered
probe_device_state
require_state
validate_provider_inputs
resolve_device_identities
create_provider_client
provision_provider_client
create_asset
bind_asset
persist_device_state
This workflow writes no relations. Both resources it creates are owned by
organization.id through the owner relation that resource creation itself records — see
Relations.
advanced-activation
Per-customer activation in platform vocabulary. Resolves or creates a sub-organization from
customer.id and relates the created and configured resources to it.
| Required inputs | Optional inputs | Default |
|---|---|---|
device.id | auth.method | shared_key |
customer.id | client.display_name | — |
organization.id | asset.id | — |
model.id | asset.display_name | — |
provider_template.id | client.id | — |
provider.id | enrollment_group_id | — |
Steps, in order:
require_device_id_format
require_enrollment_group_enabled
require_device_registered
probe_device_state
require_state
validate_provider_inputs
resolve_device_identities
create_provider_client
provision_provider_client
create_asset
bind_asset
create_org
set_relation (customer org -> asset, relation viewer)
set_relation (customer org -> model, relation viewer)
set_relation (customer org -> provider, relation viewer)
set_relation (customer org -> provider_client, relation viewer)
persist_device_state
provider-client-only
Provider client without an asset or organization.
| Required inputs | Optional inputs | Default |
|---|---|---|
device.id | auth.method | shared_key |
organization.id | client.display_name | — |
provider_template.id | client.id | — |
provider.id | asset.id | — |
meter.id | — | |
enrollment_group_id | — |
model.id is not accepted — the workflow has no asset step.
Steps, in order:
require_device_id_format
require_enrollment_group_enabled
require_device_registered
probe_device_state
require_state
validate_provider_inputs
resolve_device_identities
create_provider_client
provision_provider_client
persist_device_state
device-deactivation
Tears down either activation variant.
| Required inputs | Optional inputs |
|---|---|
device.id | enrollment_group_id |
Steps, in order:
require_device_registered
probe_device_state
require_state
require_resolvable_provider_client
delete_asset
delete_provider_client
persist_deactivated
provider-client-only-teardown
| Required inputs | Optional inputs |
|---|---|
device.id | enrollment_group_id |
Steps, in order:
require_device_registered
probe_device_state
require_state
require_resolvable_provider_client
delete_provider_client
persist_deactivated
list-org-assets
Read-only. Writes no run record and returns no runId.
| Required inputs | Optional inputs |
|---|---|
customer.id | — |
organization.id | — |
Steps, in order:
find_org
find_org_assets
Outputs:
| Key | Type |
|---|---|
org.id | string |
asset.ids | array of string |
gdpr-customer-teardown
| Required inputs | Optional inputs |
|---|---|
customer.id | — |
organization.id | — |
Steps, in order:
find_org
teardown_org_devices
delete_org
Response template variables
An enrollment group's responseTemplate is rendered per device and returned by
GET /get_settings. These placeholders are accepted:
| Placeholder | Value |
|---|---|
{{deviceId}} | The device's identifier |
{{enrollmentGroupId}} | The device's enrollment group id |
{{brokerUrl}} | Broker host from the routing target |
{{brokerPort}} | Broker port from the routing target, rendered as a JSON number |
{{primaryKey}} | Provider-issued primary credential |
{{secondaryKey}} | Provider-issued secondary credential |
{{estEnrollmentUrl}} | EST enrollment URL for certificate groups |
{{estRenewalUrl}} | EST renewal URL for certificate groups |
{{config.<key>}} | An enrollment-group config field; an unknown key renders null |
These legacy dotted forms remain accepted for templates authored against earlier documentation:
| Legacy alias | Equivalent to |
|---|---|
{{device.id}} | {{deviceId}} |
{{device.primary_key}} | {{primaryKey}} |
{{device.secondary_key}} | {{secondaryKey}} |
{{target.host}} | {{brokerUrl}} |
{{target.port}} | {{brokerPort}} |
Templates are validated when a group is created or updated. An unrecognised placeholder is rejected, as is a placeholder used as an object key. Variables that do not apply to the group's attestation type are resolved at render time, not at validation time.
Device states
| State | Meaning |
|---|---|
registered | Known to onboarding, no provider client |
provisioned | Provider client and asset exist |
provider_client_only | Provider client exists, no asset |
require_state on the activation workflows admits registered and provider_client_only. On the
deactivation workflows it admits provisioned and provider_client_only.
See also
- Onboarding Management API — endpoint, request, and response shapes
- Workflow Error Codes — every code the run routes return
- How workflows execute — subject locks, convergence, retention