- public void execute(SlcExecution slcExecution) {
- applicationContext.publishEvent(new NewExecutionEvent(this,
- slcExecution));
+ public void execute(ExecutionFlowDescriptor executionFlowDescriptor) {
+ if (descriptorConverter != null)
+ executionContext.addVariables(descriptorConverter
+ .convertValues(executionFlowDescriptor));
+ ExecutionFlow flow = (ExecutionFlow) applicationContext.getBean(
+ executionFlowDescriptor.getName(), ExecutionFlow.class);
+ flow.execute();