Comments (7)
Hi Marc,
We don't have that functionality (yet), for now would it make sense to implement a single WaitFor
and branch the workflow based on the data passed to that WaitFor
?
Looking forward, I will definitely keep this scenario in mind for a future release.
from workflow-core.
Hi Daniel
Thanks for your reply. If this is the only option right know, we have to think about that. The logic is a little bit more complex then described above and we'll end up with a loop and multiple if statements.
I played around with your cancellable task, but without any success. Does the waitfor fully block the execution internally? Would a waitany task for a parallel fork be an easier solution?
Another short question: Is there any way to check if a published event was handled?
Thanks,
Marc
from workflow-core.
Hi Marc,
So the CancellableStep
class is used internally, currently only by the .Recur
fluent builder over here:
I don't see why we couldn't overload the .WaitFor
methods to also use this wrapper, over here:
If we had to implement the cancellation functionality as per it's use on the Recur
step, would that solve your problem?
from workflow-core.
Hi Daniel
Yes, that would really help if we could wrap the WaitFor in a CancellableStep. I tried exactly this with an extension method. Did I understood it correctly that I can provide an expression which is evaluated over and over and if true then the contained step is cancelled?
Could you show me how I correctly wrap it? I think I did it wrong.
Best,
Marc
from workflow-core.
Hi Marc,
I have just published version 1.3.3 to NuGet, which adds a parameter to the WaitFor
methods, allowing you to specify a cancel condition. See usage in the test here: https://github.com/danielgerlag/workflow-core/blob/master/test/WorkflowCore.IntegrationTests/Scenarios/CancelledEventScenario.cs
Let me know if this solves your problem
from workflow-core.
Hi Daniel
Thanks for your support! We did a quick test last week and it looked good so far. This week, we will integrate it into the big solution and I'll give you the more detailed feedback when we finish the integration.
Thanks
Marc
from workflow-core.
Glad to help, let me know if you run into any other issues
from workflow-core.
Related Issues (20)
- Parallel tasks run in sequence not parallel HOT 2
- What should I do if it is rejected to the specified node that has been executed
- Why can'not I use constructor function in workflow step function HOT 1
- Multiple processes are multi-threaded in parallel? HOT 1
- Can I use the library to implement a fallback mechanism?
- How to achieve a better process rollback workflow HOT 4
- How to achieve exponential backoff retry policy HOT 1
- Facing issue to use Mongo as persistance storage HOT 2
- On wpf application workflow doesn't run at first HOT 3
- How to rollback service Transaction
- host.Start()启动后的host对象和从容器获取的IWorkflowHost对象不一样
- How to register workflows on every node with Multi-node clusters?
- Clear terminated workflow instances
- 7k requests a minute to azure blob storage
- Memory leak
- [Question] Would it be advisable to structure our process using sub-workflows? HOT 3
- Deserialisation in the ToWorkflowInstance() duplicates List items due to not set ObjectCreationHandling = ObjectCreationHandling.Replace in the JsonSerializerSettings
- [Question] How to break foreach loop?
- Is there any sample to use it on .NET framework?
- [Question] What does the option UseMaxConcurrentWorkflows do?
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 workflow-core.