use of org.kie.workbench.common.dmn.api.definition.v1_1.Binding in project kie-wb-common by kiegroup.
the class InvocationPropertyConverter method dmnFromWB.
public static org.kie.dmn.model.v1_1.Invocation dmnFromWB(final Invocation wb) {
if (wb == null) {
return null;
}
org.kie.dmn.model.v1_1.Invocation result = new org.kie.dmn.model.v1_1.Invocation();
result.setId(wb.getId().getValue());
result.setDescription(DescriptionPropertyConverter.dmnFromWB(wb.getDescription()));
QNamePropertyConverter.setDMNfromWB(wb.getTypeRef(), result::setTypeRef);
org.kie.dmn.model.v1_1.Expression convertedExpression = ExpressionPropertyConverter.dmnFromWB(wb.getExpression());
result.setExpression(convertedExpression);
for (Binding b : wb.getBinding()) {
org.kie.dmn.model.v1_1.Binding bConverted = BindingPropertyConverter.dmnFromWB(b);
result.getBinding().add(bConverted);
}
return result;
}
use of org.kie.workbench.common.dmn.api.definition.v1_1.Binding in project kie-wb-common by kiegroup.
the class InvocationPropertyConverter method wbFromDMN.
public static Invocation wbFromDMN(final org.kie.dmn.model.v1_1.Invocation dmn) {
if (dmn == null) {
return null;
}
Id id = new Id(dmn.getId());
Description description = DescriptionPropertyConverter.wbFromDMN(dmn.getDescription());
QName typeRef = QNamePropertyConverter.wbFromDMN(dmn.getTypeRef());
Invocation result = new Invocation();
result.setId(id);
result.setDescription(description);
result.setTypeRef(typeRef);
Expression convertedExpression = ExpressionPropertyConverter.wbFromDMN(dmn.getExpression());
result.setExpression(convertedExpression);
for (org.kie.dmn.model.v1_1.Binding b : dmn.getBinding()) {
Binding bConverted = BindingPropertyConverter.wbFromDMN(b);
result.getBinding().add(bConverted);
}
return result;
}
Aggregations