Skip to content

feat(workflows): branch event waits by outcome - #466

Draft
vladbisceanu wants to merge 1 commit into
useplunk:nextfrom
vladbisceanu:upstream/137-wait-branching
Draft

feat(workflows): branch event waits by outcome#466
vladbisceanu wants to merge 1 commit into
useplunk:nextfrom
vladbisceanu:upstream/137-wait-branching

Conversation

@vladbisceanu

Copy link
Copy Markdown

What changed

  • model WAIT_FOR_EVENT transitions with explicit EVENT and TIMEOUT outcomes
  • migrate existing linear waits without breaking legacy explicit timeout fallbacks
  • route both outcomes through the same execution path and persist resumed event data in execution context
  • expose named routes in the builder, workflow validation, visualizer, API docs, and workflow docs

Why

A wait currently cannot send event arrival and timeout down different paths, and resumed event data is not available to downstream conditions, templates, or webhooks.

Verification

  • 96 focused workflow tests on current next
  • API build
  • web production build
  • focused API and web lint
  • fresh PostgreSQL migration deploy
  • legacy linear and explicit-timeout migration proof
  • final local risk review: no findings

Fork integration: vladbisceanu#6. Evaluation tracking: vladbisceanu/setup-works#137.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant