Package org.pentaho.di.job.entries.trans
Class JobEntryTransHelper
java.lang.Object
org.pentaho.di.job.entry.BaseJobEntryHelper
org.pentaho.di.job.entries.trans.JobEntryTransHelper
- All Implemented Interfaces:
JobEntryHelperInterface
-
Field Summary
FieldsFields inherited from class org.pentaho.di.job.entry.BaseJobEntryHelper
IS_TRANS_REFERENCE, IS_VALID_REFERENCE, log, REFERENCE_PATH, SEPARATORFields inherited from interface org.pentaho.di.job.entry.JobEntryHelperInterface
ACTION_STATUS, FAILURE_METHOD_NOT_FOUND_RESPONSE, FAILURE_RESPONSE, FAILURE_STATUS, NOT_EXECUTED_STATUS, STATUS, SUCCESS_RESPONSE, SUCCESS_STATUS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.json.simple.JSONObjectgetParametersFromTrans(JobMeta jobMeta) Retrieves the list of parameters from the given transformation metadata and returns them as a JSON object.org.json.simple.JSONObjectgetReferencePath(JobMeta jobMeta) Retrieves the reference path of the transformation associated with the job entry.protected org.json.simple.JSONObjectHandles job entry-specific actions for JobEntryTrans.Methods inherited from class org.pentaho.di.job.entry.BaseJobEntryHelper
getReferencePath, isFailedResponse, jobEntryAction
-
Field Details
-
PARAMETERS
- See Also:
-
JOB_ENTRY_TRANS_REFERENCE_PATH
- See Also:
-
-
Constructor Details
-
JobEntryTransHelper
-
-
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:
handleJobEntryActionin classBaseJobEntryHelper- 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
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
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.
-