0
点赞
收藏
分享

微信扫一扫

【RPA之家转载】UiPath 调用工作流文件

迪莉娅1979 2022-02-18 阅读 147
p2plinqwpf

  
RPA之家(www.rpazj.com)是中国具有影响力的RPA垂直交流社区,社区汇聚了RPA领域的各类从业人员。其中包括RPA开发工程师、售前工程师、业务分析师、架构师、运维工程师、项目管理、项目负责人、企业高管、HR等多种角色。社区提供了各种丰富的教程、资讯、文章、问答、招聘、活动、项目等供大家一起交流和成长

 UiPath.Core.Activities.InvokeWorkflowFile

Synchronously invokes a specified workflow, optionally passing it a list of input arguments. Arguments can be imported from a specified workflow with this activity by using the Import Arguments button in the body of the activity.

The workflow that is referenced in the WorkflowFileName property can be opened in the current project by using the Open Workflow button in the body of the activity.

In the Body of the Activity

You can find the following options in the body of the Activity.

导入参数

单击该活动主体中的“导入参数”按钮后,系统将打开“参数”面板,其中会显示“工作流文件路径”属性中引用的工作流所含的全部参数。

通过此面板,您可以使用方向控件或“删除”按钮重新组织参数,以便从调用的工作流中选择要导入的参数。单击“确定”可保存更改。

关闭该面板后,按钮旁边的计数器会显示要导入的已选参数的数量。计数器采用颜色编码,具体如下:

  • “橙色”- 表示所选参数与所调用工作流中存在的参数不匹配。
  • “灰色”- 表示在调用的工作流中找到所选参数。

Open Workflow

“打开工作流”按钮位于活动主体中,用于在同一项目的不同选项卡中打开调用的工作流。

属性

Common

  • DisplayName - The display name of the activity.
  • “出错时继续”- 指定在活动抛出错误时是否应继续自动化操作。该字段仅支持“布尔值”(“true”和“false”)。默认值为“false”。因此,如果该字段为空且活动抛出错误,则系统将停止执行项目。如果该值设为“True”,则无论出现何种错误,系统都将继续执行项目。
  • “超时”- 指定最长等待时间,如果超出该时间后活动并未运行,系统便会抛出错误。该字段仅支持“TimeSpan”变量。默认情况下,该字段为空。

输入

  • Arguments - The parameters that can be passed to the application at the time of invocation.
  • ArgumentsVariable - The parameters that can be passed dynamically to the workflow using a dictionary.
  • “隔离”- 如果选中该复选框,则调用的工作流将在单独的 Windows 进程中运行。这有助于将错误的工作流与主工作流隔离开。
  • “工作流文件名”- 要调用的 .xaml 文件的文件路径。该字段仅接受字符串变量。文件路径与当前的项目文件夹相对。必须为所有字符串变量加上引号。

Log

  • Log Entry - What type of information to automatically log when entering the invoked resource.
  • Log Exit - What type of information to automatically log when exitingthe invoked resource.
  • LogLevel - The logging level applied to the messages generated by Log Entry and Log Exit.

Misc

  • Private - If selected, the values of variables and arguments are no longer logged at Verbose level.
  • Target Session - Specifies the session in which the workflow is started. Only isolated workflows can be started in a different session from the parent. You can choose one of the following options:
  • Current - The child process opens in the same session as the parent one.
  • Main - The child process starts in the main session regardless to where the parent process runs.
  • Picture in Picture - The child process starts in the Picture in Picture session regardless to where the parent process runs.
举报

相关推荐

0 条评论