Inputs and precedence
Inputs are typed parameters that you can override. With inputs, the same job, workflow, or schedule serves many customers, date ranges, and environments. This page lists the input types, the syntax in each job kind, and the order in which a value resolves when more than one place sets it.
To define inputs and input groups, see Inputs and parameters. For credentials, see Secrets.
Input types
The instructions of a job declare its inputs: name, type, and optional default. Workflow, job, input group, schedule, and run settings only supply values. When several enabled jobs use the same input name, they must declare the same type.
| Type | Holds | Notes |
|---|---|---|
| String | Free text | Names, URLs, and identifiers. |
| Boolean | True or false | Flags that switch behavior on or off. |
| Numeric | A number | Counts, limits, page sizes, and amounts. |
| DateTime | A point in time | Date ranges and run windows. A schedule can pass its fire time to a DateTime input. |
| SecretRef | A reference to a stored secret | It names the secret and never holds the value. Hypermeter resolves the value when the run executes, so credentials stay out of templates and run history. See Secrets. |
Templating syntax by context
You reference an input by name. The syntax depends on the job kind, and the forms are not interchangeable.
| Context | Syntax | Where it applies |
|---|---|---|
| Extractor | ${{ inputs.NAME }} | Supported fields such as request URLs and bodies |
| Loader | None for user inputs | Static relation and source fields, with typed literal or server-parameter defaults |
| Transformer | :input_name | Typed SQL values |
| Charger | ${{ inputs.NAME }} | Supported template fields such as billed timestamps |
In an Extract job:
https://api.example.com/v1/usage?start=${{ inputs.START_DATE }}&account=${{ inputs.ACCOUNT_ID }}
In Transformer SQL:
select *
from raw_usage
where usage_date >= :start_date
Precedence
When more than one layer sets the same input, the most specific layer wins. From highest to lowest priority:
| Priority | Layer | Value from |
|---|---|---|
| 1 | Per-run value | A single run |
| 2 | Schedule value | The schedule that triggered the run |
| 3 | Workflow input groups | The input groups of the workflow, in their configured order |
| 4 | Job value | The individual job |
| 5 | Workflow value | The workflow |
| 6 | Instruction default | The default declared in the job instructions |
A value at a higher layer overrides every layer below it. If no layer sets the input, the instruction default applies. Without a default, the input is unset. What happens then depends on the input:
| Input | When it is unset |
|---|---|
Any declared input of an Extract job or Transform job, also without required | Hypermeter rejects the launch. |
| Optional public input of a Charge job | The run continues. Hypermeter records the input as null for that run. |
| SecretRef input | It always needs a reference to an active secret. |
An explicit null counts as a supplied value. The job must support null wherever it uses the input.
The input check does not evaluate date expressions. The job evaluates them. A missing timestamp does not make the job use the current time.
Input groups and collisions
An input group is a reusable set of values. A workflow can apply several groups. When two groups define the same input name, the earlier group in the order wins. Reorder the groups to change the winner.
Frozen run values
When Hypermeter plans a run, it resolves every input and freezes the values on that run. A restart reuses those values and does not pick up values that were set after the run was planned. To use a new value, start a new run instead of a restart.
Schedule fire time
A schedule can pass its fire time to a DateTime input that an enabled job declares. Each scheduled run then gets the time at which the schedule fired, so a daily run can process "yesterday" without a fixed date. See Running and scheduling.
Related pages
- Inputs and parameters: define inputs and input groups.
- Secrets: store credentials and reference them with SecretRef inputs.
- Job instructions: the exact keys of each job kind.