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

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

  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.

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:

Выходные данныеОписание

<JobID>

Возвращает JobID выполненого задания.

Связанные разделы