Options
All
  • Public
  • Public/Protected
  • All
Menu

Contains information about the running process. In addition to the members listed here, the object returned by ProcessLogic's contextFromArgs will be mixed in.

Hierarchy

Index

Properties

args: any[]

The arguments passed to ProcessStart.

completed: string[]

The names of actions that have run to completion in the current process.

conditions: Record<string, any>

Any values passed to update or provided as the 2nd argument to the transitions ProcessContext.

results: Record<string, any>

The values returned by each execute method, where each action name is a key.

started: string[]

The names of actions that have been started in the current process.

Methods

  • Invoked to stop the running process, immediately rejecting the promise. No further actions will be run.

    Parameters

    • Optional data: Properties

      Optional data to merge into the Error the promise will be rejected with.

    Returns void

  • stop(): void
  • Invoked to stop the running process, immediately resolving the promise. No further actions will be run.

    Returns void

  • update(conditions?: Record<string, any>): void
  • Invoked to update the set of conditions used within the running process.

    NOTE: This method updates the conditions used by the ProcessLogic returned by dependencies.

    Parameters

    • Optional conditions: Record<string, any>

      The conditions to merge into the process' internal set of conditions.

    Returns void