public final static String REF_VALUE_TYPE_BEAN_NAME = "beanName";
/** Workaround for https://www.spartadn.com/bugzilla/show_bug.cgi?id=206 */
- private final static String REF_VALUE_IS_FROZEN = "__frozen";
+ private final static String REF_VALUE_IS_FROZEN = "[internal]";
private final static Log log = LogFactory
.getLog(DefaultExecutionFlowDescriptorConverter.class);
ExecutionFlowDescriptor executionFlowDescriptor) {
Map<String, Object> values = executionFlowDescriptor.getValues();
Map<String, Object> convertedValues = new HashMap<String, Object>();
+ ExecutionSpec executionSpec = executionFlowDescriptor
+ .getExecutionSpec();
- if (values != null) {
+ if (executionSpec == null)
+ log.warn("Execution spec is null for " + executionFlowDescriptor);
+
+ if (values != null && executionSpec != null) {
values: for (String key : values.keySet()) {
- ExecutionSpecAttribute attribute = executionFlowDescriptor
- .getExecutionSpec().getAttributes().get(key);
+ ExecutionSpecAttribute attribute = executionSpec
+ .getAttributes().get(key);
if (attribute.getIsFrozen())
continue values;
Assert.notNull(executionSpec.getName());
Map<String, Object> values = new TreeMap<String, Object>();
- attrs: for (String key : executionSpec.getAttributes().keySet()) {
+ for (String key : executionSpec.getAttributes().keySet()) {
ExecutionSpecAttribute attribute = executionSpec
.getAttributes().get(key);
}
}
if (ref == null) {
- if (log.isTraceEnabled())
- log.warn("Cannot define reference for ref spec attribute "
+ log.warn("Cannot define reference for ref spec attribute "
+ + key + " in " + executionFlow + " (" + rsa + ")."
+ + " If it is an inner bean consider put it frozen.");
+ } else {
+ if (log.isDebugEnabled())
+ log.debug(ref + " is the reference for ref spec attribute "
+ key + " in " + executionFlow + " (" + rsa + ")");
- } else if (log.isDebugEnabled())
- log.debug(ref + " is the reference for ref spec attribute "
- + key + " in " + executionFlow + " (" + rsa + ")");
+ }
refValue.setRef(ref);
}
return refValue;