August 15, 2023

Defining the properties of the third tJava component (RunIf) – Docs for ESB 6.x

Defining the properties of the third tJava component (RunIf)

  1. Select the third tJava component to define
    its properties. This component runs if any errors occur within the map itself
    (higher than informational status).
  2. Add the following code in the Code
    section.System.out.println("tJava_3: Run If");

    org.talend.transform.runtime.api.ExecutionStatus es = (org.talend.transform.runtime.api.ExecutionStatus)globalMap.get("tHMap_1_EXECUTION_STATUS");

    System.out.println("Execution result:" + es.getOverallSeverity());

    // ExecutionStatus object
    System.out.println(es.toString());

    // XML version of ExecutionStatus object
    java.io.StringWriter sw = new java.io.StringWriter();
    es.exportToXml(sw);
    System.out.println("ExecutionStatus as XML");
    System.out.println(sw.toString());


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