Omniscope Custom Views › sequentialworkflowexecution

Sequential Workflow Execution

A button in the report that runs workflow blocks one after another, in your order, and stops at the first failure.

Tool

Open the demo in Omniscope Download demo.ioz Sample data: orders.csv Source on GitHub

A button in the report that runs workflow blocks one after another, in your order, and stops at the first failure.

Live: press the button. The blocks run one after another, each starting when the one before has finished (simulated Workflow REST API).

The problem it solves

When several blocks are executed together, Omniscope orders them by their connections in the workflow. Some steps have an order the workflow cannot see: a block writes a file or a database table, and another block reads it back; an export must finish before a notification goes out.

The Sequential Workflow Execution view executes each block as a separate job and starts the next only when the previous one has finished. The status line says which step is running, and where the sequence stopped if one fails. Above, three illustrative steps run in turn.

Where it earns its place

The examples below are illustrative.

Team Steps, in order
Data team Write the cleaned table to the warehouse, then refresh the report that reads it
Finance Import the ledger, run the checks, then publish the pack
Operations Export the pick list, then email the depot

How to use it in Omniscope

  1. Give the users who should press the button the Workflow Execution via APIs permission on the server.
  2. In the report, add a view and choose Sequential Workflow Execution.
  3. Type the block names in Blocks to execute, in order, separated by commas.
  4. Set Button text, and choose whether to Refresh from source.

Why do this in Omniscope

Data and options

No data is needed; the view can sit on any report tab.

Option What it does
Blocks to execute Block names in order, separated by commas (required)
Button text The label on the button
Refresh from source Applies to each step
Show job state Show which step is running (errors always show)

Tested

Mock harness with a stand-in for the Workflow REST API: three blocks requested one at a time in the given order, each only after the previous job finished; a failing middle step stops the sequence before the last; a block name not in the workflow; filtering (sends nothing); a 120 by 60 pane; empty data; no blocks set (button disabled, with a message); and six steps; and a reload of the view in the middle of a run (the sequence carries on).

Reference

Options

NameTypeWhat it does
Blocks to executeTEXTNames of the workflow blocks to execute, in order, separated by commas, e.g. Load orders, Clean, Report. Each one starts when the one before has finished; a failure stops the rest.
Button textTEXTText on the button. If empty: Execute
Refresh from sourceTOGGLEOn: the blocks reload their data from the sources. Off: data already loaded upstream is reused where possible.
Show job stateTOGGLEShow the execution's progress (queued, running, finished) under the button. Errors are always shown.