Class RandomValueStepHelper

java.lang.Object
org.pentaho.di.trans.step.BaseStepHelper
org.pentaho.di.trans.steps.randomvalue.RandomValueStepHelper
All Implemented Interfaces:
StepHelperInterface

public class RandomValueStepHelper extends BaseStepHelper
Currently, provides action handler for exposing available random function types, with potential for additional step-level utilities in the future.
See Also:
  • Field Details

  • Constructor Details

    • RandomValueStepHelper

      public RandomValueStepHelper()
  • Method Details

    • getRandomFunctionTypes

      protected org.json.simple.JSONObject getRandomFunctionTypes()
      Generates a JSON response containing the available random function types.

      Iterates through the list of random value functions defined in RandomValueMeta.functions, and constructs a JSON array where each element represents a function type with its code and description. The resulting JSON object contains this array under the key "randomFunctionTypes".

      Returns:
      a JSONObject containing the available random function types
    • handleStepAction

      protected org.json.simple.JSONObject handleStepAction(String method, TransMeta transMeta, Map<String,String> queryParams)
      Handles step-specific actions for the RandomValue step.

      This method overrides BaseStepHelper.handleStepAction(String, TransMeta, Map) to provide RandomValue-specific functionality. Currently, supports:

      Specified by:
      handleStepAction in class BaseStepHelper
      Parameters:
      method - the name of the method to execute (case-sensitive)
      transMeta - the transformation metadata (currently unused for this step)
      queryParams - query parameters for the action (currently unused for this step)
      Returns:
      a JSONObject containing either the action result or an error response
      See Also: