Class JobEntryTransHelper

java.lang.Object
org.pentaho.di.job.entry.BaseJobEntryHelper
org.pentaho.di.job.entries.trans.JobEntryTransHelper
All Implemented Interfaces:
JobEntryHelperInterface

public class JobEntryTransHelper extends BaseJobEntryHelper
  • Field Details

  • Constructor Details

    • JobEntryTransHelper

      public JobEntryTransHelper(JobEntryTrans jobEntryTrans)
  • Method Details

    • handleJobEntryAction

      protected org.json.simple.JSONObject handleJobEntryAction(String method, JobMeta jobMeta, Map<String,String> queryParams)
      Handles job entry-specific actions for JobEntryTrans.
      Specified by:
      handleJobEntryAction in class BaseJobEntryHelper
      Parameters:
      method - The action method to execute.
      jobMeta - The metadata of the current job.
      queryParams - A map of query parameters.
      Returns:
      A JSON object containing the result of the action.
    • getParametersFromTrans

      public org.json.simple.JSONObject getParametersFromTrans(JobMeta jobMeta)
      Retrieves the list of parameters from the given transformation metadata and returns them as a JSON object. This method is called from JobEntryInterface#doAction dynamically using reflection.
      Returns:
      A JSON object containing the list of parameters under the key "parameters".
    • getReferencePath

      public org.json.simple.JSONObject getReferencePath(JobMeta jobMeta)
      Retrieves the reference path of the transformation associated with the job entry.
      Parameters:
      jobMeta - The job metadata containing the job entry.
      Returns:
      A JSON object containing: - "referencePath": The reference path of the transformation. - "isValidReference": A boolean indicating if the reference is valid. - "isTransReference": A boolean indicating if the reference is a transformation.