Skip to content

Add how-to guide to help users when using data flow and transformations#291

Draft
mcruzdev wants to merge 1 commit intoquarkiverse:mainfrom
mcruzdev:issue-290-a
Draft

Add how-to guide to help users when using data flow and transformations#291
mcruzdev wants to merge 1 commit intoquarkiverse:mainfrom
mcruzdev:issue-290-a

Conversation

@mcruzdev
Copy link
Member

@mcruzdev mcruzdev commented Mar 3, 2026

Closes #290

Blocked: Waiting a new release from sdk-java

@github-actions
Copy link

github-actions bot commented Mar 3, 2026

🚀 PR Preview d304a6f has been successfully built and deployed to https://quarkiverse-flow-pr-291-preview.surge.sh

[[export-as]]
=== 2.2 `exportAs` – pass data to the next step

`exportAs` controls what the task **exports** for downstream consumers (the next
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exportAs controls what is set in the shared workflow context, I think this description is kind of confusing
outputAs control what is set for the next task.

@mcruzdev
Copy link
Member Author

mcruzdev commented Mar 6, 2026

Signed-off-by: Matheus Cruz <matheuscruz.dev@gmail.com>
System.out.println("Score calculated having the result as: " + score);
return score;
}, Proposal.class)
.outputAs((Long score) -> {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @fjtirado the outputAs should extract the Long score from the task output or from the WorkflowContext#context?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking the documentation I got this one:

Transform Task Output After completing the task, its output can be transformed before passing it to the next task or storing it in the workflow context. Transformations are applied using the output.as runtime expression.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: Add documentation about how-to deal with data transformations in practice

2 participants