Skip to main content

Workflows

A workflow gets data into Hypermeter and turns it into a result that a cube can read. It is a set of jobs that you connect, so that each job runs after the jobs it depends on. Owners build workflows under Workflows.

This page explains what a workflow is, what its four tabs do, and how you publish a version. For a first walk-through with pictures, follow Tutorial: build a pipeline from scratch.

Hypermeter Pipeline

Workflow pipeline in Hypermeter

Jobs and their order​

A workflow uses one or more of four job kinds. A common flow is Extract, then Load, then Transform, then Charge.

Job kindWhat it doesRead more
Extract jobFetches raw data from an API, a database, or cloud storageExtractors
Load jobMaps the fetched data into a table with typed columnsLoaders
Transform jobUses SQL to create the table that a Charge job readsTransformers
Charge jobTurns a table into a reportable result and connects it to a cubeChargers

A workflow does not need every job kind, and it can have several jobs of one kind.

You set the order by drawing arrows between jobs on the Build tab. A job starts only after every job it depends on has finished. A job can depend on several jobs:

Here the first Load job waits for Extract jobs A and B, and the Charge job waits for both Transform jobs.

Arrows always point forward. A job cannot depend on itself, directly or through a loop. For the combinations that are allowed, see Connect jobs.

Workflows run on a schedule or on demand. There is no streaming or real-time mode. See Running and scheduling.

Read a table from another workflow​

An arrow connects jobs of one workflow only. A Transform job or Charge job can still read a table that another workflow writes. See Read a table another workflow writes.

Reading a table does not set an order between the two workflows. To run a workflow each time another workflow succeeds, see Run after another workflow succeeds.

Draft and published versions​

A workflow has a draft and, after you publish it, a published version. The app marks that version as Published.

DraftPublished version
What it isThe workflow as you edit it on the Build tabA fixed copy of the draft, made when you select Publish
What uses itPreviewExecute and schedules
How it changesEach edit saves automaticallyOnly when you publish the draft, or publish an older version again

Saved in the toolbar means that your edit is stored in the draft. It does not mean that the draft passed its checks or that it is published.

Preview runs the draft and keeps its results apart from production. A good Preview does not publish anything. See Preview Workbench.

The four tabs​

In the Workflows list, select Edit workflow on a row to open that workflow.

The Workflows list.
The Workflows list.
TabUse it toRead more
BuildAdd jobs, connect them, edit each job, and Preview the draftBuilding and editing workflows
ReviewCheck the draft and publish it. See earlier versions and publish one of them againReview and publish
OperateRun the published version, manage schedules, and read runs. The tab shows the published version, such as v1 publishedRunning and scheduling
Settings (button at the top right)Change the name and description, set the run period, and archive or delete the workflowSettings

Review and publish​

Runs and schedules use only the version that you published. The Review tab checks the draft and publishes it. A badge on the tab reads Changes when the draft has changes that are not published, or Draft when the workflow was never published.

The Review tab of a workflow that is ready to publish.
The Review tab of a workflow that is ready to publish.
  1. Open the workflow and open the Review tab. Hypermeter saves pending edits and checks the whole workflow: every job and request, the inputs, the connections between jobs, and the active schedules. The checks do not run the workflow on real data.

  2. Read the status line:

    What you seeWhat it meansWhat to do
    Ready to publish, with the number of changed jobsThe release checks passedGo on with step 3
    Needs attention, with the number of issuesIssues block publishingOpen Issues, correct each job, and come back
    Publish again required, with the reasonThe published version must be published again before it can runPublish, also when you changed nothing
    Up to date · Version N is publishedThe draft is the same as the published versionNothing
    Checks unavailableHypermeter could not complete the checks, so you cannot publishSelect Check again
  3. On Changes, check the changed jobs. Each job has one row with a summary, such as SQL updated · output unchanged, 2 columns added, Grain changed, or Reads a changed table. Select Inspect to open the job.

  4. Enter a Note (optional).

  5. Select Publish and confirm in the dialog Publish version N?

What publishing does:

  • New runs and enabled schedules use the new version.
  • A connected cube that is still a draft is published in the same step. Its grain is locked from then on.
  • It does not start a run and does not enable a schedule. To run the workflow, open Operate and select Execute.
  • It does not copy Preview results to production.

To publish, the workflow needs at least one enabled job. A disabled Load job does not block publishing when its instructions and its source selection are complete.

The Review tab can also show the following. None of it blocks publishing.

What you seeWhat it means
A job listed under another jobThe job fails only because the job that it reads failed. Correct that job first
WarningsFor example an Extract output that nothing uses, or a loaded request that no Load job reads
Technical detailsRemarks on how a statement runs, such as a join that may multiply rows
Effects of publishingThe schedules that will run the new version, changed jobs whose earlier results you may want to run again, and other jobs or workflows that write the same table. Publishing does not do any of this for you

If the draft or the published version changes while you review, select Check again before you publish. Hypermeter keeps your note.

Discard changes​

To go back to the published version, select Discard changes on the Review tab and confirm. The button is there when the workflow has a published version and the draft differs from it.

Discarding removes every change since the published version, including jobs that were added and changes that other people made. You cannot undo it. If someone saved the draft after you opened the dialog, nothing is discarded and the dialog shows The draft changed. Check again.

Release history​

Select Release history on the Review tab to list each version with the person who approved it, the time, and the note. The version that production runs has a Published badge. Select Show older versions to see more.

To...Do this
See what a version containedSelect the name of the version, such as Version 2. Release review opens
Roll backOpen an older version and select Publish again. Enter a note if you want, and confirm. Production moves to that version, and no run starts. The history shows Published again by with the person and the time. The older version itself does not change

Settings​

Select Settings at the top right of the workflow. Select Back to workflow or press Esc to return.

The settings of a workflow: General with the name, the description, and the run period, and Lifecycle.
The settings of a workflow: General with the name, the description, and the run period, and Lifecycle.
SectionWhat you do there
General: Workflow name and DescriptionChange them and select Save changes
General: Run periodChoose the Period start input, the Period end input, and the Period timezone, and select Save period. A backfill needs this. See Declare the workflow's period
LifecycleArchive, restore, or delete the workflow

Archive, restore, or delete a workflow​

To...Do thisGood to know
Stop using a workflow but keep its historyDelete every schedule and wait until no run is in progress. Then open Lifecycle, select Archive Workflow, and confirmAn archived workflow cannot be edited, run, or scheduled, and it does not write to its cubes. Its versions, runs, and history are kept, and the cubes stay readable
Use an archived workflow againOpen Settings and select Restore Workflow in the archived notice. The Review tab links to it with Restore in SettingsThe published version does not change. Create the schedules again
Delete a workflow that was never publishedOpen Lifecycle, select Delete Draft and Preview data, and type the exact workflow name to confirmYou cannot undo this. Job templates and production data are kept

You can delete only a workflow that was never published and has no production history. Archive a workflow that has a published version or runs. If something still blocks the action, follow the instruction that Lifecycle shows.

The Lifecycle section of a published workflow. You can archive it, and the section gives the reasons why you cannot delete it.
The Lifecycle section of a published workflow. You can archive it, and the section gives the reasons why you cannot delete it.

Workflows and cubes​

A workflow produces data. A cube reports on it. The two meet in a Charge job that publishes to a cube. A Charge job without a cube produces an intermediate result that Transform jobs in the same workflow can read.

See Chargers and Linking producers.