Repository navigation
WW-5850 docs: design for declarative multi-step flows on ScopedModelDriven - #2130
Draft
lukaszlenart wants to merge 1 commit into
Draft
lukaszlenart wants to merge 1 commit into
lukaszlenart wants to merge 1 commit into
Conversation
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. This design givesscopedModelDrivenan explicit lifecycle so it becomes a full alternative toscopefor multi-page forms:start/step/end) instruts.xmlor with a Convention annotation.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.scopedModelDrivenpresent in the stack).Rollout
ScopeInterceptorunchanged.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