-
Notifications
You must be signed in to change notification settings - Fork 89
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
workflow example management missing components folder #569
Comments
Thanks @sce9sc for finding this issue, we can reuse the same components from https://github.com/dapr/js-sdk/tree/main/examples/workflow/authoring/components (an actor state store is all that's required). Please feel free to send in a PR to fix it! |
I will be very happy to contribute and fix any issues as well as creating more examples . Can you also explain to me why I cannot call the sequence workflow by changing the name like so
What is the diffenece between DaprWorkflowClient and client.workflow ? |
What error message do you get?
In management code
Now that I think more about it, I think we should converge these to avoid confusion. What are your thoughts @DeepanshuA? |
I get
I am not sure that I have configured it correctly though . |
I managed to call the workflow using Post
|
That should translate to the same call being made here
|
Yes you are correct . Calling directly the dapr instance is working using the above Post request . Spiining app a new instance with only the client and sending the same request using :
does not . and I get
I 've even started the dapr sidecar with no client and send the same POST request to the new DAps instance and it did not work. Should it ?? I think I am missing something but I cant figure it out yet. Should the 2 dapr instance be able to communicate with each other ? And by making a post to one it will call ther other that has the workflow? |
Both the applications (1) where you register the workflow and (2) where you manage the workflow with commands like start, purge, terminate, etc., should be talking to the same Dapr sidecar. This is an example where it is happening in the same application with .NET https://github.com/dapr/quickstarts/blob/master/workflows/csharp/sdk/order-processor/Program.cs#L54, you can also do it with multiple applications with a single Dapr instance. |
From what you mentioned, in order to run a workflow we need to: This means that Pod (1) will have an application that will have DaprServer instantiated together with DaprWorkflowClient and WorkflowRuntime and DaprClient if you want to have management also.
The examples are showing how a single Dapr instance together with an application that registers the flows and at the same time the same app runs the flows. The net example is also showing that is using a single client to start and wait for the flow to finish, whereas the js-sdk there are 2 options .
Also as it shown the scheduleNewWorkflow needs TWorkflow and workflow.start needs only the name of the workflow. |
We can keep the |
This issue has been automatically marked as stale because it has not had activity in the last 60 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had activity in the last 67 days. If this issue is still valid, please ping a maintainer and ask them to label it as pinned, good first issue, help wanted or triaged/resolved. Thank you for your contributions. |
Components folder is missing from the Example in workflow/management
Also I find it difficult to undestand how can I call the sequence example in authoring from the management example.
Any help is much appreciated.
Thanks
The text was updated successfully, but these errors were encountered: