Search in sources :

Example 1 with Transformation

use of org.pentaho.di.engine.model.Transformation in project pentaho-kettle by pentaho.

the class MessageEncoderDecoderTest method executionRequest.

private ExecutionRequest executionRequest() {
    Map<String, Object> parameters = new HashMap<>();
    parameters.put("paramKey1", "paramValue1");
    parameters.put("paramKey2", "paramValue2");
    Map<String, Object> environment = new HashMap<>();
    environment.put("environmentKey1", "environmentParam1");
    environment.put("environmentKey2", "environmentParam2");
    Map<String, Set<Class<? extends Serializable>>> reportingTopics = new HashMap<>();
    Set<Class<? extends Serializable>> topics = new HashSet<>();
    topics.add(Metrics.class);
    topics.add(LogEntry.class);
    reportingTopics.put("operation1", topics);
    reportingTopics.put("operation2", topics);
    LogLevel loggingLogLevel = LogLevel.BASIC;
    Principal actingPrincipal = null;
    Transformation transformation = new Transformation("myTransformation");
    return new ExecutionRequest(parameters, environment, transformation, reportingTopics, loggingLogLevel, actingPrincipal);
}
Also used : Serializable(java.io.Serializable) Transformation(org.pentaho.di.engine.model.Transformation) Set(java.util.Set) HashSet(java.util.HashSet) HashMap(java.util.HashMap) LogLevel(org.pentaho.di.engine.api.reporting.LogLevel) Principal(java.security.Principal) HashSet(java.util.HashSet)

Aggregations

Serializable (java.io.Serializable)1 Principal (java.security.Principal)1 HashMap (java.util.HashMap)1 HashSet (java.util.HashSet)1 Set (java.util.Set)1 LogLevel (org.pentaho.di.engine.api.reporting.LogLevel)1 Transformation (org.pentaho.di.engine.model.Transformation)1