use of org.kie.workbench.common.dmn.api.definition.v1_1.List in project kie-wb-common by kiegroup.
the class ListPropertyConverter method dmnFromWB.
public static org.kie.dmn.model.v1_1.List dmnFromWB(final List wb) {
org.kie.dmn.model.v1_1.List result = new org.kie.dmn.model.v1_1.List();
result.setId(wb.getId().getValue());
result.setDescription(wb.getDescription().getValue());
QNamePropertyConverter.setDMNfromWB(wb.getTypeRef(), result::setTypeRef);
for (Expression e : wb.getExpression()) {
org.kie.dmn.model.v1_1.Expression eConverted = ExpressionPropertyConverter.dmnFromWB(e);
result.getExpression().add(eConverted);
}
return result;
}
Aggregations