Skip To Content

添加和配置更新 1-M 作业属性

“更新 1-M 作业属性”步骤用于在作业的一对多属性表中创建记录以及显示和编辑在最新记录的步骤中配置的属性。

运行步骤时,作业切片中将显示在步骤中配置的属性。 如果为步骤配置了帮助文本,该文件将在作业切片的底部显示。 默认值或当前值将在每个属性下可以更新的文本框中显示。

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

  • 可以查看或编辑已配置属性。
  • The step can be canceled 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. 更新 1-M 作业属性步骤库面板拖至工作流画布上步骤的连接箭头。

    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 This input supports Arcade Expressions This input supports Arcade expressions and choose an ArcGIS Arcade expression to add it to its associated text box.

  5. 选择模式设置的以下选项之一:
    • 新建 - 为在步骤中配置的属性创建记录。
    • 编辑 - 编辑在最后创建的记录的步骤中配置的属性。
      注:

      如果不存在记录,将为在步骤中配置的属性创建记录。

    • 查看 - 显示在最后创建的记录的步骤中配置的属性。
      注:

      如果不存在记录,步骤将失败。

  6. 参数部分的作业属性文本框中,使用以下语法输入要更新的属性的表名称和字段名称。
    tablename.fieldname
    注:

    可在作业模板的扩展属性选项卡中找到扩展属性表的表名称。

  7. 或者,单击显示默认值 Show Default Value 定义运行步骤时属性的默认值和可见性设置。
    1. 选择以下选项之一:
      • - 提供静态值。
      • Arcade 表达式 - 使用 Arcade 表达式提供动态值
    2. Arcade 表达式文本框中提供属性的默认值。
    3. 选中可见复选框允许在运行步骤时更改值。
      警告:

      如果未选中可见复选框,则必须提供默认值。

    4. 选中可编辑复选框以允许在运行步骤时编辑值。
      注:

      如果未选中可见复选框,则可编辑复选框将不可用。

    注:

    在该步骤中选中可见可编辑复选框将覆盖扩展属性表中的可见可编辑复选框规范。

  8. (可选)单击添加新作业属性,然后重复步骤 6 和 7 添加更多属性。
    注:

    要删除作业属性,请将鼠标悬停在该属性上,然后单击删除属性 Delete Property

  9. Optionally, hover over a property, click Reorder Property Reorder Property, and drag it to the desired location to reorder the properties.
  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 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, check the Enabled check box in the Step Commenting section to allow a user to add a comment when the step is run.
  13. Optionally, if you enabled step commenting, check the Required check box in the Step Commenting section to require a comment.
  14. 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) + '.'

  15. Optionally, click the Style tab to change the shape and color of the step.
  16. 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. Click Copy Step ID Copy Step ID to copy the step ID to your clipboard.

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 valueDescription

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 can be used as inputs for other steps throughout the workflow. The following table shows the step's output value:

输出描述

<ExtendedPropertyRecordId>

返回已创建、显示或编辑的扩展属性表记录的 ID。

相关主题