Skip To Content

添加和配置“添加附件”

“添加附件”步骤用于将文件附件添加至作业或将文件与作业相关联。 运行步骤时,作业切片中将显示以下按钮,具体取决于步骤的配置:

  • 作业切片中将显示浏览按钮,用于将文件附加到作业。
    注:

    如果为步骤配置了可接受文件类型列表,只能将允许的文件类型附加到作业。

  • 作业切片中将显示链接按钮,用于将文件与作业相关联。

如果为步骤配置了帮助文本,该文件将在作业切片的底部显示。

Workflow Manager Web 应用程序中上传文件或将其与作业相关联后,可执行以下操作:

  • 名称文本框中更新文件的名称。
  • 单击操作按钮显示附件,下载附件或复制附件的文件路径或文档 ID。
  • 单击删除附件按钮 Delete Attachment 删除附件。
注:

要在 Workflow Manager Web 应用程序的详细信息面板中显示作业附件,单击附件选项卡 Attachments

了解有关管理作业附件的详细信息

ArcGIS Pro 中上传文件或将其与作业相关联后,可执行以下操作:

  • 名称文本框中更新文件的名称。
  • 单击操作按钮显示附件,在计算机默认应用程序中打开附件或复制附件文本或文档 ID。
  • 单击删除附件按钮 Delete Attachment 删除附件。

When the step is run, the following actions can be performed:

  • 可通过单击暂停暂停步骤。
    注:

    如果暂停了步骤,则已添加的所有附件仍附加至作业,但是其名称无法更新。

  • The step can be finished by clicking Proceed.
注:

If the step isn't optional, the step must be run or paused at least once before it can be finished.

配置步骤

To configure the step, do the following:

  1. Create or edit a workflow diagram to access the Step Library panel.
  2. 添加附件步骤库面板拖至工作流画布上步骤的连接箭头。

    The Step Details panel appears.

  3. Provide a name for the step in the Step Name text box.
  4. Optionally, add the message you want to appear when the step is run in the User Prompt text box.

    You can also use the following example to display a dynamic value using ArcGIS Arcade expressions:

    'This job is currently assigned to ' + jobOwner($job) + '.'
  5. (可选)在文件夹文本框中提供将存储附件的文件夹的名称。

    文件夹名称不能包含文件系统路径或特殊字符。 如果未提供文件夹名称,将自动创建名为 General 的文件夹。

    注:

    文件夹包含在工作流项目中,并且不是文件系统路径。

  6. (可选)允许文件附加至作业。
    1. 附件类型部分中,选中已嵌入复选框。
      注:

      The maximum file size of each embedded attachment is determined by your feature layer.

    2. 将输入限制为以下文件类型文本框中,提供可附加文件类型的文件扩展名逗号分隔列表。
      警告:

      如果未在将输入限制为以下文件类型文本框中指定文件扩展名列表,则可附加到作业的文件类型取决于 ArcGIS Enterprise 门户配置。

      了解有关 ArcGIS Enterprise 门户中支持的文件类型的详细信息

  7. (可选)允许文件与作业相关联。
    1. 附件类型部分中,选中已链接复选框。
    2. 选择已链接文件选项之一:
      • URL - 将文件 URL 与作业相关联
      • 文件路径 - 将文件路径与作业相关联
      • 文本 - 将文件或文件夹路径或文档 ID 与作业相关联
  8. Click the Options tab.
  9. Configure Step Options as necessary.
    • Manual—Run the step manually.
      • Optional—Allow the step to be finished without being run.
    • Automatic—Run the step as soon as it becomes active.
      注:

      If your workflow diagram is configured to automatically run a sequence of steps that includes the Evaluate Data Quality or the Run GP Service step, steps that attempt to run after the user token that started the sequence of steps expires will not run automatically. You must have a license for the ArcGIS Workflow Manager Server Advanced role to continue running the additional automated steps without manual intervention.

    • Run on a Schedule—Run the step according to a schedule you set.

      Learn more about scheduling options

  10. Optionally, provide help text for the step in the Step Help text box.

    You can also use the following example to display a dynamic value using ArcGIS Arcade expressions:

    'For further assistance, please contact ' + jobCreator($job) + '.'
  11. Optionally, click the Style tab to change the shape and color of the step.
  12. Optionally, click the About tab and provide a description for the step in the Step Description text box.
    注:

    The About tab also contains the step's ID that can be used with dynamic job properties to obtain a step's output.

Return value

When the step is completed, its return value is stored to indicate the result of the step. The return value can be immediately evaluated using paths to determine the next steps in the workflow. You can also retrieve the return value for completed steps throughout the workflow using ArcGIS Arcade expressions. The following table lists the step's return values:

Return valuesDescription

S000001

The step completed successfully.

F000001

The step failed to complete successfully.

相关主题


在本主题中
  1. 配置步骤
  2. Return value