Repository navigation
feat(workflow): decode resumed inputs by type - #1986
Open
zhangxiangnan wants to merge 1 commit into
Open
zhangxiangnan wants to merge 1 commit into
zhangxiangnan wants to merge 1 commit into
Conversation
zhangxiangnan
force-pushed
the
feat/typed-resume-input
branch
from
December 2, 2026 03:53
4d5ace6 to
3651a64
Compare
zhangxiangnan
force-pushed
the
feat/typed-resume-input
branch
from
December 2, 2026 12:18
3651a64 to
3645b0d
Compare
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.
Summary
Rerunning
FunctionNodebodies currently read resumed answers as raw objects. AddFunctionNodes.resumeInputoverloads forClass<T>andTypeReference<T>to decode those answers with the existing workflow port rules, including conversion from JSON maps to records and generic collections.A missing interrupt answer raises
IllegalStateException; a present null remains null for reference types and is rejected for primitive types. Document typed resume reads and cover them in the existingFunctionNodeTest.The request/resume/rerun tests verify typed record conversion, a null answer continuing to the successor without asking again, and an invalid answer failing with the expected
NodeInputValidationExceptiontype and message before the successor executes. Direct helper tests also cover generic answers, missing answers, and null primitive answers.Testing
./mvnw -o -Daether.syncContext.named.factory=noop -pl core -Dtest=FunctionNodeTest test-compile surefire:test@basic— 366 tests passed, 0 failures, 0 errors, 0 skipped.git diff HEAD^ --check— passed.The full core suite was not rerun for this update.