Skip to content

Manually Run a Workflow#

6.0 manageOrchestrator/writeWorkflows One

Execute your workflow on demand, regardless of its trigger configuration: from the workflow editor while building it, or from a case or alert page in TheHive.

Prerequisite

You must enable a workflow, and resolve any errors marked with , before you can run it manually.

Testing workflows with entry variables

Entry variables can't be passed when running a workflow manually from the workflow editor. If your workflow relies on input data to run, add a Set local variable node at the beginning with hardcoded test values. A manual run from a case or alert page passes a single input, the entity identifier, assigned to the case_id or alert_id entry variable when the workflow declares it.

Run a workflow from the workflow editor#

  1. Go to the Flow view from the sidebar menu.

    Flow view

  2. Select a workflow.

  3. In the workflow editor, select Run workflow.

    Run workflow

Run a workflow from a case or alert#

manageOrchestrator/readWorkflows manageOrchestrator/writeWorkflows

  1. Open a case or an alert.

  2. Go to the Automation tab.

  3. Select the Workflows tab.

    Run a workflow from a case or alert

    The tab lists the workflow runs already launched on the case or alert.

  4. Select Run a workflow.

  5. Select one or more workflows, then select Launch action(s).

Each selected workflow runs once. TheHive passes the identifier of the case or alert to the run as a variable named case_id or alert_id. To use it in the workflow, declare an entry variable with that exact name: the identifier is then available in the nodes as $input.case_id or $input.alert_id.

Next steps