Skip to content

Dapr Workflows and activities does not support Bean Injections #1198

@salaboy

Description

@salaboy

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions