Configurer les composants - 7.3
Orchestration (Intégration)
- Version
- 7.3
- Language
- Français
- Product
- Talend Big Data
- Talend Big Data Platform
- Talend Data Fabric
- Talend Data Integration
- Talend Data Management Platform
- Talend Data Services Platform
- Talend ESB
- Talend MDM Platform
- Talend Real-Time Big Data Platform
- Module
- Studio Talend
- Content
- Création et développement > Systèmes tiers > Composants Orchestration (Intégration)
- Gouvernance de données > Systèmes tiers > Composants Orchestration (Intégration)
- Qualité et préparation de données > Systèmes tiers > Composants Orchestration (Intégration)
- Last publication date
- 2024-02-22
Procédure
-
Double-cliquez sur le tWaitForFile pour ouvrir sa vue Basic settings.
-
Dans le champ Directory to scan, saisissez le nom du répertoire à scanner.
-
Dans le champ File mask, saisissez "*.txt" pour ne scanner que les fichiers texte.
-
Dans la liste déroulante Trigger action when, sélectionnez a file is created afin de déclencher le premier tJava lorsqu'un fichier texte est créé.
-
Dans la liste déroulante Then, sélectionnez exit loop afin d'arrêter la boucle itérative dès que le premier tJava a été déclenché.
-
Double-cliquez sur le premier tJava pour ouvrir sa vue Basic settings.
-
Dans le champ Code, saisissez le code suivant :
System.out.println("A file was created at " + TalendDate.getCurrentDate()); System.out.println("Name of the created file: " + ((String)globalMap.get("tWaitForFile_1_CREATED_FILE")));
-
Double-cliquez sur le second tJava pour ouvrir sa vue Basic settings.
-
Dans le champ Code, saisissez le code suivant :
System.out.println("\r\nIteration loop ended at " + TalendDate.getCurrentDate()); System.out.println("Number of iterations finished: " + ((Integer)globalMap.get("tWaitForFile_1_CURRENT_ITERATION")));