Skip To Content

添加和配置“创建作业”

作为工作流一部分的创建作业步骤用于改进复杂的常规工作流的缩放和管理,使其更容易理解和完成。 “创建作业”步骤可以在作业之间自动生成依赖关系并建立父子关系,以确保保留和考虑业务流程的所有部分。

运行该步骤时,将基于在步骤中配置的作业模板创建作业,然后根据步骤配置在新作业和当前作业之间建立关系。 如果为步骤配置了帮助文本,该文件将在作业切片的底部显示。

配置步骤

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. (可选)选中创建为依赖关系复选框以将所有已创建作业变为活动作业的依赖关系

    必须先完成所有作业依赖关系,然后才能完成当前作业中的下一步。

  7. Click the Options tab.
  8. 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

  9. 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) + '.'

    提示:

    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.

  10. Optionally, click the Style tab to change the shape and color of the step.
  11. 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:

输出描述

<JobID>

返回已创建作业的 JobID

相关主题