Using the While Activity
If you look back at the preceding section, you’ll note at least two things. First, you certainly did gain some experience using IfElse activities. And second, it took 31 separate steps to create the workflow process. There are some programmatical constructs that lend themselves nicely to if-then-else processing, but this particular application would be better suited to questions that were asked in a looping construct. And that’s what we’ll look at next. You’ll replace the workflow you just created with another that uses a while loop.
The WF While activity uses a similar approach to the IfElse activity when processing conditional expressions. It fires an event to request permission to continue with the loop, and it uses ...
Get Microsoft® Windows® Workflow Foundation Step by Step now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.