Comments (2)
Based on the provided context and the Elsa Workflow documentation, it seems like you are trying to create a workflow that includes a Fork
activity with a While
loop inside one of its branches. However, the While
activity as you've described it (While.True
) does not exist in Elsa Workflows as per the documentation and examples provided.
Elsa Workflows does support looping constructs, but they are typically used outside of a Fork
activity. The Fork
activity is designed to create parallel branches of execution that can be joined later using a Join
activity. The branches inside a Fork
are not meant to be loops themselves.
If you want to execute the 'dispatch' method multiple times, you should consider using a looping construct like While
or For
outside of the Fork
activity. However, the HttpEndpoint
activity is designed to be triggered by an HTTP request, and it's not clear how you intend to repeatedly trigger the 'dispatch' method with new HTTP requests within a loop.
To solve your issue, you might need to redesign your workflow to separate the concerns of handling HTTP requests and looping logic. For example, you could have an HTTP request trigger the workflow, which then enters a loop to perform some repeated action. If you need to handle multiple HTTP requests, each request would need to trigger the workflow separately.
If you are looking for a way to repeatedly execute a part of the workflow in response to HTTP requests, you might need to set up an external mechanism to send those requests to the HttpEndpoint
repeatedly, rather than trying to loop within the workflow itself.
For more specific guidance, you would need to provide additional details about what you are trying to achieve with the 'dispatch' and 'feedback' methods, and how they are supposed to interact with the HTTP requests.
Please note that the information provided is based on the Elsa Workflow documentation and the context you've given. If there are newer features or changes in the Elsa Workflow library that are not covered in the provided documentation, you may need to consult the latest official Elsa Workflow documentation or seek advice from the Elsa community.
This comment was generated by Glime.
from elsa-core.
If you want to be able to execute the 'dispatch ' method multiple times,the point is don't start workflow by 'dispatch'.
Now,i use IWorkflowRuntime.StartWorkflowAsync to start workflow in the WorkflowsMiddleware,is this the right way?
from elsa-core.
Related Issues (20)
- [BUG]Sending email failed HOT 1
- [BUG] Cannot delete a Activity in Studio Canvas HOT 2
- [BUG]Can't call filter and map in javascript activity in version2 HOT 1
- [CHORE] After Elsa 3.1.3 designer process node approval rejection, should the process return to the previous node or the original node? HOT 1
- [BUG]How to set the process node in Elsa 3.1.3 designer to move back to the previous or original node? HOT 1
- [CHORE] Example Event Activity in Elsa 3.1.3 Designer HOT 1
- [CHORE] Example steps for Fork (flow) activity in Elsa 3.1.3 designer HOT 2
- [CHORE] How to implement the branches property of the Fork (flow) activity in Elsa 3.1.3 designer?
- [CHORE] How to set the dynamic expression for Fork (flow) activity branches?
- [BUG] Activity status is not updating in Elsa Studio after a suspended activity. HOT 2
- [BUG]Fork(flow) error,An unhandled error has occurred. Reload
- [BUG] Unable to use more than one Masstransit activity
- [BUG] Bulk Dispatch & Dispatch Activity Registry Not Updated, Dispatches Wrong Version
- [BUG]Elsa 3.1.3 Fork Error in Designer
- [BUG]Why did the request call succeed but the login failed?
- [BUG] tasks/{taskId}/complete returns 200 , but not work. Elsa Version 3.1.3 HOT 2
- I have tested it just now, and it Not works correctly with the latest 3.2 preview (which is currently being built as 3.2.0-rc2 for deployment to NuGet). HOT 4
- [CHORE] If the approval node in Elsa 3.1.3 designer is rejected, will the process return to the previous level or to the initial state? How to implement the process after approval rejection?
- 使用sqlserver,报错:System.ArgumentException: Keyword not supported: 'cache'. HOT 2
- [BUG]How is the approval process implemented in Elsa 3.1.3 designer after rejection? Is the process returning to the previous state or to the initial state?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elsa-core.