private AttributeMap<Object> getFlowAttributes(Set<FlowElementAttribute> attributes) { MutableAttributeMap<Object> flowAttributes = null; if (flowBuilderServices.getDevelopment()) { flowAttributes = new LocalAttributeMap<>(1 + attributes.size(), 1); flowAttributes.put("development", true); } if (!attributes.isEmpty()) { if (flowAttributes == null) { flowAttributes = new LocalAttributeMap<>(attributes.size(), 1); } for (FlowElementAttribute attribute : attributes) { flowAttributes.put(attribute.getName(), getConvertedValue(attribute)); } } return flowAttributes; }
private MutableAttributeMap<Object> createFlowExecutionAttributes() { LocalAttributeMap<Object> executionAttributes = new LocalAttributeMap<>(); if (flowExecutionAttributes != null) { for (FlowElementAttribute attribute : flowExecutionAttributes) { executionAttributes.put(attribute.getName(), getConvertedValue(attribute)); } } putDefaultFlowExecutionAttributes(executionAttributes); return executionAttributes; }
private MutableAttributeMap createFlowExecutionAttributes() { LocalAttributeMap executionAttributes = new LocalAttributeMap(); if (flowExecutionAttributes != null) { for (Iterator it = flowExecutionAttributes.iterator(); it.hasNext();) { FlowElementAttribute attribute = (FlowElementAttribute) it.next(); executionAttributes.put(attribute.getName(), getConvertedValue(attribute)); } } putDefaultFlowExecutionAttributes(executionAttributes); return executionAttributes; }
private AttributeMap getFlowAttributes(Set attributes) { MutableAttributeMap flowAttributes = null; if (flowBuilderServices.getDevelopment()) { flowAttributes = new LocalAttributeMap(1 + attributes.size(), 1); flowAttributes.put("development", Boolean.TRUE); } if (!attributes.isEmpty()) { if (flowAttributes == null) { flowAttributes = new LocalAttributeMap(attributes.size(), 1); } for (Iterator it = attributes.iterator(); it.hasNext();) { FlowElementAttribute attribute = (FlowElementAttribute) it.next(); flowAttributes.put(attribute.getName(), getConvertedValue(attribute)); } } return flowAttributes; }
private MutableAttributeMap<Object> createFlowExecutionAttributes() { LocalAttributeMap<Object> executionAttributes = new LocalAttributeMap<>(); if (flowExecutionAttributes != null) { for (FlowElementAttribute attribute : flowExecutionAttributes) { executionAttributes.put(attribute.getName(), getConvertedValue(attribute)); } } putDefaultFlowExecutionAttributes(executionAttributes); return executionAttributes; }
private AttributeMap<Object> getFlowAttributes(Set<FlowElementAttribute> attributes) { MutableAttributeMap<Object> flowAttributes = null; if (flowBuilderServices.getDevelopment()) { flowAttributes = new LocalAttributeMap<>(1 + attributes.size(), 1); flowAttributes.put("development", true); } if (!attributes.isEmpty()) { if (flowAttributes == null) { flowAttributes = new LocalAttributeMap<>(attributes.size(), 1); } for (FlowElementAttribute attribute : attributes) { flowAttributes.put(attribute.getName(), getConvertedValue(attribute)); } } return flowAttributes; }