Skip To Content

Ajouter et configurer une étape Update 1-M Job Properties (Mettre à jour les propriétés de tâche un vers plusieurs)

L’étape Mettre à jour les propriétés de tâche un vers plusieurs vous permet de créer des enregistrements, ainsi que de visualiser et de mettre à jour les propriétés configurées dans l’étape du dernier enregistrement d’une table de propriétés un vers plusieurs d’une tâche.

Lorsque l’étape est exécutée, les propriétés configurée dans l’étape apparaissent dans la vignette de la tâche. Si un texte d’aide est configuré pour l’étape, il apparaît en bas de la vignette de la tâche. Les valeurs par défaut ou en cours apparaissent dans la zone de texte située sous chaque propriété pouvant être mise à jour.

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

  • Les propriétés configurées peuvent être affichées ou mises à jour.
  • The step can be cancelled by clicking Cancel.
  • The step can be finished by clicking Proceed.

Configurer l’étape

To configure the step, do the following:

  1. Create or edit a workflow diagram to access the Step Library panel.
  2. Faites glisser Update 1-M Job Properties (Mettre à jour les propriétés de tâche un vers plusieurs) depuis le volet Step Library (Bibliothèque d’étapes) vers une flèche de connexion d’une étape de la zone d’affichage du workflow.

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

    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. Sélectionnez l’une des options suivantes pour le paramètre Mode :
    • Create New (Créer) : créez un enregistrement pour les propriétés configurées dans l’étape.
    • Edit (Mettre à jour) : mettez à jour les propriétés configurées dans l’étape pour le dernier enregistrement créé.
      Remarque :

      S’il n’existe aucun enregistrement, un enregistrement est créé pour les propriétés configurées dans l’étape.

    • View (Afficher) - Affichez les propriétés configurées dans l’étape pour le dernier enregistrement créé.
      Remarque :

      S’il n’existe aucun enregistrement, l’étape échoue.

  6. Dans la section Arguments, saisissez le nom de la table et le nom du champ de la propriété à mettre à jour dans la zone de texte Job Property (Propriété de tâche) avec la syntaxe suivante :
    tablename.fieldname
    Remarque :

    Les noms des tables de propriétés étendues se trouvent sur l’onglet Extended Properties (Propriétés étendues) du modèle de tâche.

  7. Vous pouvez cliquer sur le bouton Show Default Value (Afficher la valeur par défaut) Show Default Value pour définir la valeur par défaut et les paramètres de visibilité de la propriété lorsque l’étape est exécutée.
    1. Sélectionnez l’une des options suivantes :
      • Value (Valeur) : indiquez une valeur statique.
      • Arcade Expression (Expression Arcade) : indiquez une valeur dynamique à l’aide d’une expression Arcade.
    2. Indiquez une valeur par défaut pour la propriété dans la zone de texte Value (Valeur) ou Arcade Expression (Expression Arcade).
    3. Cochez la case Visible pour autoriser la modification de la valeur lorsque l’étape est exécutée.
    Attention :

    Si aucune valeur par défaut n’est indiquée et que la case Visible n’est pas cochée pour une propriété, la valeur de la propriété est supprimée lorsque l’étape est exécutée.

  8. Au besoin, cliquez sur Add New Job Property (Ajouter une nouvelle propriété de tâche) et répétez les étapes 6 et 7 pour ajouter plus de propriétés.
    Remarque :

    Pour supprimer une propriété de tâche, positionnez le pointeur sur cette dernière et cliquez sur le bouton Delete Property (Supprimer la propriété) Delete Property.

  9. Optionally, hover over a property, click the Reorder Property button Reorder Property, and drag it to the desired location to reorder the properties.
  10. Click the Options tab.
  11. 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.
      Remarque :

      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

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

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

    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.

Valeur en sortie

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:

SortieDescription

<ExtendedPropertyRecordId>

Renvoie l’identifiant du dernier enregistrement de table de propriétés étendues créé, affiché ou mis à jour.

Rubriques connexes