Presentation is loading. Please wait.

Presentation is loading. Please wait.

VPL Patterns – Loop Pattern using Notification

Similar presentations


Presentation on theme: "VPL Patterns – Loop Pattern using Notification"— Presentation transcript:

1 VPL Patterns – Loop Pattern using Notification
VPL Beginner Course – 05 Young Joon Kim

2 Topics Simple loop pattern using notification
Get Min/Max number using Loop Pattern

3 Simple Loop Pattern using Notification

4 Scenario for target sample
Build simple loop diagram Display loop index Call “Activity” Notification of “Activity” Display Loop Index Loop Call “Activity”

5 Simple loop pattern using notification
Add “Data” and “Variable” Click “Variables” icon Click

6 Simple loop pattern using notification
Add “loopIndex” variable (int)

7 Simple loop pattern using notification
Initialize “loopIndex” with value “0”

8 Simple loop pattern using notification
Add “Activity”

9 Simple loop pattern using notification
Change the name of “Activity” Click

10 Simple loop pattern using notification
Double-click

11 Simple loop pattern using notification
Connect input point and notification point

12 Simple loop pattern using notification
Connected result

13 Simple loop pattern using notification
Connect “Variable” and “Jump” Copy & paste “Jump”

14 Simple loop pattern using notification
Add “If” and “Calculate” activities Copy & paste “Variable” activity Connect the notification point of “Jump” and “If”

15 Simple loop pattern using notification
Connect each activities

16 Simple loop pattern using notification
Add “HelloApps (Util) ListBoxDialog” service Copy & paste “Jump”

17 Simple loop pattern using notification
Connect “Variable” and “ListBoxDialog” service

18 Simple loop pattern using notification
Completed diagram

19 Simple loop pattern using notification
Executed result

20 Get Min/Max using Loop Pattern

21 Scenario for target sample
Calculate Min/Max number from the array Input numbers Call “Activity” Notification of “Activity” Compare Min/Max Loop Call “Activity” If last item Display Min/Max

22 Initialize variables

23 Initialize variables Add “Data” and “Variable” Click “Variables” icon

24 Initialize variables Add variables as follows
maxValue (double), minValue (double) arrayList (list of double) loopIndex (int)

25 Initialize variables Add another two “Data” activities
Copy & paste “Variable” Connect them as follows

26 Input numbers

27 Input numbers Add “HelloApps (Util) ArrayInput” service
Add “Calculate” and “Variable” activities Connect the notification point of “ArrayInput” and “Calculate”

28 Input numbers Select “NotifyArrayList” Connect activities as follows

29 Build Loop Pattern

30 Build Loop Pattern Add “Activity”

31 Build Loop Pattern Change name as “Jump” Double-click “Jump” activity

32 Build Loop Pattern Connect the input point and the notification point

33 Build Loop Pattern Copy & paste two “Jump” activities

34 Get Min/Max numbers

35 Get Min/Max numbers Add “If”, “Calculate”, and “Variable” activities as follows

36 Get Min/Max numbers Set “If” activities as follows

37 Get Min/Max numbers Set “Calculate” as follows
Connect “Calculate” and “Variable” activities

38 Get Min/Max numbers Add “Calculate” and “Variable” activity

39 Get Min/Max numbers Connect “Calculate” and “Variable”

40 Get Min/Max numbers Add “Display” diagram as follows

41 Get Min/Max numbers Completed diagram

42 Get Min/Max numbers Run diagram Add numbers by clicking “Add” button

43 Get Min/Max numbers Click “Submit as List” as follows


Download ppt "VPL Patterns – Loop Pattern using Notification"

Similar presentations


Ads by Google