10-09-2015 03:21 AM
…
<formProperty id="priority" name="уровень срочности:" required="false" type="enum" variable="priority" writable="false">
<value id="3" name="на заказ (от 2 недель)"/>
<value id="2" name="средний (до 2 недель)"/>
<value id="1" name="высокий ( от 1 до 3 дней)"/>
</formProperty>
…
"id": "priority",
"name": "уровень срочности:",
"type": "enum",
"expression": null,
"variable": "priority",
"enumValues": [{
"value": "на заказ (от 2 недель)"
}, {
"value": "средний (до 2 недель)"
}, {
"value": "высокий ( от 1 до 3 дней)"
}],
"required": false,
"readable": true,
"writable": false
…
if (CollectionUtils.isNotEmpty(property.getFormValues())) {
ArrayNode valuesNode = objectMapper.createArrayNode();
for (FormValue formValue : property.getFormValues()) {
ObjectNode valueNode = objectMapper.createObjectNode();
valueNode.put("value", formValue.getName());
valuesNode.add(valueNode);
}
propertyItemNode.put(PROPERTY_FORM_ENUM_VALUES, valuesNode);
}
…
FormValue formValue = new FormValue();
formValue.setId(enumNode.get("value").asText());
formValue.setName(enumNode.get("value").asText());
formValueList.add(formValue);
10-13-2015 06:39 AM
10-23-2015 03:26 AM
10-26-2015 04:59 AM
10-26-2015 08:27 AM
10-26-2015 09:37 AM
10-27-2015 02:44 AM
10-27-2015 03:19 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.