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

Dapr Workflows and activities does not support Bean Injections #1198

Closed
salaboy opened this issue Jan 22, 2025 · 0 comments · Fixed by #1201
Closed

Dapr Workflows and activities does not support Bean Injections #1198

salaboy opened this issue Jan 22, 2025 · 0 comments · Fixed by #1201
Labels
kind/bug Something isn't working
Milestone

Comments

@salaboy
Copy link
Contributor

salaboy commented Jan 22, 2025

Expected Behavior

You should be able to use @Autowired annotations to inject dependencies to workflows and activities.

Actual Behavior

Workflows and activities are dynamically created by the the WorkflowRuntime builder, not allowing dependency injection.

Steps to Reproduce the Problem

Try to use @Autowired annotation in a workflow or activity.

Release Note

RELEASE NOTE:

@salaboy salaboy added the kind/bug Something isn't working label Jan 22, 2025
artur-ciocanu added a commit to artur-ciocanu/java-sdk that referenced this issue Jan 30, 2025
@cicoyle cicoyle added this to the v1.15 milestone Jan 31, 2025
artursouza added a commit to artur-ciocanu/java-sdk that referenced this issue Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
2 participants