總網頁瀏覽量

星期二, 8月 07, 2018

UiPath RPA Academy "Lesson 2 - Variables, Data Types & Control Flows" 之學習心得 PART2

Lesson 2 - Variables, Data Types & Control Flows
第二章著重在variables的設立,還有介紹工作環境等。


UiPath的介面分為:
左activity panel(activities)、中workflow designer(主要區域)、右properties pane(parameters)




Two ways of organizing actions: flowcharts and sequences. (control which and when an action happen)

  1. 在create workflow後
  2. 第一步驟是drag一個flowchart到主要區域。
    (注意:flowcharts and sequences可以形成各種階層,依照順序)


Variables

Unknown fields, or constants in an equation.(a.k.a. boxes that keep different types of data)

  • Integer: Whole numbers(整數)
  • String: Text of any kind(字串,通常會有“XXX”)
  • Boolean: True or False value
  • Generic: Any type of data(萬能,所以說可以包含所有類型)
  • Array: List of any type of data(需要是same kind)

註:Variables可以在下方找到,可以新增,設定type,並在Scope知道位置在哪。



Control-flow

The process of defining the rules and automatic decisions that the workflow will take.(用loop之類的)
以下兩個看似不同,但卻是相同的運作模式,只是依據condition不同,有不同的action:

Flow chart: start>decision>answer


註:
IF跟flowchart(decision mode)的差別:

  • IF比較適合比較小的automation
  • decision mode適合higher-level decisions
Loops: Structure used to automate repetitive tasks.
註:在UiPath最簡單的loop就是用flowchart mode.

Sequence: looping containers(重複actions),具有Do/while loops + for each

While跟Do/while類似,差別在執行的順序而已。

  • While: condition達成,執行body中的action
  • Do/while: 先執行,如果condition達成,在執行一次
For each loop: 每次執行一個,完成即執行body中的action





What data types can be stored inside an array?

Double
Integer
String
Boolean

Which of these are workflow types available in UiPath Studio?

REFramework
Flowchart
Activity
Sequence

Which activities allow you to iterate through an array of strings?

For Each Row
For Each
While
Do While

What is the activity designed to represent a decision inside a Sequence?

The Assign activity
The If activity
The Decision activity
The Try Catch activity

You can insert a Sequence activity in a Flowchart activity.

True
False

Given two Generic variables, A with value “123” and B with value 456, what would the Write Line output of A + B be?

An exception will be thrown.
123 + 456(X)
579
123456

How can you exit from a For Each activity?

Break activity
Terminate Workflow activity(X)
Assign activity
If activity

What happens if you rename a variable from the Variables tab?

You cannot rename a variable: you need to delete it and create a new one.
The scope of the variable will change.
The name will be automatically updated in all the activities that use it.
You need to update the name in all activities that use that variable.

Which activity can you use if you want to loop through a collection of items?

If activity
Assign activity
Flow Decision activity
For Each activity

What type of argument can you define to retrieve data from an invoked workflow?

Out
In

SHARE AND LIKE IF IT HELPS

沒有留言:

張貼留言

Related Posts Plugin for WordPress, Blogger...