org.kie.dmn.validation.DMNv1x.Rules8D6A06B2CA38F0645C450A91AA760788RuleMethods6 Maven / Gradle / Ivy
The newest version!
package org.kie.dmn.validation.DMNv1x;
import org.drools.modelcompiler.dsl.pattern.D;
import org.drools.model.Index.ConstraintType;
import org.kie.dmn.model.api.*;
import org.kie.dmn.core.util.MsgUtil;
import org.kie.dmn.api.core.DMNMessage;
import org.kie.dmn.core.impl.DMNMessageImpl;
import org.kie.dmn.api.feel.runtime.events.FEELEvent;
import org.kie.dmn.feel.lang.types.BuiltInType;
import org.kie.dmn.feel.parser.feel11.FEELParser;
import org.kie.dmn.core.compiler.ImportDMNResolverUtil;
import org.kie.dmn.feel.runtime.events.SyntaxErrorEvent;
import org.kie.dmn.core.util.Msg;
import org.kie.dmn.validation.ValidatorUtil;
import static org.kie.dmn.validation.ValidatorUtil.getRootItemDef;
import static org.kie.dmn.validation.ValidatorUtil.rightOfHash;
import static org.kie.dmn.validation.ValidatorUtil.nameOrIDOfTable;
import static org.kie.dmn.validation.ValidatorUtil.leftOfHash;
import static org.kie.dmn.validation.DMNv1x.Rules8D6A06B2CA38F0645C450A91AA760788.*;
import static org.kie.dmn.validation.DMNv1x.Rules8D6A06B2CA38F0645C450A91AA760788.*;
public class Rules8D6A06B2CA38F0645C450A91AA760788RuleMethods6 {
/**
* Rule name: MISSING_IMPORT_p1
*/
public static org.drools.model.Rule rule_MISSING__IMPORT__p1() {
final org.drools.model.Variable var_$elemRef = D.declarationOf(org.kie.dmn.model.api.Import.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_Import_Metadata_INSTANCE,
"$elemRef");
final org.drools.model.Variable var_$importedNS = D.declarationOf(java.lang.String.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.java_lang_String_Metadata_INSTANCE,
"$importedNS");
final org.drools.model.Variable var_GENERATED_$pattern_Definitions$57$ = D.declarationOf(org.kie.dmn.model.api.Definitions.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_Definitions_Metadata_INSTANCE,
"GENERATED_$pattern_Definitions$57$",
D.entryPoint("DMNImports"));
org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1x",
"MISSING_IMPORT_p1")
.build(D.pattern(var_$elemRef).expr("GENERATED_2EBF0A4D1548A2C2595AC00B7D0FEBAD",
org.kie.dmn.validation.DMNv1x.PD9.LambdaPredicateD91F35B210553E709176F74D02C15F47.INSTANCE).bind(var_$importedNS,
org.kie.dmn.validation.DMNv1x.PCE.LambdaExtractorCE8B25BB208C3A63EC32234A75E2A9D1.INSTANCE,
D.reactOn("namespace")).expr("GENERATED_1E8CE93E892298E45F765714877244D2",
org.kie.dmn.validation.DMNv1x.P8C.LambdaPredicate8C78C53E29AD6136CF4B227879FA4F79.INSTANCE,
D.reactOn("additionalAttributes")),
D.not(D.pattern(var_GENERATED_$pattern_Definitions$57$).expr("GENERATED_8BB04BD8A3A86ED7E44529930C05F938",
var_$importedNS,
org.kie.dmn.validation.DMNv1x.P59.LambdaPredicate59415FF5031DA15387EACB22E1CEF159.INSTANCE,
D.betaIndexedBy(java.lang.String.class,
org.drools.model.Index.ConstraintType.EQUAL,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_Definitions_Metadata_INSTANCE.getPropertyIndex("namespace"),
org.kie.dmn.validation.DMNv1x.P0D.LambdaExtractor0DBA440382E4BDACB82236070415A312.INSTANCE,
org.kie.dmn.validation.DMNv1x.P87.LambdaExtractor87EBA8347C8EC0CC6E94EE483CA661AC.INSTANCE,
java.lang.String.class),
D.reactOn("namespace"))),
D.on(var_$importedNS,
var_reporter,
var_$elemRef).execute(org.kie.dmn.validation.DMNv1x.P82.LambdaConsequence82430A4F3416C68CEDAB1A43D3C7313A.INSTANCE));
return rule;
}
/**
* Rule name: MISSING_IMPORT_p2
*/
public static org.drools.model.Rule rule_MISSING__IMPORT__p2() {
final org.drools.model.Variable var_$elemRef = D.declarationOf(org.kie.dmn.model.api.Import.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_Import_Metadata_INSTANCE,
"$elemRef");
final org.drools.model.Variable var_$importedNS = D.declarationOf(java.lang.String.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.java_lang_String_Metadata_INSTANCE,
"$importedNS");
final org.drools.model.Variable var_$importedName = D.declarationOf(java.lang.String.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.java_lang_String_Metadata_INSTANCE,
"$importedName");
final org.drools.model.Variable var_GENERATED_$pattern_Definitions$58$ = D.declarationOf(org.kie.dmn.model.api.Definitions.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_Definitions_Metadata_INSTANCE,
"GENERATED_$pattern_Definitions$58$",
D.entryPoint("DMNImports"));
org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1x",
"MISSING_IMPORT_p2")
.build(D.pattern(var_$elemRef).expr("GENERATED_2EBF0A4D1548A2C2595AC00B7D0FEBAD",
org.kie.dmn.validation.DMNv1x.PD9.LambdaPredicateD91F35B210553E709176F74D02C15F47.INSTANCE).bind(var_$importedNS,
org.kie.dmn.validation.DMNv1x.PCE.LambdaExtractorCE8B25BB208C3A63EC32234A75E2A9D1.INSTANCE,
D.reactOn("namespace")).expr("GENERATED_6A2379AB9EAA46A6372357EC8F43E86E",
org.kie.dmn.validation.DMNv1x.PCD.LambdaPredicateCDD54E9EE384A8232F9D1324B454DE57.INSTANCE,
D.reactOn("additionalAttributes")).bind(var_$importedName,
org.kie.dmn.validation.DMNv1x.P5B.LambdaExtractor5B46C5798A7F0B1F2F7693C84CBC566C.INSTANCE,
D.reactOn("additionalAttributes")),
D.not(D.pattern(var_GENERATED_$pattern_Definitions$58$).expr("GENERATED_8BB04BD8A3A86ED7E44529930C05F938",
var_$importedNS,
org.kie.dmn.validation.DMNv1x.P59.LambdaPredicate59415FF5031DA15387EACB22E1CEF159.INSTANCE,
D.betaIndexedBy(java.lang.String.class,
org.drools.model.Index.ConstraintType.EQUAL,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_Definitions_Metadata_INSTANCE.getPropertyIndex("namespace"),
org.kie.dmn.validation.DMNv1x.P0D.LambdaExtractor0DBA440382E4BDACB82236070415A312.INSTANCE,
org.kie.dmn.validation.DMNv1x.P87.LambdaExtractor87EBA8347C8EC0CC6E94EE483CA661AC.INSTANCE,
java.lang.String.class),
D.reactOn("namespace")).expr("GENERATED_7566CA32D955E268100879FE077E5E6C",
var_$importedName,
org.kie.dmn.validation.DMNv1x.P1A.LambdaPredicate1A90250407CA07F3118EB9B2E1D0D0A2.INSTANCE,
D.betaIndexedBy(java.lang.String.class,
org.drools.model.Index.ConstraintType.EQUAL,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_Definitions_Metadata_INSTANCE.getPropertyIndex("name"),
org.kie.dmn.validation.DMNv1x.P9B.LambdaExtractor9B0A50E145B73101CEF9080FBA3F20F4.INSTANCE,
org.kie.dmn.validation.DMNv1x.PDD.LambdaExtractorDDCD0A0FF129580AF13759AC95AFF168.INSTANCE,
java.lang.String.class),
D.reactOn("name"))),
D.on(var_$importedNS,
var_reporter,
var_$importedName,
var_$elemRef).execute(org.kie.dmn.validation.DMNv1x.PA8.LambdaConsequenceA804E1B01AF90171FB6C8CA1E20733B4.INSTANCE));
return rule;
}
/**
* Rule name: INVOCATION_MISSING_EXPR
*/
public static org.drools.model.Rule rule_INVOCATION__MISSING__EXPR() {
final org.drools.model.Variable var_$b = D.declarationOf(org.kie.dmn.model.api.Binding.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_Binding_Metadata_INSTANCE,
"$b");
org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1x",
"INVOCATION_MISSING_EXPR")
.build(D.pattern(var_$b).expr("GENERATED_B1EB3D3BAF2C4D3F60EF912823D15033",
org.kie.dmn.validation.DMNv1x.P00.LambdaPredicate0022F6B79473EB98361A4C35A3E1AD9E.INSTANCE,
D.reactOn("expression")),
D.on(var_reporter,
var_$b).execute(org.kie.dmn.validation.DMNv1x.PBC.LambdaConsequenceBC20954E011BC1E08C8A4BFBCC89E945.INSTANCE));
return rule;
}
/**
* Rule name: NAME_EMPTY
*/
public static org.drools.model.Rule rule_NAME__EMPTY() {
final org.drools.model.Variable var_$ne = D.declarationOf(org.kie.dmn.model.api.NamedElement.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_NamedElement_Metadata_INSTANCE,
"$ne");
org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1x",
"NAME_EMPTY")
.build(D.pattern(var_$ne).expr("GENERATED_0FC83579A68DDBCB8C848D7A630D40E6",
org.kie.dmn.validation.DMNv1x.P2E.LambdaPredicate2E1CD815889428C23A8B8E19E4A691CC.INSTANCE).expr("GENERATED_BD80574AF890E83FE668B0934757A984",
org.kie.dmn.validation.DMNv1x.P96.LambdaPredicate96B08F1B546359DDC7F2AF3AD3BCF955.INSTANCE),
D.on(var_reporter,
var_$ne).execute(org.kie.dmn.validation.DMNv1x.P85.LambdaConsequence856084E1981C39517C05F16C3573C128.INSTANCE));
return rule;
}
/**
* Rule name: NAME_INVALID
*/
public static org.drools.model.Rule rule_NAME__INVALID() {
final org.drools.model.Variable var_$ne = D.declarationOf(org.kie.dmn.model.api.NamedElement.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_NamedElement_Metadata_INSTANCE,
"$ne");
org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1x",
"NAME_INVALID")
.build(D.pattern(var_$ne).expr("GENERATED_45C832C02099E3480EE3A54B6F6B36D7",
org.kie.dmn.validation.DMNv1x.P08.LambdaPredicate0846AE6DAE87799160A8340CDEBF6F7C.INSTANCE,
D.reactOn("parent")).expr("GENERATED_4F48E443F5606F68F3052853794C1155",
org.kie.dmn.validation.DMNv1x.P22.LambdaPredicate222880A618AD21B3A4D5C8842AE70C05.INSTANCE,
D.reactOn("parent",
"name")).expr("GENERATED_C09D9512A21C67C8C562C3B08E25A273",
org.kie.dmn.validation.DMNv1x.P2A.LambdaPredicate2A88CC3BEA7CF5830E5F2DBAED667C65.INSTANCE),
D.on(var_reporter,
var_$ne).execute(org.kie.dmn.validation.DMNv1x.P42.LambdaConsequence426590F80D8F6592C19DD3182CC51347.INSTANCE));
return rule;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy