Skip To Content

添加和配置“打开 Pro 工程项目”

“打开 Pro 工程项目”步骤用于在 ArcGIS Pro 中打开现有工程或工程包。 可以配置要添加至工程的项目,例如地图、布局、场景、任务和 Web 地图,以确保对正确的项目执行操作。 如果工程包含制图项目,则数据图层可以自动指向适当的作业特定数据版本(如果可用)。

ArcGIS Pro 中运行该步骤时,在该步骤中定义的项目将在指定的 ArcGIS Pro 工程中打开。 如果该步骤需要打开其他工程,系统将提示您保存现有工程,然后再打开新工程。 如果启用了查看错误检查器,将显示错误检查器窗格并向地图添加包含错误要素的图层。 如果为步骤配置了帮助文本,该文件将在作业切片的底部显示。

ArcGIS Workflow Manager Web 应用程序中运行该步骤时,作业切片中将显示下载按钮。 下载 PITEMX 文件,然后双击该文件以在 ArcGIS Pro 中打开该工程。 如果该步骤需要打开其他工程,系统将提示您保存现有工程,然后再打开新工程。 如果启用了查看错误检查器,将显示错误检查器窗格并向地图添加包含错误要素的图层。 如果为步骤配置了帮助文本,该文件将在作业切片的底部显示。

警告:

一次只能使用一个下载的 PITEMX 文件在 ArcGIS Pro 中打开工程。 如果您需要再次打开工程,则必须从 Workflow Manager web 应用程序的作业切片中下载新的 PITEMX 文件。

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

  • The step can be paused by clicking Pause.
  • The step can be finished by clicking Finish.
注:

If the step isn't optional, the step must be run or paused at least once before it can be finished.

配置步骤

可以添加在 ArcGIS Enterprise 门户、ArcGIS Online 或文件系统中托管的工程包。 可以配置要添加至工程的项目,例如地图、布局、Web 地图和任务。 项目在 ArcGIS Pro 中的打开顺序取决于其添加至步骤的顺序。

To configure the step, do the following:

  1. Create or edit a workflow diagram to access the Step Library panel.
  2. 打开 Pro 工程项目步骤库面板拖至工作流画布上步骤的连接箭头。

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

  5. 参数部分中,单击编辑

    ArcGIS Pro 制图步骤对话框随即显示。

  6. Pro 工程部分中,选择以下选项之一指定工程所在的位置:
    • 当前 - 在 ArcGIS Pro 中打开的工程。
    • 门户 - 在 ArcGIS Enterprise 门户或 ArcGIS Online 中托管的工程包。
    • 文件路径 - 在网络文件共享或本地文件系统中托管的工程包。

      You can also use ArcGIS Arcade expressions to provide a dynamic value.

  7. 如果选择门户,单击添加 Pro 工程,然后执行以下操作:
    1. 选择以下选项之一指定工程包所在的位置:
      • 此 Enterprise - 在与 Workflow Manager 相同的门户中托管的工程包。
      • ArcGIS Online - 在 ArcGIS Online 中托管的工程包。
      • 其他 - 在另一个门户中托管的工程包。
    2. 如果选择其他,在门户 URL 文本框中键入包含工程包的门户的 URL,然后按 Enter 键。

      例如,格式可以是 https://webadaptorhost.domain.com/webadaptorname

    3. (可选)在项目 ID 文本框中,提供其他工程包名称。
    4. (可选)在参考名称文本框中,提供工程包的其他参考名称。

      这是在步骤配置中显示的名称。

    5. 单击确定

      ArcGIS Pro 制图步骤对话框中将显示工程包。

      注:

      要编辑工程包,可单击编辑;要删除工程包,可单击删除

  8. 如果选择文件路径,则在文件路径文本框中提供工程包的本地或网络路径。
  9. 打开项目部分中,单击打开新项目以添加要在工程中打开的项目。
    注:

    运行步骤时,项目必须位于 ArcGIS Pro 工程中,否则步骤将失败。

  10. 名称文本框中,提供要使用的项目的名称。
  11. 类型下拉列表中,选择要使用的项目的类型。
  12. 如果在工作流逻辑示意图中使用创建版本步骤创建作业特定数据版本,则选中重新指向版本复选框以在运行步骤时使制图项目数据图层重新指向至作业特定版本。
    注:

    重新指向版本复选框不适用于任务项目。

  13. (可选)重复步骤 8 至 11 添加更多项目。
    注:

    要删除项目,将光标悬停在项目上,然后单击删除项目按钮 Delete Item

  14. (可选)单击完成选项卡,然后选中重置为默认值复选框以在完成步骤时使制图项目数据图层重新指向原始版本。
    注:

    重置为默认值复选框不适用于任务项目。

  15. (可选)如果选择门户文件路径作为 Pro 工程设置,选中关闭 ArcGIS Pro 工程复选框以在步骤暂停或完成时关闭工程。

    在步骤暂停或完成后,工程将关闭,ArcGIS Pro 保持打开,以允许用户恢复该步骤或完成其他步骤。

  16. (可选)单击高级选项卡,然后根据需要配置选项。
    • 缩放至位置 - 如果定义了作业位置,将地图项目缩放至作业位置
    • 查看错误检查器 - 打开错误检查器窗格,以查看地图上的错误要素。

      对于要素服务数据源,错误图层必须在服务中存储并且必须使用验证功能对数据源进行分支版本化。

  17. (可选)打开将编辑限制为作业位置将编辑限制为作业位置。
    1. 单击运算符下拉箭头,然后选择以下选项之一:
      • 与作业位置相交 - 允许对与作业位置相交的要素进行编辑。
      • 完全位于作业位置内 - 允许对完全位于作业位置内的要素进行编辑。
    2. (可选)在缓冲区文本框中提供值,以允许对作业位置指定距离内的要素进行编辑。

      You can also use ArcGIS Arcade expressions to provide a dynamic value.

      如果缓冲区包含 Arcade 表达式,它必须评估为整数。

  18. Click Save.
    注:

    The Save button isn't available when parameters are configured with invalid values.

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

  21. Optionally, check the Enabled check box in the Step Commenting section to allow a user to add a comment when the step is run.
  22. Optionally, if you enabled step commenting, check the Required check box in the Step Commenting section to require a comment.
  23. 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) + '.'

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

相关主题


在本主题中
  1. 配置步骤
  2. Return value