You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hop.apache.org by ha...@apache.org on 2021/10/01 17:03:36 UTC

[incubator-hop] branch master updated: HOP-3339 Translate MDI injection keys during the Kettle import

This is an automated email from the ASF dual-hosted git repository.

hansva pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-hop.git


The following commit(s) were added to refs/heads/master by this push:
     new c555c36  HOP-3339 Translate MDI injection keys during the Kettle import
     new ca158fc  Merge pull request #1100 from nadment/HOP-3339
c555c36 is described below

commit c555c36d6195ae0726b37c6c5dddc3c10425da0f
Author: Nicolas Adment <na...@gmail.com>
AuthorDate: Fri Oct 1 18:33:52 2021 +0200

    HOP-3339 Translate MDI injection keys during the Kettle import
---
 .../org/apache/hop/imports/kettle/KettleConst.java  | 21 +++++++++++++++++++--
 1 file changed, 19 insertions(+), 2 deletions(-)

diff --git a/plugins/misc/import/src/main/java/org/apache/hop/imports/kettle/KettleConst.java b/plugins/misc/import/src/main/java/org/apache/hop/imports/kettle/KettleConst.java
index 3779a2f..cf6f9ea 100644
--- a/plugins/misc/import/src/main/java/org/apache/hop/imports/kettle/KettleConst.java
+++ b/plugins/misc/import/src/main/java/org/apache/hop/imports/kettle/KettleConst.java
@@ -162,8 +162,25 @@ public class KettleConst {
                 {"Internal.Entry.Current.Directory", "Internal.Entry.Current.Folder"},
                 {"Internal.Job.Filename.Directory", "Internal.Workflow.Filename.Folder"},
                 // Injection key
-                {"HEAD_STEP", "HEAD_TRANSFORM"},
-                {"TAIL_STEP", "TAIL_TRANSFORM"}
+                {"HEAD_STEP", "HEAD_TRANSFORM"}, // append
+                {"TAIL_STEP", "TAIL_TRANSFORM"}, // append               
+                {"LEFT_STEP", "LEFT_TRANSFORM"}, // mergejoin
+                {"RIGHT_STEP", "RIGHT_TRANSFORM"}, // mergejoin
+                {"INPUT_STEPS", "INPUT_TRANSFORMS"}, // multimerge
+                {"SOURCE_STEP_NAME", "SOURCE_TRANSFORM_NAME"}, // metainject
+                {"STREAMING_SOURCE_STEP", "STREAMING_SOURCE_TRANSFORM"}, // metainject
+                {"STREAMING_TARGET_STEP", "STREAMING_TARGET_TRANSFORM"}, // metainject
+                {"SEND_TRUE_STEP", "SEND_TRUE_TRANSFORM"}, // filterrows
+                {"SEND_FALSE_STEP", "SEND_FALSE_TRANSFORM"}, // filterrows
+                {"INC_STEPNR_IN_FILENAME", "INC_TRANSFORMNR_IN_FILENAME"}, // jsonoutput                
+                {"MAIN_STEP", "MAIN_TRANSFORM"}, // joinrows
+                {"SUB_STEP", "SUB_TRANSFORM"}, // kafka          
+                {"INC_STEPNR_IN_FILENAME", "INC_TRANSFORMNR_IN_FILENAME"}, // xmloutput
+                {"SOURCE_XML_STEP", "SOURCE_XML_TRANSFORM"}, // xmljoin
+                {"TARGET_XML_STEP", "TARGET_XML_TRANSFORM"}, // xmljoin   
+                {"OUTPUT_INCLUDE_STEPNR", "OUTPUT_INCLUDE_TRANSFORMNR"}, // webservice                               
+                {"SWITCH_CASE_TARGET.CASE_TARGET_STEP_NAME", "SWITCH_CASE_TARGET.CASE_TARGET_TRANSFORM_NAME"},   // switchcase
+                {"DEFAULT_TARGET_STEP_NAME", "DEFAULT_TARGET_TRANSFORM_NAME"}   // switchcase                             
               })
           .collect(Collectors.toMap(data -> (String) data[0], data -> (String) data[1]));