in drools-benchmarks-parent/drools-benchmarks-common/src/main/java/org/drools/benchmarks/common/providers/dmn/DecisionTableDMNProvider.java [100:121]
private String getDecisionTableRules(final int index) {
final StringBuilder ruleBuilder = new StringBuilder();
ruleBuilder.append(" <rule id=\"rule" + index + "\">\n");
ruleBuilder.append(" <inputEntry id=\"inputEntry" + index + "-1\">\n");
ruleBuilder.append(" <text>>=" + index + "</text>\n");
ruleBuilder.append(" </inputEntry>\n");
ruleBuilder.append(" <inputEntry id=\"inputEntry" + index + "-2\">\n");
ruleBuilder.append(" <text>\"Medium\",\"Low\"</text>\n");
ruleBuilder.append(" </inputEntry>\n");
ruleBuilder.append(" <inputEntry id=\"inputEntry" + index + "-3\">\n");
ruleBuilder.append(" <text>true</text>\n");
ruleBuilder.append(" </inputEntry>\n");
ruleBuilder.append(" <outputEntry id=\"outputEntry" + index + "\">\n");
if (index % 3 == 0) {
ruleBuilder.append(" <text>\"Declined\"</text>");
} else {
ruleBuilder.append(" <text>\"Approved\"</text>");
}
ruleBuilder.append(" </outputEntry>\n");
ruleBuilder.append(" </rule>\n");
return ruleBuilder.toString();
}