We can use Variable temporarily to store a value when a WF program is running. In this task, we will create a WF program that prints five numbers to the console in a loop. We will use the
as a number counter.
Create a new Workflow Console Application under the
Chapter01 solution and name the project as
Sequence activity, click the Sequence activity, create an
NumberCounter variable, and set its Scope to Sequence. Then, author the workflow as shown in the following screenshot. In the second Assign activity type NumberCounter=NumberCounter+1.
as Startup project. Press Ctrl+F5 to build and ...