Skip To Content

Hinzufügen und Konfigurieren des Schrittes "Auftragsversion festlegen"

Mit dem Schritt "Auftragsversion festlegen" können Sie eine vorhandene Verzweigungsversion als aktuelle Version des Auftrags festlegen. Wenn der Schritt ausgeführt wird, wird die Auftragsversion durch die angegebene Version überschrieben. Wenn die angegebene Version nicht vorhanden ist oder der Benutzer, der den Schritt ausführt, keinen Zugriff auf diese Version hat, schlägt der Schritt fehl. Stattdessen wird auf der Auftragskachel eine Fehlermeldung angezeigt.

Wenn Sie Workflow verwaltet für den Schritt aktivieren, dann verwaltet Workflow Manager die Verzweigungsversion, und die Schritte Anspruch auf Version und Bereinigen können verwendet werden, um die Version zu ändern oder zu löschen.

Konfigurieren des Schrittes

Um den Schritt zu konfigurieren, gehen Sie wie folgt vor:

  1. Create or edit a workflow diagram to access the Step Library panel.
  2. Ziehen Sie Auftragsversion festlegen aus dem Fenster Schrittbibliothek auf den Verbindungspfeil eines Schrittes auf der Workflow-Zeichenfläche.

    The Step Details panel appears.

  3. Provide a name for the step in the Step Name text box.
  4. Wählen Sie im Abschnitt Datenquelle eine Option aus:
    • Quelle auswählen: Klicken Sie auf den Dropdown-Pfeil Quelle auswählen, und wählen Sie die Datenquelle mit der Version, die Sie festlegen möchten, aus.
    • Arcade-Ausdruck: Wählen Sie einen ArcGIS Arcade-Ausdruck aus, der die Element-ID der Datenquelle mit der Version, die Sie festlegen möchten, zurückgibt.
      Tipp:

      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.

    Hinweis:

    Für diesen Schritt kann nur eine Datenquelle verwendet werden. Wenn Sie die Auftragsversion für mehr als eine Datenquelle festlegen müssen, dann müssen Sie den Schritt "Auftragsversion festlegen" entsprechend mehrmals im Workflow-Diagramm konfigurieren.

  5. Wählen Sie im Abschnitt Version eine Option aus:
    • Versions-GUID: Geben Sie die GUID der Verzweigungsversion an, die Sie verwenden möchten. Diese Methode wird empfohlen, da sie eine bessere Performance ermöglicht.
    • Versionsname: Geben Sie den vollständig qualifizierten Versionsnamen der Verzweigungsversion an, die Sie verwenden möchten, zum Beispiel: WORKFLOWUSER.JOB_44.
  6. Zusätzlich können Sie das Kontrollkästchen Workflow verwaltet aktivieren, damit Workflow Manager die Verzweigungsversion verwalten kann.

    Dadurch werden auch die Schritte Anspruch auf Version und Bereinigen aktiviert, damit Sie die Version ändern oder löschen können.

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

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

    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.

Rückgabewert

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.

Ausgabewert

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:

AusgabeBeschreibung

version

Es wird ein Array der festgelegten Version zurückgegeben.

dataSource

Es wird ein Array der Datenquellen-URLs zurückgegeben, für die Versionen erfolgreich festgelegt wurden.