Skip to main content

Extension

The Extension component is used for instance data enrichment. Extensions are invoked in Data Function and GetInstanceData endpoints; their results appear in the extensions object of the response.

Schema: vnext-schema/extension-definition.schema.json

Usage Model

When instance data is queried or a Data Function is called, the extensions list in the workflow definition runs and the results are added to the response:

{
"id": "...",
"key": "...",
"metadata": { },
"attributes": { },
"extensions": {
"customer-detail": { },
"credit-history": { }
}
}

Each extension key becomes a property in the extensions object, with the value being whatever the extension returns.

Required Fields

FieldTypeDescription
keystringUnique identifier (becomes the property name in the response)
versionstringExtension version (SemVer)
domainstringOwning domain
flowstringAssociated flow
flowVersionstringFlow version
tagsstring[]Tags
attributesobjectExtension behavior content

Typical Use Cases

  • Customer enrichment: full customer info from a customer ID
  • Credit history: credit history associated with the instance
  • External system data: pulling data from external systems
  • Computed fields: fields derived from instance data