Skip to main content Skip to complementary content

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.common.MapExecutionStatus status = ((org.talend.transform.runtime.common.MapExecutionStatus) globalMap.get("tHMap_1_EXECUTION_STATUS")); 
    System.out.println("Execution result:" + status.getOverallSeverity()); 
    // XML version of ExecutionStatus object sw = new; 
    System.out.println("ExecutionStatus as XML"); 

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!