作为工作流一部分的创建作业步骤用于改进复杂的常规工作流的缩放和管理,使其更容易理解和完成。 “创建作业”步骤可以在作业之间自动生成依赖关系并建立父子关系,以确保保留和考虑业务流程的所有部分。
运行该步骤时,将基于在步骤中配置的作业模板创建新作业,然后根据步骤配置在新作业和当前作业之间建立关系。 如果为步骤配置了帮助文本,该文件将在作业切片的底部显示。
配置步骤
To configure the step, do the following:
- Create or edit a workflow diagram to access the Step Library panel.
- 将创建作业从步骤库面板拖至工作流画布上步骤的连接箭头。
The Step Details panel appears.
- Provide a name for the step in the Step Name text box.
- 单击作业类型下拉箭头,然后选择与要创建的作业类型对应的作业类型。
- (可选)选中创建为子作业复选框以将所有已创建作业变为活动作业的子项。
- (可选)选中创建为依赖关系复选框以将所有已创建作业变为活动作业的依赖关系。
必须先完成所有作业依赖关系,然后才能完成当前作业中的下一步。
- Click the Options tab.
- 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.
- Manual—Run the step manually.
- 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) + '.'
- Optionally, click the Style tab to change the shape and color of the step.
- 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 values | Description |
---|---|
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 表达式语法 |
---|---|---|
<JobID> | 返回已创建作业的 JobID。 | jobOutputValue($job, '<step_id>') |