August 15, 2023

Configuring file existence verification – Docs for ESB 6.x

Configuring file existence verification

  1. Double-click the tSCPFileExists component
    to open its Basic settings view.

    components-tscpfileexists_s1_tscpfileexists.png

  2. Select the Use an existing connection
    check box and then select the connection you have configured from the
    Component List.
  3. In the Filename field, enter the name of
    the file to be checked between double quotes. In this example, it is
    “testscp.txt”.
  4. Double-click the tJava component to open
    its Basic settings view.

    components-tscpfileexists_s1_tjava.png

  5. In the Code field, enter the following
    code:

  6. Select the Component tab and click the
    If connection to open its Basic settings view.

    components-tscpfileexists_s1_if.png

  7. In the Condition field, enter the
    following code:

    This way, if the file doesn’t exist in the defined directory, the rest of
    the Job will be executed.

Document get from Talend https://help.talend.com
Thank you for watching.
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x