@Override public String run(Task aConfiguration) throws Exception { TaskExecutionEngine engine = createEngine(aConfiguration); return engine.run(aConfiguration); }
@Override public String run(Task aConfiguration) throws Exception { TaskExecutionEngine engine = createEngine(aConfiguration); return engine.run(aConfiguration); }
engine.setContextFactory(new ScopedTaskContextFactory(execService .getContextFactory(), config, scope)); String uuid = engine.run(task); executedSubtasks.put(uuid, ""); scope.add(uuid);
/** * Execute the given task with the given task configuration. * * @param aContext * the context of the current batch task. * @param aTask * the the task whose task to be executed. * @param aConfig * the current parameter configuration. * @return the context meta data. */ private TaskContextMetadata runNewExecution(TaskContext aContext, Task aTask, Map<String, Object> aConfig, Set<String> aScope) throws ExecutionException, LifeCycleException { TaskExecutionService execService = aContext.getExecutionService(); TaskExecutionEngine engine = execService.createEngine(aTask); engine.setContextFactory(new ScopedTaskContextFactory(execService .getContextFactory(), aConfig, aScope)); String uuid = engine.run(aTask); return aContext.getStorageService().getContext(uuid); }