java-sdk icon indicating copy to clipboard operation
java-sdk copied to clipboard

Allow register a workflow using `String` instead of only class canonical name

Open kaibocai opened this issue 2 years ago • 3 comments

Describe the proposal

When registering a workflow, we pass the workflow class and its canonical name is used to store the workflow. This is not clear when customers use HTTP requests to start the workflow.

For example: customers tend to use POST http://localhost:3500/v1.0-beta1/workflows/dapr/DemoWorkflow/start to start a workflow, which is not correct. Instead, it should use the class canonical name in the URL POST http://localhost:3500/v1.0-beta1/workflows/dapr/io.dapr.examples.workflows.DemoWorkflow/start

Java SDK should provide the flexibility to register a workflow by any name given by customers.

kaibocai avatar Nov 28 '23 16:11 kaibocai

I can work on this

kaibocai avatar Nov 28 '23 17:11 kaibocai

/assign

kaibocai avatar Nov 28 '23 17:11 kaibocai

@kaibocai any updates on this?

salaboy avatar Dec 04 '24 16:12 salaboy