Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workflows alignment with Spring Boot (Dependency Injection for Workflows and Activities) #1170

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

salaboy
Copy link
Contributor

@salaboy salaboy commented Dec 5, 2024

Description

This WIP PR contains the changes to align the workflow functionality with Spring Boot. The tasks described in #1164 are implemented in this PR.

Issue reference

We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.

Please reference the issue this PR will close: #1164

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation

@salaboy salaboy requested review from a team as code owners December 5, 2024 09:56
@salaboy salaboy marked this pull request as draft December 5, 2024 09:56
Copy link
Contributor

@artur-ciocanu artur-ciocanu left a comment

Choose a reason for hiding this comment

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

@salaboy awesome job! I have left some comments mostly styling, however I think you should adjust the DaprWorkflowsConfig a little. I have used all the suggestion that I have provided, ran the tests and everything is 🟢, so I think you can safely apply them and open a PR.

I think the auto-configuration you have added provides enough value fort Spring Boot users. We can add bells and whistles later.

@salaboy
Copy link
Contributor Author

salaboy commented Dec 10, 2024

I am a bit stuck on this: dapr/dapr#8341

@salaboy salaboy changed the title WIP : Workflows alignment with Spring Boot Workflows alignment with Spring Boot (Dependency Injection for Workflows and Activities) Dec 10, 2024
@salaboy salaboy marked this pull request as ready for review December 10, 2024 09:23
@salaboy salaboy force-pushed the workflows-1164 branch 2 times, most recently from 80ff5e0 to 36f4f03 Compare December 13, 2024 11:41
@salaboy
Copy link
Contributor Author

salaboy commented Dec 13, 2024

@artur-ciocanu @artursouza @cicoyle can you please review this PR?

Copy link
Contributor

@artur-ciocanu artur-ciocanu left a comment

Choose a reason for hiding this comment

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

@salaboy looks great a have left a tiny comment related to registerWorkflowsAndActivities method, I don't think it should be public, it is an internal method.

salaboy and others added 14 commits December 16, 2024 07:38
Signed-off-by: salaboy <[email protected]>
* fix link

Signed-off-by: Hannah Hunter <[email protected]>

* fix one more link

Signed-off-by: Hannah Hunter <[email protected]>

* remove beta from Java SDK workflow

Signed-off-by: Hannah Hunter <[email protected]>

---------

Signed-off-by: Hannah Hunter <[email protected]>
Signed-off-by: salaboy <[email protected]>
Signed-off-by: Artur Souza <[email protected]>
Signed-off-by: salaboy <[email protected]>
Signed-off-by: Dapr Bot <[email protected]>
Co-authored-by: Dapr Bot <[email protected]>
Signed-off-by: salaboy <[email protected]>
Signed-off-by: salaboy <[email protected]>
Signed-off-by: salaboy <[email protected]>
Signed-off-by: salaboy <[email protected]>
@artur-ciocanu
Copy link
Contributor

@artursouza and @cicoyle could you please review and approve. Thank you!

@olitomlinson
Copy link

Feedback from one of my highly experienced engineers who are looking forward to trying Workflows with Java :

"That looks promising - I had a look at the changes / test implementation and it does seem to provide quite a neat and natural way of fitting into a Spring project"

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.

Align Workflow support with Spring Boot idioms
6 participants