Skip to content

civex workflow

Manage and run data processing workflows

Command Description
disable Switch a workflow off: its triggers start nothing, and it runs only when someone starts or tries it.
enable Switch a workflow on, so its triggers start runs.
list List all workflow definitions in _civex/workflows/.
run Run a workflow against a specific record.
try Try a workflow on a record without keeping anything it does.

civex workflow disable

Switch a workflow off: its triggers start nothing, and it runs only when someone starts or tries it.

Usage

civex workflow disable STEM

Arguments

Argument Type Required Description
STEM str yes Workflow filename stem

civex workflow enable

Switch a workflow on, so its triggers start runs.

Usage

civex workflow enable STEM

Arguments

Argument Type Required Description
STEM str yes Workflow filename stem

civex workflow list

List all workflow definitions in _civex/workflows/.

Usage

civex workflow list

civex workflow run

Run a workflow against a specific record.

Declared workflow inputs can be supplied with --input name=value. For inputs of type 'files', value is a glob pattern (e.g. --input files=*.csv). Supplied values are pre-seeded as input. and can be referenced in step inputs like: files: input.files

Usage

civex workflow run [OPTIONS] NAME

Arguments

Argument Type Required Description
NAME str yes Workflow name or filename stem

Options

Option Type Default Description
--record, -r str Record ID or short prefix (required)
--input, -i str Workflow input as name=value. For 'files' inputs, value is a glob pattern.

civex workflow try

Try a workflow on a record without keeping anything it does.

It runs as a real run would, then everything it wrote is undone, and what it would have done is printed: the records it would create, change or delete, with each value before and after, and the runs its saves would start. Works whether the workflow is on or off. A plugin that reaches outside civex (a web request, a file of its own) still does so.

Usage

civex workflow try [OPTIONS] NAME

Arguments

Argument Type Required Description
NAME str yes Workflow name, filename stem, or a path to a YAML file

Options

Option Type Default Description
--record, -r str Record ID or short prefix (required)
--input, -i str Workflow input as name=value. For 'files' inputs, value is a glob pattern.