560 likes | 698 Views
VPL Patterns – Modularize Diagrams. VPL Beginner Course – 02. Young Joon Kim http://www.helloapps.com. Topics. Simple modular diagram with “Activity” Modular diagram having input values Modular diagram having output value. Simple modular diagram with “Activity”. Scenario for target sample.
E N D
VPL Patterns – Modularize Diagrams VPL Beginner Course – 02 Young Joon Kim http://www.helloapps.com
Topics • Simple modular diagram with “Activity” • Modular diagram having input values • Modular diagram having output value
Scenario for target sample • Build simple sum-up module Click button Call Sum-Up Module (Activity) Display result
Simple modular diagram with “Activity” • Add “HelloApps (Util) ButtonDialog”
Simple modular diagram with “Activity” • Add “Activity”
Simple modular diagram with “Activity” • Double-click “Activity” Double click
Simple modular diagram with “Activity” • Opened inner diagram of “Activity”
Simple modular diagram with “Activity” • Add activities and services as follows to build “SumUp” logic
Simple modular diagram with “Activity” • Set “Data” and first “Join” activities as follows
Simple modular diagram with “Activity” • Connect “Data” and “Join” as follows
Simple modular diagram with “Activity” • Connect “Join”, “Merge”, and “If” activities • Set “If” as follows
Simple modular diagram with “Activity” • Connect “Else” of “If” and two “Calculate” activities • Set “Calculate” as follows
Simple modular diagram with “Activity” • Connect to second “Join” and set “Join” as follows
Simple modular diagram with “Activity” • Connect second “Join” to “Merge” activity
Simple modular diagram with “Activity” • Connect “If” and “Calculate” • Set “Calculate” as follows
Simple modular diagram with “Activity” • Connect “Calculate” and “SimpleDialog”
Simple modular diagram with “Activity” • Select “AlertDialog” from the list
Simple modular diagram with “Activity” • Connect “SimpleDialog” to the output result point
Simple modular diagram with “Activity” • Completed inner diagram to build “SumUp” logic
Simple modular diagram with “Activity” • Click “Diagram” • Connect the notification point to the input of “Activity”
Simple modular diagram with “Activity” • Select “NotifyButtonClicked” from the list
Simple modular diagram with “Activity” • Save and run a diagram
Scenario for target sample • Build simple sum-up module having input values Start Value Click button Call Sum-Up Module (Activity) End Value Display result
Modular diagram having input values • Start from the previous “SumUp” sample • Disconnect connection between “ButtonDialog” and “Activity” Delete connection
Modular diagram having input values • Change name of “Activity” Click Change name
Modular diagram having input values • Changed name
Modular diagram having input values • Click “MySumUp” diagram • Click “Actions and Notifications” icon on the top area Click
Modular diagram having input values • Click “Add” button on the “Input values” Click
Modular diagram having input values • Change the default name “Field” to “StartNum” Change name
Modular diagram having input values • Add new input variable • Change the default name “Field” to “EndNum”
Modular diagram having input values • Remove connections from input point Delete connections
Modular diagram having input values • Set activities and services as follows
Modular diagram having input values • Connect from input point as follows
Modular diagram having input values • Connect “If” and set as follows
Modular diagram having input values • Connect “Else” point to “Calculate” and set “Calculate” as follows
Modular diagram having input values • Connect “Join” to “Merge” activity
Modular diagram having input values • Set “Calculate” as follows
Modular diagram having input values • Click “Diagram” • Add activities as follows
Modular diagram having input values • Connect the notification point and each “Data” activities
Modular diagram having input values • Connect “Join” and “MySumUp”
Modular diagram having input values • Completed diagram
Modular diagram having input values • Executed results
Modular diagram having output value • Start from previous sample
Modular diagram having output value • Click “Actions and Notifications” icon
Modular diagram having output value • Click “Add” button on the “Output values” • Change default name “Field” to “Result”
Modular diagram having output value • Click “OK” button
Modular diagram having output value • Remove “SimpleDialog” service Remove