Search in sources :

Example 1 with ExecutionRequest

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);
}
Also used : HashMap(java.util.HashMap) ExecutionRequest(org.pentaho.di.engine.api.remote.ExecutionRequest)

Aggregations

HashMap (java.util.HashMap)1 ExecutionRequest (org.pentaho.di.engine.api.remote.ExecutionRequest)1