

The third way is very similar to the first way, except that instead of dragging the Prompt activity from the Toolbox, you drag it from its location on the workflow design surface, hover it over the Assign activity, and drop it onto one of the triangles that appears. Drag the mouse so that the connecting line from the Assign activity connects to one of the rectangles of the Prompt activity, and then release the mouse button. Then, hover the mouse over the Assign activity and drag one of the rectangles that appears down to the Prompt activity. The second way is to drop the Prompt activity onto the workflow at the desired location. As you are dragging the Prompt activity to the workflow, hover it over the Assign activity and drop it onto one of the four triangles that appear when the Prompt activity is over the Assign activity. The first way is to connect them as you drop the Prompt activity on the workflow. There are three ways to connect the two activities. If the Toolbox window is not displayed, select Toolbox from the View menu.ĭrag a Prompt activity from the NumberGuessWorkflowActivities section of the Toolbox, drop it below the Assign activity from the previous step, and connect the Prompt activity to the Assign activity. Type Turns into the Name box that is below the newly added MaxNumber argument, select Out from the Direction drop-down list, select Int32 from the Argument type drop-down list, and then press ENTER.Ĭlick Arguments in the lower-left side of the activity designer to close the Arguments pane.Ĭlick Variables in the lower-left side of the workflow designer to display the Variables pane.

Type MaxNumber into the Name box, select In from the Direction drop-down list, select Int32 from the Argument type drop-down list, and then press ENTER to save the argument.

To create the workflow variables and argumentsĭouble-click FlowchartNumberGuessWorkflow.xaml in Solution Explorer to display the workflow in the designer, if it is not already displayed.Ĭlick Arguments in the lower-left side of the workflow designer to display the Arguments pane. Type FlowchartNumberGuessWorkflow into the Name box and click Add.ĭrag a Flowchart activity from the Flowchart section of the Toolbox and drop it onto the Drop activity here label on the workflow design surface. In the Installed, Common Items node, select Workflow. Right-click NumberGuessWorkflowActivities in Solution Explorer and select Add, New Item. To complete this topic, you must first complete How to: Create an Activity. Each topic in the Getting Started tutorial depends on the previous topics.
