use of org.drools.compiler.lang.dsl.DefaultDSLMapping in project drools by kiegroup.
the class DSLMappingEntryTest method makeExpander.
private DefaultExpander makeExpander(DSLMappingEntry... entries) {
DefaultExpander expander = new DefaultExpander();
DefaultDSLMapping mapping = new DefaultDSLMapping();
for (DSLMappingEntry entry : entries) {
mapping.addEntry(entry);
}
List<String> options = new ArrayList<String>();
options.add("result");
options.add("when");
options.add("steps");
mapping.setOptions(options);
expander.addDSLMapping(mapping);
return expander;
}
Aggregations