Skip to content

Workflow description format

Bartosz Balis edited this page Jul 30, 2019 · 6 revisions

Support for templates

HyperFlow workflow description supports variable interpolation. You can put {{var_name}} variables in the workflow.json, and provide values for these variables in one of the following ways:

  • Through hflow command line parameter --var, e.g.
hflow run <wf_dir> --var="function=command_print" --var="workdir=/home/workdir"
  • Through environment variables starting with HF_VAR_, e.g.
export HF_VAR_function=command_print

This will result in replacing all occurrences of {{function}} in workflow.json with command_print when the workflow is run with the hflow run command.

Clone this wiki locally