Manta Developers
GitHub
Menu

Run history

Show past runs of one or more action plans.

RunHistoryTable lists executions of the plans you name. It loads the runs itself.

What it is

Each row is one run: status, when it started, how long it took, the operation, and an error when the run failed. A dry run is badged. When you pass onRunClick, clicking a row calls it with that run’s activity IRI.

Import

import { RunHistoryTable } from "@manta-eu/react/components/planning/RunHistoryTable";

Example

<RunHistoryTable planIris={[planGraphIri]} onRunClick={(activityIri) => openRun(activityIri)} />

Request

  • planIris: the plan graph IRIs to include. The query runs when this list has at least one IRI.
  • showPlanColumn (default false): a column linking to each plan.
  • emptyDescription (default "This plan hasn't been executed. Runs will appear here once it does.")
  • onRunClick(activityIri)

The table asks for actionPlanRunHistory with those IRIs, ten runs per page.

Response

actionPlanRunHistory returns totalCount and runs. Each run has:

  • activityIri
  • planGraphIri
  • startedAt
  • endedAt
  • status: RUNNING, COMPLETED, or FAILED
  • operationType
  • errorMessage
  • dryRun

The component renders those fields. It does not return them.