org.kie.kogito.examples.Rules471B42E068A21F8D5BEF529A54AE3B27 Maven / Gradle / Ivy
package org.kie.kogito.examples;
import org.drools.modelcompiler.dsl.pattern.D;
import org.drools.model.Index.ConstraintType;
import org.kie.kogito.examples.demo.Person;
public abstract class Rules471B42E068A21F8D5BEF529A54AE3B27 implements org.drools.model.Model {
public final static java.time.format.DateTimeFormatter DATE_TIME_FORMATTER = java.time.format.DateTimeFormatter.ofPattern(org.drools.core.util.DateUtils.getDateFormatMask(),
java.util.Locale.ENGLISH);
@Override
public String getName() {
return "org.kie.kogito.examples";
}
public static java.util.Date string_2_date(String s) {
return java.util.GregorianCalendar.from(java.time.LocalDate.parse(s,
DATE_TIME_FORMATTER).atStartOfDay(java.time.ZoneId.systemDefault()))
.getTime();
}
@Override
public java.util.List getEntryPoints() {
return java.util.Arrays.asList(D.entryPoint("persons"));
}
@Override
public java.util.List getGlobals() {
return globals;
}
@Override
public java.util.List getTypeMetaDatas() {
return typeMetaDatas;
}
public static final org.drools.model.Global var_persons = D.globalOf(org.kie.kogito.rules.DataStore.class,
"org.kie.kogito.examples",
"persons");
java.util.List globals = new java.util.ArrayList<>();
java.util.List typeMetaDatas = java.util.Collections.emptyList();
{
globals.add(var_persons);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy