Defining the properties of the third tJava component (RunIf) - Cloud - 8.0

Data mapping

Version
Cloud
8.0
Language
日本語
Product
Talend Big Data Platform
Talend Data Fabric
Talend Data Management Platform
Talend Data Services Platform
Talend MDM Platform
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
ジョブデザインと開発 > サードパーティーシステム > 変換処理コンポーネント > データマッピング
データガバナンス > サードパーティーシステム > 変換処理コンポーネント > データマッピング
データクオリティとプレパレーション > サードパーティーシステム > 変換処理コンポーネント > データマッピング
Last publication date
2023-09-14

Procedure

  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()); 
    System.out.println(status.toString()); 
    // XML version of ExecutionStatus object 
    java.io.StringWriter sw = new java.io.StringWriter(); 
    status.exportToXml(sw); 
    System.out.println("ExecutionStatus as XML"); 
    System.out.println(sw.toString());