Skip To Content

[バージョンの作成] の追加および構成

バージョニングでは、複数のユーザーが独自バージョンの空間データの操作を実行し、[ジオプロセシング サービスの実行] ステップを使用して、デフォルトのブランチ バージョンへの編集をリコンサイルおよびポストできるようにします。 これにより、ユーザーが適切なタイミングで適切なデータにアクセスでき、編集の競合を避けることができます。

ステップが実行されると、ワークフローで定義された各フィーチャ サービス データ ソースに、既存のジョブ固有のバージョンのデータがあるかどうかをチェックします。 データ ソースにジョブ固有のバージョンが含まれていない場合、[バージョンの作成] ステップは自動的にバージョンを作成し、ジョブに関連付けます。 [バージョンの作成] ステップは、ジョブのワークフロー ダイアグラムで定義されたデータ ソースに対して、フィーチャ サービスごとに 1 つのジョブ バージョンの作成のみをサポートしています。

When the step finishes running, a message appears on the job tile with the result of the step.

ステップにデータ ソースが定義されていない場合、またはステップがバージョンの作成に失敗した場合は、[CreateVersionFailed] メッセージが表示され、ジョブは次のステップに進まなくなります。 エラー メッセージ上にカーソルを置くと、エラーに関する追加情報が表示されます。

If the step fails and the return codes don't match any of the configured paths, and the step isn't optional, the step remains in a failed state and can’t be skipped.

ステップの構成

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. 必要に応じて、[バージョン名] テキスト ボックスにバージョンの名前を入力します。
    注意:

    一意の ID をバージョン名に追加するには、一意の ID をバージョン名に表示する場所に [index] と入力します。

  5. 必要に応じて、[アクセス権限] セクションでバージョンの権限レベルを構成します。
    注意:

    アクセス権限設定では、バージョンの所有者以外のユーザーによるバージョンの表示または編集を制限することができます。 デフォルトは [プライベート] です。

  6. [データ ソース] セクションで、次のオプションのいずれかを選択します。
    • [すべて] - このオプションを選択すると、ワークフロー ダイアグラムで構成されたすべてのデータ ソースのバージョンが作成されます。
    • [ソースの選択] - このオプションを選択して [ソースの追加] をクリックし、バージョンを作成するデータ ソースを選択します。
      ヒント:

      データ ソースを削除するには、[削除] ボタン Delete をクリックします。

    • [Arcade 式] - ステップの実行時にバージョンが作成されるデータ ソースを動的に決定するには、このオプションを選択して、ArcGIS Arcadeを入力します。

      Arcade 式は空間データ ソース名ではなく、空間データ ソース ID を返す必要があります。 複数のデータ ソースを選択する必要がある場合、次のように式の書式を設定する必要があります。

      '["' + JobExtendedProperty($Job, 'versions', 'datasource1') + '"' + ',' + '"' + JobExtendedProperty($Job, 'versions', 'datasource2') + '"]'
      ヒント:

      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.

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

  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 lists the step's output values:

出力説明

バージョン

作成したすべてのバージョンの配列を返します。

dataSources

バージョンが正常に作成されたすべてのデータ ソースの URL の配列を返します。

関連トピック


このトピックの内容
  1. ステップの構成
  2. Return value
  3. 出力値