Member Junction
    Preparing search index...

    The Create Workflow front door — the screen that replaces today's save-the-agent-record-first requirement.

    Implements screens A and B of mockups/workflow-ux/front-door-v1.html, which is the locked contract for this surface. Two of its five ratified answers are visible here:

    • ④ saving is capture, not scheduling. No trigger is asked for anywhere on this screen. A new workflow is On demand until someone gives it a schedule, and asking at creation time turns a two-second capture into a configuration task.
    • Only settled runs are promotable. An in-flight run may still change shape under a retry or a recovery branch, so the workflow you saved would not be the one that ran.

    Emits a WorkflowDraftRequest rather than persisting anything: "Nothing is saved until you approve it" is a promise the middle tile makes in so many words, and the canvas is where approval happens.

    Index

    Constructors

    Properties

    Busy: boolean = false

    True while the host is committing the workflow.

    Owned by the host rather than this component because the host is what saves. Without it the form stays live during the write and a second click would create a second workflow.

    Cancelled: EventEmitter<void> = ...

    Emitted when the author backs out.

    Created: EventEmitter<WorkflowDraftRequest> = ...

    Emitted when the author commits. The host routes to the canvas.

    CurrentUser: UserInfo | null = null

    The user to run the drafting operation as.

    Description: string = ''
    DraftError: string | null = null
    IsDrafting: boolean = false

    True while an agent is drafting the steps.

    Its own flag rather than a generic busy, because the wait is long enough to need explaining: a spinner with no words reads as a hang, and this one can take several seconds.

    IsLoadingRuns: boolean = false
    PastRuns: PromotableRun[] = []

    Provider to read past runs through — supplied by the host, never resolved globally.

    RunsError: string | null = null
    SelectedMode: WorkflowStartMode = DEFAULT_WORKFLOW_START_MODE
    SelectedRunID: string | null = null
    StartOptions: readonly WorkflowStartOption[] = WORKFLOW_START_OPTIONS
    WorkflowName: string = ''

    Accessors

    Methods

    • Loads the runs a workflow can be promoted from.

      Reads parent task rows — a graph's root — because that is the unit someone recognises as "a run". Filtered to terminal statuses in SQL rather than in memory so an instance with a long history does not pull every task row across the wire to discard most of them.

      Returns Promise<void>