Open DannyJyc opened 7 months ago
To set the HTTP request endpoint in the Elsa Workflow designer, you typically use the "HTTP Endpoint" activity. This activity allows you to specify the path that will trigger the workflow when an HTTP request is made to it. You can define the path directly in the activity's properties.
To obtain the Workflow Instance ID after making a request, you can use the IWorkflowRuntime
service if you are triggering the workflow programmatically. When you dispatch a workflow using this service, it will return the Workflow Instance ID immediately without waiting for the workflow to finish execution. This is useful when you want to trigger a workflow and track its progress later on.
Here's a general outline of the steps you would take:
IWorkflowRuntime
service with the DispatchAsync
method, which enqueues the workflow for execution and returns the Workflow Instance ID.Please note that the exact code and methods to use will depend on the version of Elsa Workflow you are using and the context in which you are working (e.g., within an ASP.NET Core application, a console app, etc.).
For more detailed information and examples, you should refer to the official Elsa Workflow documentation and the sources provided in the context.
How can I set the request pointend of the http request in the workflow designer, and then obtain the Instances ID of the corresponding workflow after the request?