繰り返し(並列)アクティビティについて

繰り返し(コレクションの各要素)と並列繰り返し(コレクションの各要素)の違いについて教えてください。また、並列ではない繰り返し(コレクションの各要素)に関しての、実際の使用場面なども合わせて教えてください。

こんにちは

一般的なループに該当するのは、「繰り返し(コレクションの各要素)」になりますので、まずはこちらの利用を検討ください。コレクションの各要素を順次繰り返します。

並列繰り返し(コレクションの各要素)は、各要素を疑似並列で繰り返し実行します、
ループ内である要素の処理が待ち状態になった場合、別の要素の処理が行われます。
結果的に複数の要素に対する処理が並列に実行されます。
なお疑似並列となり、完全な並列処理ではありませんので注意ください。

Hi @norihiko.okubo0201

Repeating (Each Element of a Collection):
When you use “For Each” in UiPath, you work through items in a collection (like a list) one by one, like reading a book from start to finish. This is useful when the order of items matters, or when each item’s processing depends on the previous one.

Parallel Repeating (Each Element of a Collection):
With “Parallel For Each” in UiPath, you can work on multiple collection items at the same time, like cooking multiple dishes in your kitchen concurrently. This is handy when the order of processing doesn’t matter, and you want to speed things up, but be cautious because not all tasks can be done in parallel.

Actual Usage for Non-Parallel Repetition (Each Element of a Collection) in UiPath:
Use non-parallel repetition when you need to follow a strict sequence, like following a recipe. For example, if you’re checking a list of items for errors, you might want to stop and address each error one by one, ensuring nothing is missed.
Hope it helps!!