Skip To Content

添加和配置高级分配

“高级分配”步骤用于根据该步骤的输出值将后续步骤分配给用户。 还可以将该步骤配置为使用作业位置自动将用户或群组分配至后续步骤,方法为查询包含具有用户或群组列表的字段的参考图层。 在完成该步骤后,可以自动将后续步骤分配给选定用户或群组。

在运行该步骤时,系统将提示您选择向其分配后续步骤的用户。 如果步骤配置为具有参考图层,则系统将自动确定向其分配后续步骤的用户或群组。

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

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

如果步骤不是可选步骤,则步骤必须先运行,然后才能完成。

配置步骤

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.

    If the user prompt contains plain text and Arcade expressions, you'll need to format the text as follows:

    'This job is currently assigned to ' + JobOwner($Job) + '.'
    提示:

    Click the This input supports Arcade Expressions button This input supports Arcade expressions and choose an ArcGIS Arcade expression to add it to its associated text box.

  5. 如果不希望将由此步骤引出的所有路径分配给选定用户或群组,则取消选中自动切换分配复选框,然后使用此步骤的输出值通过路径更改分配

    如果指向将其中一个步骤分配给选定用户或群组,对于具有并行步骤的工作流,这可能是必需的。

    注:

    在选中自动切换分配复选框后,选定用户或群组分配将覆盖由此步骤引出的所有路径分配设置。

  6. 要针对群组配置步骤分配,选中强制群组分配复选框,以确保始终将步骤分配至群组,即使当运行步骤的用户是群组成员时也是如此。
  7. 选择以下分配方法选项之一:
    • 用户定义 - 手动选择要向其分配后续步骤的用户。
    • 空间 - 使用作业位置查询包含具有用户或群组列表的字段的参考图层,以确定向其分配后续步骤的用户或群组。
  8. 如果选择用户定义,执行以下操作之一:
    • 所有用户 - 选择此选项可允许将任何用户分配给后续步骤。
    • 群组 - 选择此选项,单击群组下拉箭头,然后选择群组可仅允许将选定群组中的用户分配给后续步骤。
  9. 如果选择空间,单击添加添加参考图层。

    随即显示高级分配步骤对话框。

    1. 选择以下选项之一指定参考图层所在的位置:
      • 此 Enterprise - 在与 Workflow Manager 相同的门户上托管的要素图层
      • ArcGIS Online - 在 ArcGIS Online 上托管的要素图层
      • 其他 - 位于另一个门户上的要素图层
      注:

      要素图层必须为面图层。

    2. 如果选择其他,在门户 URL 文本框中键入包含要素图层的门户的 URL,然后按 Enter 键。

      例如,格式可以是 https://webadaptorhost.domain.com/webadaptorname

    3. 项目 ID 文本框中提供要素图层的项目 ID。
    4. 单击图层名称下拉箭头,然后选择要用作参考图层的图层。
    5. 单击分配字段下拉箭头,然后选择要用于确定用户或群组分配的字段。
      注:

      选定字段只能包含用户或群组。

    6. 参考名称文本框中,提供参考图层的名称。

      这是在步骤配置中显示的名称。

    7. 单击确定

      步骤详细信息面板中将显示参考图层。

      注:

      要编辑参考图层,可单击编辑参考图层 Edit Reference Layer,要删除参考图层,可单击删除参考图层 Delete Reference Layer

    8. 步骤详细信息面板的参考图层下,选择以下选项之一:
      • 用户 - 如果选定分配字段包含用户,选择此选项。
      • 群组 - 如果选定分配字段包含群组,选择此选项。
  10. Click the Options tab.
  11. 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

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

    You can also use ArcGIS Arcade expressions to provide a dynamic value for the step help. If the step help contains plain text and Arcade expressions, you'll need to format the text as follows:

    '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 values:

Return valuesDescription

S000001

The step completed successfully.

F000001

The step failed to complete successfully.

输出值

When the step is completed, its output value is stored and can be used to determine the path the workflow follows or be used as inputs for other steps throughout the workflow. The following table shows the step's output value:

输出描述

分配

返回要向其分配后续步骤的用户或群组的用户名或群组 ID。

assignmentMethod

返回 UserDefined 或 Spatial,具体取决于用于分配用户或群组的方法。

相关主题