Skip To Content

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

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

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

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. 更新 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.

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

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

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

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

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

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

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

    如果未提供默认值并且未选中属性的可见复选框,将在运行步骤时删除属性值。

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

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

  9. Optionally, hover over a property, click the Reorder Property button 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 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, 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 the following example to display a dynamic value using ArcGIS Arcade expressions:

    '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.

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.

输出值

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:

输出描述ArcGIS Arcade 表达式语法

<ExtendedPropertyRecordId>

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

jobOutputValue($job, '<step_id>')

相关主题