use of org.pentaho.di.engine.api.remote.ExecutionRequest in project pentaho-kettle by pentaho.
the class TransWebSocketEngineAdapter method prepareExecution.
@Override
public void prepareExecution(String[] arguments) throws KettleException {
activateParameters();
transMeta.activateParameters();
transMeta.setInternalKettleVariables();
Map<String, Object> env = Arrays.stream(transMeta.listVariables()).collect(toMap(Function.identity(), transMeta::getVariable));
this.executionRequest = new ExecutionRequest(new HashMap<>(), env, transformation, new HashMap<>(), logLevel, getActingPrincipal(transMeta));
setSteps(opsToSteps());
wireStatusToTransListeners();
subscribeToOpLogging();
subscribeToTransLogging();
setReadyToStart(true);
}
Aggregations