Skip To Content

Hinzufügen und Konfigurieren des Schrittes "Frage"

Mit dem Schritt "Frage" können Sie Ihren Workflows einen Entscheidungspunkt hinzufügen. Auf diese Weise können Sie eine Frage mit vorkonfigurierten Antworten definieren, mit denen der nächste Schritt festgelegt wird, der in dem Workflow ausgeführt wird.

Wenn der Schritt ausgeführt wird, wird die Frage angezeigt, und die Antworten werden als Schaltflächen angezeigt. Wenn zu dem Schritt ein Hilfetext konfiguriert wurde, wird er unten auf der Auftragskachel angezeigt. Wenn Sie auf eine Antwort klicken, wird der Rückgabewert zu der Frage festgelegt, und der Schritt wird abgeschlossen. Wenn mehr als drei Antworten konfiguriert werden, werden sie gemeinsam mit der Schaltfläche Fortfahren in einer Dropdown-Liste angezeigt.

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

  • Um den Schritt abzuschließen, kann eine Antwort ausgewählt werden. Wenn mehr als zwei Antworten zu dem Schritt konfiguriert werden, kann eine Antwort aus der Dropdown-Liste ausgewählt werden.
  • The step can be cancelled by clicking Cancel.
  • The step can be finished by clicking Proceed.

Konfigurieren des Schrittes

To configure the step, do the following:

  1. Create or edit a workflow diagram to access the Step Library panel.
  2. Ziehen Sie Frage 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. Geben Sie in das Textfeld Frage eine Frage ein.

    Sie können auch ArcGIS Arcade-Ausdrücke verwenden, um einen dynamischen Wert bereitzustellen. Wenn die Frage einfachen Text und Arcade-Ausdrücke enthält, muss der Text wie folgt formatiert werden:

    'Would you like to edit the job location for ' + JobName($Job) + '?'
    Tipp:

    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. Geben Sie vorkonfigurierte Antworten und Rückgabewerte in den Textfeldern Antwort und Rückgabewert ein.

    Mehrere Antworten können so konfiguriert werden, dass sie denselben Rückgabewert verwenden. Alle Textfelder Antwort müssen jedoch Einzelwerte enthalten.

    Hinweis:

    Alle Pfade aus dem Schritt müssen so konfiguriert werden, dass sie einem der in dem Schritt definierten Rückgabewerte entsprechen.

  6. Optional klicken Sie auf Neue Antworten hinzufügen, um weitere Antworten hinzuzufügen.
    Hinweis:

    Um eine Antwort zu löschen, bewegen Sie den Mauszeiger darüber und klicken auf die Schaltfläche Antwort löschen Delete Answer.

  7. Optional ändern Sie die Reihenfolge der Antworten.
    1. Bewegen Sie den Mauszeiger über eine Antwort.
    2. Klicken Sie auf die Schaltfläche Antwort umordnen Reorder Answer, und ziehen Sie sie an die gewünschte Position.
  8. Click the Options tab.
  9. 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 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

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

  13. Optionally, click the Style tab to change the shape and color of the step.
  14. Optionally, click the About tab and provide a description for the step in the Step Description text box.
    Hinweis:

    The About tab also contains the step's ID that can be used with dynamic job properties to obtain a step's output.

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

RückgabewertBeschreibung

<CustomReturnValue>

Der Schritt wurde erfolgreich abgeschlossen und gibt den entsprechenden benutzerdefinierten Rückgabewert zu der in dem Schritt definierten Antwort zurück.

Verwandte Themen