Repository navigation
WW-5850 docs: design for declarative multi-step flows - #2130
Draft
lukaszlenart wants to merge 2 commits into
Draft
lukaszlenart wants to merge 2 commits into
lukaszlenart wants to merge 2 commits into
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ScopedModelDrivenInterceptor and ScopedModelDriven stay unchanged, so existing users keep today's code path. Flow actions implement a new flow model interface instead of ScopedModelDriven. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Fixes WW-5850
Design document only, for discussion before implementation:
docs/superpowers/specs/2026-11-08-WW-5850-scoped-model-driven-flows-design.md.Summary
Struts has two mechanisms for keeping form state across several requests: the
scopeinterceptor andscopedModelDriven. Neither has a lifecycle. This design adds declarative multi-step flows, implemented by a new dedicatedflowinterceptor, as a full alternative toscopefor multi-page forms.ScopedModelDrivenInterceptorandScopedModelDrivenare left unchanged, so existing users keep today's code path.start/step/end) instruts.xmlor with a Convention annotation.ScopedModelDriven), so the two interceptors never act on the same action.startcreates a new model by default; an action can opt in to resuming an existing one per request via an*Awareinterface that receives the existing model.steporendwith no running flow redirects to the flow'sstart.endfinishes the flow only when the action ran and returned neitherinputnorerror, so a failed final validation keeps the user's data.flowpresent beforeparamsin the stack).flowis added todefaultStackand does nothing for actions that declare no flow.Rollout
ScopeInterceptorandscopedModelDrivenunchanged.ScopeInterceptorwith a migration note (separate ticket).ScopeInterceptor(separate ticket).Background: the "Is anyone using the scope interceptor?" thread on user@ (2026-10-09).
🤖 Generated with Claude Code