Skip to main content

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.

TypeHoldsNotes
StringFree textNames, URLs, and identifiers.
BooleanTrue or falseFlags that switch behavior on or off.
NumericA numberCounts, limits, page sizes, and amounts.
DateTimeA point in timeDate ranges and run windows. A schedule can pass its fire time to a DateTime input.
SecretRefA reference to a stored secretIt 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.

ContextSyntaxWhere it applies
Extractor${{ inputs.NAME }}Supported fields such as request URLs and bodies
LoaderNone for user inputsStatic relation and source fields, with typed literal or server-parameter defaults
Transformer:input_nameTyped 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:

PriorityLayerValue from
1Per-run valueA single run
2Schedule valueThe schedule that triggered the run
3Workflow input groupsThe input groups of the workflow, in their configured order
4Job valueThe individual job
5Workflow valueThe workflow
6Instruction defaultThe 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:

InputWhen it is unset
Any declared input of an Extract job or Transform job, also without requiredHypermeter rejects the launch.
Optional public input of a Charge jobThe run continues. Hypermeter records the input as null for that run.
SecretRef inputIt 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.