ErrorHandler.xamlの中でのTerminate workflowの必要性について

こんにちは。
UiPath Studio 2023.4.1 Enterpriseを利用中です。
Main.xamlをTry Catchアクティビティで囲み、そのCatch blockでErrorHandler.xamlを呼び出しています。(ErrorHandler.xamlは添付画像参照)
質問の目的は、このErrorHandler.xamlの中にTerminate workflowアクティビティを配置する必要性があるかどうかです。
WFが異常終了してErrorHandler.xamlを呼び出しているため、WFを意図的に終了させなくても、勝手に終了してくれる気もします。
ErrorHandler.xamlの中でのTerminate workflowを配置する必要性が明確に説明できる方、ご指導をお願い致します。

@gorby

You need not use terminate workflow as there are no activities after that catch the workflow gets terminated anywayss…

Generally ternminate workflow is used when you want to end the process without proceeding further or when you donot want to execute the workflow after a particular step…

For example say you have a if condition to check for a value and when value does not match you do not want to proceed further…then you can use terminate workflow so that the next activities are not executed

Hope this helps

Cheers

こんにちは

処理の結果として、異常終了としたいか、正常終了としたいかによると思います。
TerminateWorkflowの場合異常終了になると思いますので、例えばOrchestratorでの管理上もFailedになりますが、正常終了の場合Sucessになりますので、これが好ましくない場合は、TerminateWorkflowを使った方が良いかと思います。

異常終了の場合は、TerminateWorkflow不要という認識でよろしいでしょうか?

逆かと思います。そのまま抜けてしまうと正常終了になると思います。
そのためTerminate Workflowで異常終了とします。

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.