运行作业的用户可通过“更新作业属性”步骤更新扩展属性和以下作业属性:
- job_name
- start_date
- due_date
- priority_rank
- 描述
- owned_by
- job_status
- 注释
- parent_job
运行步骤时,作业切片中将显示在步骤中配置的属性。 如果为步骤配置了帮助文本,该文件将在作业切片的底部显示。 默认值或当前值将在每个属性下可以更新的文本框中显示。
如果属性包含无效值或必需属性不含值,则属性将以红色高亮显示并且继续按钮不可用。
注:
如果属性已自动填充并且遇到错误,则步骤将失败,作业切片中将显示一条错误。 该错误还会写入 ArcGIS Server 日志。
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:
- 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.
- 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) + '.'
- 在参数部分的作业属性文本框中,使用以下语法输入要更新的属性的表名称和字段名称。
tablename.fieldname
注:
作业属性的表名称为 jobs。 可在作业模板的扩展属性选项卡中找到扩展属性表的表名称。
- (可选)单击显示默认值按钮 定义运行步骤时属性的默认值和可见性设置。
- 选择以下选项之一:
- 值 - 提供静态值。
- Arcade 表达式 - 使用 Arcade 表达式提供动态值。
- 在值或 Arcade 表达式文本框中提供属性的默认值。
- 选中可见复选框允许在运行步骤时更改值。
警告:
如果未提供默认值并且未选中可见复选框,将在运行步骤时删除作业属性的当前值。
- 选择以下选项之一:
- (可选)单击添加新作业属性,然后重复步骤 5 和 6 添加更多属性。
注:
要删除作业属性,将光标悬停在该属性上,然后单击删除属性按钮 。
- Optionally, hover over a property, click the Reorder Property button , and drag it to the desired location to reorder the properties.
- 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, check the Enabled check box in the Step Commenting section to allow a user to add a comment when the step is run.
- Optionally, if you enabled step commenting, check the Required check box in the Step Commenting section to require a comment.
- 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. |