Skip to content

App Configuration Model ​

The h_app.yaml file defines the contents of a Hantera app. It specifies which resources are included in the package and how they are linked together.

An app manifest typically declares:

  • A unique app identifier
  • Portal extensions
  • Components
  • Ingress definitions
  • Rules
  • Egresses
  • Connections
  • App settings
  • Registry entries
  • Job definitions
  • Declared dependencies (requires) on other apps' graph shape and Filtrera modules — see Declaring App Dependencies and the Requires section below
yaml
id: hantera-test-app
name: Hantera Test App
description: Minimal example app showing HTTP ingress → reactor component → actor command, plus settings, registry entries, and a job definition.
authors:
  - Hantera

extensions:
  portal: ./portal

components:
  # Reactor component used by the HTTP ingress
  - id: components/orders.hrc

  # Reactor component used as a scheduled job target
  - id: components/hantera-test-app-order-processing.hrc

  # Rule component activated by the rules section below
  - id: rules/order-validation.hrl

  # Example discount component 
  # - id: discounts/order-discount.hrd

ingresses:
  - id: orders
    componentId: components/orders.hrc
    type: http
    acl:
      - actors/order:create
      # If the component reads app settings from registry, grant it explicitly
      - registry/apps/hantera-test-app/settings/webhookSecret:read
    properties:
      route: hantera-test-app/orders
      httpMethod: POST
      body:
        mode: structured
      isPublic: true

rules:
  - componentId: rules/order-validation.hrl
    parameters:
      maxOrderTotal: 10000

egresses:
  - id: shopfront-webhook
    componentId: platform/http
    idempotent: true
    parameters:
      url: https://shop.example.com/hooks/order-created

connections:
  partner-rabbit:
    type: rabbitmq
    properties:
      protocol: amqp10
      endpoint: amqp://localhost:5672
      authentication:
        mechanism: plain
        username: integration
        password: secret

registryEntries:
  # Example: extend the graph model with a field definition
  - path: /graph/order/fields/externalReference
    value:
      type: text
      source: dynamic->'externalReference'


jobDefinitions:
  - id: hantera-test-app-order-processing
    componentId: components/hantera-test-app-order-processing.hrc

settings:
  webhookSecret:
    label:
      default: Webhook secret
    description:
      default: Shared secret used to authenticate incoming webhook requests.
    secret: true

Each top-level field corresponds to a resource declaration or app-level configuration.

App ID ​

The id uniquely identifies the app resource and scopes app settings in Hantera.

Example:

id: hantera-test-app

App settings are stored under:

apps/hantera-test-app/settings/`<settingName>`

Portal Extensions ​

The extensions.portal field references a directory that will be bundled into the app package.

yaml
extensions:
  portal: ./portal

If defined, the portal extension directory is bundled and registered when the app is installed. Portal extensions are optional. Without one, the app can still execute backend logic and modify system state.

See the Portal Extension documentation for implementation details.

Components ​

The components field references component files included in the app.

yaml
components:
  - id: components/webhooks/orders.hrc
  - id: rules/cart-to-order.hrl

Each entry points to a Filtrera component file that will be packaged and registered during installation

See:

Ingresses ​

The ingresses field declares transport bindings for components. Example:

yaml
ingresses:
  - id: orders
    componentId: components/webhooks/orders.hrc
    type: http
    acl:
      - actors/order:create
    properties:
      route: hantera-test-app/orders
      httpMethod: POST
      body:
        mode: structured

Each ingress:

  • References a component via componentId
  • Declares transport type (http, etc.)
  • Defines an ACL
  • Specifies transport properties

See the Ingress documentation for full specification details.

Rules ​

The rules field activates rule components shipped with the app. Listing a rule component under components only packages it; it does not run until it is also referenced here.

Example:

yaml
components:
  - id: rules/order-validation.hrl
  - id: rules/order-confirmation.hrl

rules:
  - componentId: rules/order-validation.hrl
    parameters:
      maxOrderTotal: 10000
  - componentId: rules/order-confirmation.hrl

Each entry:

  • References a component via componentId, which must also be declared under components
  • Optionally sets parameters, keyed by the component's param names

parameters are plain YAML values. Every param in the component except input must either be given a value here or have a default value in the component, and each value must match the parameter's type. Installation fails otherwise.

On installation, all entries are combined into a single rule resource with the ID apps/<appId>, labelled with the app's name. The input parameter of each component determines which hook it runs on.

See the Rules documentation for hooks, effects, and examples.

Egresses ​

The egresses field declares outbound calls that the app's components can make with the call macro.

Example:

yaml
egresses:
  - id: createSession
    componentId: components/egresses/createSession.heg
    idempotent: true
    cacheTtlSeconds: 600
    acl:
      - registry/apps/my-app:read

  - id: shopfront-webhook
    componentId: platform/http
    idempotent: true
    parameters:
      url: https://shop.example.com/hooks/order-created
FieldRequiredDescription
idYesEgress key, unique within the app. Lowercase letters, digits, _, . and -. Callers use the full key apps/<appId>/<id>.
componentIdYesAn egress component declared under components, or a built-in platform component such as platform/http.
idempotentNoSet true only if repeating an identical call has the same effect. Only idempotent egresses can be called from rules. Defaults to false.
cacheTtlSecondsNoA positive value enables the response cache. Requires idempotent: true.
cacheKeyParameterNoName of a component parameter that carries the caller's cache key. Without it, the key is derived from the payload.
aclNoPermissions the egress component runs with, such as registry reads or connections/<id>:use.
parametersNoPins component parameters so callers cannot set them, for example the url of platform/http.

Callers need egresses/apps/<appId>/<id>:call in their own ACL, even when the egress belongs to the same app.

See the Egress documentation for egress components, caching, and access control.

Connections ​

The connections field declares message broker connections (RabbitMQ, Azure Service Bus, or Azure Event Hubs) that queue and stream ingresses consume from and egresses send through. Unlike the other sections, it is a map keyed by connection id.

Example:

yaml
connections:
  partner-rabbit:
    type: rabbitmq
    properties:
      protocol: amqp10
      endpoint: amqp://localhost:5672
      authentication:
        mechanism: plain
        username: integration
        password: secret

Each connection defines:

  • A type: rabbitmq, azureServiceBus, or azureEventHubs
  • Transport properties, such as the endpoint and authentication

Connections have no ACL of their own. An egress that sends through a connection is granted connections/apps/<appId>/<id>:use in its own acl.

The values in the manifest are defaults. To let each tenant configure the endpoint or credentials, bind those properties to app settings. See Settings Bindings.

See the Connection documentation for properties, authentication mechanisms, and status.

Registry ​

The registryEntries field declares registry paths that will be created or updated at installation time.

yaml
registryEntries:
  - path: /graph/ticket.cart/fields/email
    value:
      type: text
      source: dynamic->'email'

Each entry defines:

  • A registry path
  • A value payload

Registry semantics are defined in the Registry documentation.

Jobs Definitions ​

Apps can include jobDefinitions fields that reference components and make them schedulable for execution.

jobDefinitions:
  - id: hantera-test-app-order-processing
    componentId: components/hantera-test-app-order-processing.hrc
    # Optional: route to the low-latency queue (`default` or `priority`)
    queue: priority
    # Optional: cap simultaneous executions of this definition
    maxConcurrency: 1

queue and maxConcurrency are optional. See Queues and Concurrency for details.

Job definitions and their executions are managed through:

  • /resources/job-definitions
  • /resources/jobs

For the full model, examples, scheduling, retention, and monitoring, see the Job definitions and Jobs documentation.

App Settings ​

The settings field declares configurable values exposed in the Portal UI.

Example:

yaml
settings:
  webhookSecret:
    label:
      default: Webhook secret
    secret: true

When installed, this creates a configuration field in the Portal UI.

The value is stored in the registry under:

apps/`<appId>`/settings/`<settingName>`

A setting is used in one of two ways:

  1. Read by components — your Filtrera code reads the value from the registry and needs an explicit registry-read ACL:
filtrera
registry->'apps/hantera-test-app/settings/webhookSecret'

If secret: true, users cannot read it from the UI, but components can access it if granted ACL permission.

  1. Bound to a resource field — with a bindings declaration, the setting automatically overlays a field on a resource the app provides (a connection or ingress). The platform applies the value; components never read the setting and no registry ACL is needed:
yaml
settings:
  amqpEndpoint:
    label:
      default: AMQP endpoint
    bindings:
      connections:
        partner-rabbit: $.properties.endpoint

See Settings Bindings for the full model.

Requires ​

The requires section declares the graph shape and Filtrera modules an app depends on from other apps. For conceptual guidance and workflow, see Declaring App Dependencies.

Top-level structure ​

yaml
requires:
  graph: <RequiresGraph>      # optional
  modules: <RequiresModules>  # optional
FieldTypeRequiredDescription
graphRequiresGraphNoGraph contract: nodes, fields, edges, and sets the app reads.
modulesRequiresModulesNoModule contract: Filtrera modules the app imports.

Omitting requires means the app depends only on base graph shape and modules shipped in its own package.

requires.graph ​

yaml
requires:
  graph:
    nodes:
      <nodeId>: <RequiresGraphNode>
    sets:
      <setName>: <RequiresGraphSet>
FieldTypeRequiredDescription
nodesMap<string, RequiresGraphNode>NoKeyed by node id (asset.product, order, etc)
setsMap<string, RequiresGraphSet>NoKeyed by top-level set names used in queries

RequiresGraphNode ​

yaml
<nodeId>:
  fields:
    <fieldName>: <RequiresGraphField>
  edges:
    <edgeName>: <RequiresGraphEdge>
FieldTypeRequiredDescription
fieldsMap<string, RequiresGraphField>NoFields the app reads from the node
edgesMap<string, RequiresGraphEdge>NoEdges the app traverses from the node

RequiresGraphField ​

yaml
<fieldName>:
  type: <GraphFieldType>
  dimension: <dimensionName>   # optional
  enumDefinition: <enumId>     # optional
FieldTypeRequiredDescription
typeGraph field typeYesOne of: text, enum, number, instant, [text], [enum]
dimensionstringNoRequired dimension, for example locale
enumDefinitionstringNoEnum definition id; valid only when type is enum or [enum]

RequiresGraphEdge ​

yaml
<edgeName>:
  cardinality: single | many
  relatedNode: <nodeId>
FieldTypeRequiredDescription
cardinalitysingle | manyYesWhether traversal yields one node or many
relatedNodeNode idYesTarget node id, resolvable in the composite context

RequiresGraphSet ​

yaml
<setName>:
  node: <nodeId>
FieldTypeRequiredDescription
nodeNode idYesNode bound to this top-level set name

requires.modules ​

yaml
requires:
  modules:
    <modulePath>: <RequiresModule>

The map key is the path portion of component:// URI. For component://apps/products/price-lookup.module.hrc, the key is /apps/products/price-lookup.module.hrc.

RequiresModule ​

yaml
<modulePath>:
  exports:
    <exportName>: <RequiresModuleExport>
FieldTypeRequiredDescription
exportsMap<string, RequiresModuleExport>NoExports the app references; unused exports omitted

RequiresModuleExport ​

yaml
<exportName>:
  type: <FiltreraTypeString>
FieldTypeRequiredDescription
typeFiltrera type stringYesConsumer-declared expected export type

Manifest-level validation ​

CLI and server reject invalid requires declarations, including:

  • requires.modules key resolves to a local module in this same app.
  • requires.graph field/edge overlaps with graph contributions this app already provides via registryEntries.
  • requires.graph field type is outside the supported graph field type set.
  • requires.modules export type strings are not parseable Filtrera types.
  • relatedNode references a node not resolvable in the composite context.

At activation, consumer components compile against real producer source from active apps. If declared and real module export types diverge, standard Filtrera type diagnostics are produced.

© 2026 Hantera AB. Org. no.: 559242-9582