Skip To Content

添加和配置问题

“问题”步骤可用于向工作流添加决策点。 这允许定于具有预配置响应的问题,用于确定要在工作流中运行的下一步。

运行步骤时,将显示问题,响应显示为按钮。 如果为步骤配置了帮助文本,该文件将在作业切片的底部显示。 单击响应时,将设置问题的返回值并完成步骤。 如果配置的响应超过三个,将以下拉列表的形式显示这些响应以及一个继续按钮。

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

  • 可以选择响应来完成步骤。 如果为步骤配置的响应超过两个,可以在下拉列表中选择响应。
  • The step can be cancelled by clicking Cancel.
  • The step can be finished by clicking Proceed.

配置步骤

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. 问题文本框中提供问题。
  5. 答案返回代码文本框中提供预配置答案和返回值。

    可将多个答案配置为使用同一返回代码,但是所有答案文本框必须包含唯一值。

    注:

    步骤中的所有路径必须配置为与在步骤中定义的返回代码值之一一致。

  6. (可选)单击添加新响应添加多个答案。
    注:

    要删除答案,将光标悬停在答案上,然后单击删除答案按钮 Delete Answer

  7. (可选)对答案重新排序。
    1. 将光标悬停在答案上。
    2. 单击重新排序答案按钮 Reorder Answer,然后将其拖至所需位置。
  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, check the Enabled check box in the Step Commenting section to allow a user to add a comment when the step is run.
  11. Optionally, if you enabled step commenting, check the Required check box in the Step Commenting section to require a comment.
  12. 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) + '.'
  13. Optionally, click the Style tab to change the shape and color of the step.
  14. 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.

返回值

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 value:

返回值描述

<CustomReturnValue>

步骤成功完成,步骤将返回在步骤中定义的答案的匹配自定义返回值。

相关主题


在本主题中
  1. 配置步骤
  2. 返回值