Skip to main content

Set Run Outcome

Record how this run went, beyond whether it crashed. Temporal only knows completed or failed, so a run that did its job while something went wrong along the way is indistinguishable from a clean one. Set 'warning' for that case. Becomes a reportable dimension on the run immediately — no table and no logging required. Call it as many times as needed; the last call wins.

Category: Flow Control & Logic · Group: General · Activity name: SetOutcome

The SetOutcome activity in the designer

Example

if hasWarnings:
SetOutcome("warning")

Inputs

NameTypeRequiredDefaultDescription
OutcomestringYesOne of: ok, warning, error. Bounded because every organisation shares this vocabulary. One of: ok, warning, error.