August 15, 2023

Running the Job under different conditions – Docs for ESB 6.x

Running the Job under different conditions

  1. Press Ctrl+S to save your Job.
  2. In the Run tab, click Run to execute the Job.

    In this case, no errors occur, so the Job triggers the second tJava component only.
    use_case-thmap-error_handling-run1.png

  3. Double-click the tHMap component to open the Map
    editor.
  4. Right-click the outputKey element and click
    Go to Structure Element.
  5. Change the tHMap_1_output structure that
    opens from Read Only to Editable and then change the Data
    Type
    for outputkey to
    Integer (32). This means that this element
    can only be an Integer, and since this does not match the input, an
    error will occur.

    use_case-thmap-error_handling-structure.png

  6. In the Run tab, click Run to execute the Job again.

    In this case, the Job still triggers the second tJava component even though there is an error, because the
    threshold above which an exception should be thrown (thus enabling the
    downstream components to detect the error) is set as Fatal. However, the third tJava
    component is also triggered since there is an error in the execution of the
    map.
    use_case-thmap-error_handling-run2.png

  7. In the tHMap component, change the value of the Exception Threshold drop-down list (on the Advanced Settings tab) to Error. This causes an exception to be thrown when the map has a
    severity of Error or higher.
  8. In the Run tab, click Run to execute the Job for a third time.

    In this case, the Job detects the error and triggers the first tJava component (OnSubjobError).
    use_case-thmap-error_handling-run3.png


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