Hi Guys,
I have a process it has 8 tasks. First four tasks depends on completion of earlier Tasks.
Last 4 tasks can run in parallel. So for this scenario can i go for Chain of Responsibility?
How to implement in Chain of Responsibility for the parallel tasks?
Generally in Chain of Responsibility on completion of task other starts. Check below screen shot.
Member
33 Points
85 Posts
Chain of Responsibility:
Jun 28, 2018 11:36 AM|nambir|LINK
Hi Guys,
I have a process it has 8 tasks. First four tasks depends on completion of earlier Tasks.
Last 4 tasks can run in parallel. So for this scenario can i go for Chain of Responsibility?
How to implement in Chain of Responsibility for the parallel tasks?
Generally in Chain of Responsibility on completion of task other starts.
Check below screen shot.
https://ibb.co/ngrjZo
Contributor
4953 Points
4207 Posts
Re: Chain of Responsibility:
Jun 29, 2018 09:14 AM|DA924|LINK
Why are you concerned with what is happening after task 4 if all the tasks can run together after task 4?
There are example code on how to implement Chain of Responsibility in C# and JavaScript, if you use Bing or Google to find them.
Member
440 Points
401 Posts
Re: Chain of Responsibility:
Jul 02, 2018 12:14 PM|jammycakes|LINK
For something like this I'd just keep it simple:
You only need a Chain of Responsibility if you don't know in advance how many tasks you need to run. Don't over-complicate things.