Step-by-Step Guide to Use Parallel to Change the Values of an Argument SimultaneouslyLet's create an example to decrease the value by 1 of an In argument, and then, increase the decreased value by 5 in another argument and assign the increased value to an argument. 1. Create a process. 2. In the Parameter bar, create an In argument, Value1 of Argument Type - Int32 and set the Default value as 7. 3. In the Parameter bar, create an Out argument, Value2 of Argument Type - Int32.
4. From the Canvas Tools panel, add the Parallel activity to the Flowchart designer on the Canvas. 5. Double click the parallel activity box. 6. From the Canvas Tools panel, add the Assign activity to the Flowchart designer on the Canvas. 7. In the To field, enter Value1. 8. In the Enter an Expression field, enter Value1-1. 9. From the Canvas Tools panel, add the Assign activity parallel to previous Assign activity to the Flowchart designer on the Canvas. 10. In the To field, enter Value2. 11. In the Enter an Expression field, enter Value1+2.
12. Click << Flowchart. 13. From the Canvas Tools panel, add the WriteLine activity to the Flowchart designer on the Canvas. 14. In the Text field, enter Value1.ToString+" "+Value2.ToString+" ".
15. Save the process. 16. Set up the environment and perform test run.
The console display two values, the first value is the decreased value and second value is the increased value which is assigned in a Value2 argument. |
Related Topics |