Skip to main content

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​

SlugKindIdSubject keySuccess response
basic-device-activationactivation019ffcca-b078-71f0-a7ba-b3292fc1b135device.idActivationResponse — 201 / 200
advanced-activationactivation019fffb1-de5f-795a-8871-4df25bf2d6c4device.idActivationResponse — 201 / 200
provider-client-onlyactivation019f863b-26c2-73af-bdef-060c49f82a61device.idActivationResponse — 201 / 200
device-activationactivation019f863b-26c2-7055-9499-5b3270b49314device.idActivationResponse — 201 / 200
device-deactivationdeactivation019f863b-26c2-7a41-9d0e-1f7c4b8e5a22device.idDeactivationResponse — 200
provider-client-only-teardowndeactivation019f863b-26c2-791c-b890-a03648269806device.idDeactivationResponse — 200
list-org-assetsqueryb7a4c273-7e3d-40e5-b1de-ec6e807cd3fd—WorkflowQueryResponse — 200
gdpr-customer-teardownerasure2b7ba7e4-d37c-4f49-aaa2-e1f968b1f654customer.idWorkflowRunResponse — 200

A query workflow declares no subject key. It takes no run lock and writes no run record.

Choosing an activation workflow​

WorkflowCreates a per-customer sub-organizationUse for
basic-device-activationNo — relates to the configured organizationFlat tenancy
advanced-activationYes — resolves or creates one from customer.idPer-customer tenancy
provider-client-onlyNo — creates no asset eitherProvider client alone
device-activationYesEnergy-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​

KeyUsed by
device.idAll device workflows
customer.idadvanced-activation, device-activation, list-org-assets, gdpr-customer-teardown
organization.idAll activation workflows, list-org-assets, gdpr-customer-teardown
model.idbasic-device-activation, advanced-activation, device-activation
provider.idAll activation workflows
provider_template.idAll activation workflows
meter.iddevice-activation (optional on provider-client-only)
meter.addressdevice-activation
auth.methodAll activation workflows (optional)
client.idAll activation workflows (optional)
client.display_nameAll activation workflows (optional)
asset.idAll activation workflows (optional)
asset.display_namebasic-device-activation, advanced-activation (optional)
asset.tag.<key>Any workflow with a create_asset step (optional)
enrollment_group_idAll device workflows (optional; route-owned on the scoped route)

Names​

Assets and provider clients are named independently.

InputNamesFalls back to
asset.display_nameThe asset's human-readable nameasset.id, which falls back to device.id
asset.idThe asset's identifierdevice.id
client.display_nameThe 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:

Workflowset_relation steps
basic-device-activationNone
provider-client-onlyNone
advanced-activationFour, from the minted customer sub-organization
device-activationFour, 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:

SourceFormSet by
Workflow configurationtag_input.<tagKey> naming a bag keyThe workflow definition
Caller inputasset.tag.<tagKey> carrying a literal valueThe 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 inputsOptional inputsDefault
device.idauth.methodshared_key
customer.idclient.display_name—
meter.idasset.id—
meter.addressclient.id—
organization.idenrollment_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 inputsOptional inputsDefault
device.idauth.methodshared_key
organization.idclient.display_name—
model.idasset.id—
provider_template.idasset.display_name—
provider.idclient.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 inputsOptional inputsDefault
device.idauth.methodshared_key
customer.idclient.display_name—
organization.idasset.id—
model.idasset.display_name—
provider_template.idclient.id—
provider.idenrollment_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 inputsOptional inputsDefault
device.idauth.methodshared_key
organization.idclient.display_name—
provider_template.idclient.id—
provider.idasset.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 inputsOptional inputs
device.idenrollment_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 inputsOptional inputs
device.idenrollment_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 inputsOptional inputs
customer.id—
organization.id—

Steps, in order:

find_org
find_org_assets

Outputs:

KeyType
org.idstring
asset.idsarray of string

gdpr-customer-teardown​

Required inputsOptional 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:

PlaceholderValue
{{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 aliasEquivalent 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​

StateMeaning
registeredKnown to onboarding, no provider client
provisionedProvider client and asset exist
provider_client_onlyProvider 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​