]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.support.simple/src/main/java/org/argeo/slc/core/execution/AbstractSpringExecutionModule.java
Runtime improvements
[gpl/argeo-slc.git] / runtime / org.argeo.slc.support.simple / src / main / java / org / argeo / slc / core / execution / AbstractSpringExecutionModule.java
index 51ca2f159f8c08db9d48b226620e86c21efbe380..1bbf16821539b2a8ec06bcfc234274ebded757e1 100644 (file)
@@ -72,6 +72,13 @@ public abstract class AbstractSpringExecutionModule implements ExecutionModule,
                                                                        + value.getClass().getName());
                                                }
                                                values.put(key, refValue);
+                                       } else if (attribute instanceof ResourceSpecAttribute) {
+                                               PrimitiveValue primitiveValue = new PrimitiveValue();
+                                               primitiveValue
+                                                               .setType(((ResourceSpecAttribute) attribute)
+                                                                               .getType());
+                                               primitiveValue.setValue(value);
+                                               values.put(key, primitiveValue);
                                        } else {
                                                throw new SlcException("Unkown spec attribute type "
                                                                + attribute.getClass());
@@ -102,7 +109,7 @@ public abstract class AbstractSpringExecutionModule implements ExecutionModule,
                                        .convertValues(executionFlowDescriptor));
                ExecutionFlow flow = (ExecutionFlow) applicationContext.getBean(
                                executionFlowDescriptor.getName(), ExecutionFlow.class);
-               flow.execute();
+               flow.run();
        }
 
        public void setApplicationContext(ApplicationContext applicationContext)