org.kie.dmn.validation.DMNv1x.Rules8D6A06B2CA38F0645C450A91AA760788RuleMethods11 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 Rules8D6A06B2CA38F0645C450A91AA760788RuleMethods11 {
/**
* Rule name: ELEMREF_NOHASH_p2
*/
public static org.drools.model.Rule rule_ELEMREF__NOHASH__p2() {
final org.drools.model.Variable var_GENERATED_$pattern_Import$62$ = D.declarationOf(org.kie.dmn.model.api.Import.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_Import_Metadata_INSTANCE,
"GENERATED_$pattern_Import$62$");
final org.drools.model.Variable var_$oc = D.declarationOf(org.kie.dmn.model.api.DMNElementReference.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_DMNElementReference_Metadata_INSTANCE,
"$oc");
org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1x",
"ELEMREF_NOHASH_p2")
.build(D.not(D.pattern(var_GENERATED_$pattern_Import$62$)),
D.pattern(var_$oc).expr("GENERATED_0C6D14585F21E0964F26A59A5B277ABD",
org.kie.dmn.validation.DMNv1x.PAF.LambdaPredicateAF6BA5C1BB5A0B454ABE547965BD9395.INSTANCE,
D.reactOn("href")).expr("GENERATED_397C9195D4C41580D478D45B3D92DC3A",
org.kie.dmn.validation.DMNv1x.P95.LambdaPredicate959E2B035E860137D637AE28BFBF58F9.INSTANCE,
D.reactOn("href")),
D.on(var_$oc,
var_reporter).execute(org.kie.dmn.validation.DMNv1x.P36.LambdaConsequence36DD8C174851094EDD22802535301100.INSTANCE));
return rule;
}
/**
* Rule name: ELEMREF_MISSING_p1
*/
public static org.drools.model.Rule rule_ELEMREF__MISSING__p1() {
final org.drools.model.Variable var_$elemRef = D.declarationOf(org.kie.dmn.model.api.DMNElementReference.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_DMNElementReference_Metadata_INSTANCE,
"$elemRef");
final org.drools.model.Variable var_$targetId = D.declarationOf(java.lang.String.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.java_lang_String_Metadata_INSTANCE,
"$targetId");
final org.drools.model.Variable var_GENERATED_$pattern_DMNElement$63$ = D.declarationOf(org.kie.dmn.model.api.DMNElement.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_DMNElement_Metadata_INSTANCE,
"GENERATED_$pattern_DMNElement$63$");
org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1x",
"ELEMREF_MISSING_p1")
.build(D.pattern(var_$elemRef).expr("GENERATED_8CCA07F379F288AE2932E4931D4E5347",
org.kie.dmn.validation.DMNv1x.P83.LambdaPredicate8324DAE8CD068E2AD008BA55F561DAF5.INSTANCE,
D.reactOn("href")).bind(var_$targetId,
org.kie.dmn.validation.DMNv1x.P52.LambdaExtractor52FAA63886D9775B707F897991628259.INSTANCE,
D.reactOn("href")),
D.not(D.pattern(var_GENERATED_$pattern_DMNElement$63$).expr("GENERATED_4DAA314EC7EBD693DBA3EE6C517242E3",
var_$targetId,
org.kie.dmn.validation.DMNv1x.PD5.LambdaPredicateD5DD9AF48DBD6535EA46CB0A35D674B0.INSTANCE,
D.betaIndexedBy(java.lang.String.class,
org.drools.model.Index.ConstraintType.EQUAL,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_DMNElement_Metadata_INSTANCE.getPropertyIndex("id"),
org.kie.dmn.validation.DMNv1x.P0D.LambdaExtractor0D8063A04C207B794607BACF62A1CE5A.INSTANCE,
org.kie.dmn.validation.DMNv1x.PBE.LambdaExtractorBE160130D220211540DC9494CAF7F196.INSTANCE,
java.lang.String.class),
D.reactOn("id"))),
D.on(var_$targetId,
var_reporter,
var_$elemRef).execute(org.kie.dmn.validation.DMNv1x.PB2.LambdaConsequenceB236DFDF3E749373C069FBFC2655ADCA.INSTANCE));
return rule;
}
/**
* Rule name: ELEMREF_MISSING_p2
*/
public static org.drools.model.Rule rule_ELEMREF__MISSING__p2() {
final org.drools.model.Variable var_$elemRef = D.declarationOf(org.kie.dmn.model.api.DMNElementReference.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_DMNElementReference_Metadata_INSTANCE,
"$elemRef");
final org.drools.model.Variable var_$href = D.declarationOf(java.lang.String.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.java_lang_String_Metadata_INSTANCE,
"$href");
final org.drools.model.Variable var_$targetId = D.declarationOf(java.lang.String.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.java_lang_String_Metadata_INSTANCE,
"$targetId");
final org.drools.model.Variable var_$targetNS = D.declarationOf(java.lang.String.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.java_lang_String_Metadata_INSTANCE,
"$targetNS");
final org.drools.model.Variable var_GENERATED_$pattern_Import$64$ = D.declarationOf(org.kie.dmn.model.api.Import.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_Import_Metadata_INSTANCE,
"GENERATED_$pattern_Import$64$");
final org.drools.model.Variable var_$importedNS_1_sCoPe = D.declarationOf(java.lang.String.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.java_lang_String_Metadata_INSTANCE,
"$importedNS_1_sCoPe");
final org.drools.model.Variable var_$importDef_1_sCoPe = D.declarationOf(org.kie.dmn.model.api.Definitions.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_Definitions_Metadata_INSTANCE,
"$importDef_1_sCoPe",
D.entryPoint("DMNImports"));
final org.drools.model.Variable var_GENERATED_$pattern_DMNElement$65$ = D.declarationOf(org.kie.dmn.model.api.DMNElement.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_DMNElement_Metadata_INSTANCE,
"GENERATED_$pattern_DMNElement$65$",
D.from(var_$importDef_1_sCoPe,
org.kie.dmn.validation.DMNv1x.P80.LambdaExtractor80F9B30DBE97C55B3B42F8720B5B22E8.INSTANCE));
final org.drools.model.Variable var_$importedNS_2_sCoPe = D.declarationOf(java.lang.String.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.java_lang_String_Metadata_INSTANCE,
"$importedNS_2_sCoPe");
final org.drools.model.Variable var_$importDef_2_sCoPe = D.declarationOf(org.kie.dmn.model.api.Definitions.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_Definitions_Metadata_INSTANCE,
"$importDef_2_sCoPe",
D.entryPoint("DMNImports"));
final org.drools.model.Variable var_GENERATED_$pattern_DecisionService$67$ = D.declarationOf(org.kie.dmn.model.api.DecisionService.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_DecisionService_Metadata_INSTANCE,
"GENERATED_$pattern_DecisionService$67$",
D.from(var_$importDef_2_sCoPe,
org.kie.dmn.validation.DMNv1x.PEE.LambdaExtractorEEEBC4239E0B20018AA8BCCFFF784AE9.INSTANCE));
org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1x",
"ELEMREF_MISSING_p2")
.build(D.pattern(var_$elemRef).expr("GENERATED_85086920CAFE922F17B38B6717C879F6",
org.kie.dmn.validation.DMNv1x.P6E.LambdaPredicate6EDE41D5C86D621D4A9BD10D69D08DA2.INSTANCE,
D.reactOn("href")).bind(var_$href,
org.kie.dmn.validation.DMNv1x.PC5.LambdaExtractorC55E4268916F34BEA58E26793B9D5299.INSTANCE,
D.reactOn("href")).expr("GENERATED_8DC5A763DA7EEAAE265BA6281E331671",
org.kie.dmn.validation.DMNv1x.PD3.LambdaPredicateD32F0CD3E84F55586C953C31E636CB6C.INSTANCE,
D.reactOn("href")).bind(var_$targetId,
org.kie.dmn.validation.DMNv1x.P52.LambdaExtractor52FAA63886D9775B707F897991628259.INSTANCE,
D.reactOn("href")).bind(var_$targetNS,
org.kie.dmn.validation.DMNv1x.PF5.LambdaExtractorF5818FD5E7655A10505CCECFB4090063.INSTANCE,
D.reactOn("href")),
D.not(D.and(D.pattern(var_GENERATED_$pattern_Import$64$).bind(var_$importedNS_1_sCoPe,
org.kie.dmn.validation.DMNv1x.PCE.LambdaExtractorCE8B25BB208C3A63EC32234A75E2A9D1.INSTANCE,
D.reactOn("namespace")),
D.pattern(var_$importDef_1_sCoPe).expr("GENERATED_8BB04BD8A3A86ED7E44529930C05F938",
var_$importedNS_1_sCoPe,
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_6B8A42707D8AF7D2B9B39602363C5CBC",
var_$targetNS,
org.kie.dmn.validation.DMNv1x.P04.LambdaPredicate04ED31229F72989954DF886267464344.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.P7B.LambdaExtractor7B4FED17E38D885F5EDDF034C1182BA2.INSTANCE,
java.lang.String.class),
D.reactOn("namespace")),
D.pattern(var_GENERATED_$pattern_DMNElement$65$).expr("GENERATED_4DAA314EC7EBD693DBA3EE6C517242E3",
var_$targetId,
org.kie.dmn.validation.DMNv1x.PD5.LambdaPredicateD5DD9AF48DBD6535EA46CB0A35D674B0.INSTANCE,
D.betaIndexedBy(java.lang.String.class,
org.drools.model.Index.ConstraintType.EQUAL,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_DMNElement_Metadata_INSTANCE.getPropertyIndex("id"),
org.kie.dmn.validation.DMNv1x.P0D.LambdaExtractor0D8063A04C207B794607BACF62A1CE5A.INSTANCE,
org.kie.dmn.validation.DMNv1x.PBE.LambdaExtractorBE160130D220211540DC9494CAF7F196.INSTANCE,
java.lang.String.class),
D.reactOn("id")))),
D.not(D.and(D.pattern(var_GENERATED_$pattern_Import$64$).bind(var_$importedNS_2_sCoPe,
org.kie.dmn.validation.DMNv1x.PCE.LambdaExtractorCE8B25BB208C3A63EC32234A75E2A9D1.INSTANCE,
D.reactOn("namespace")),
D.pattern(var_$importDef_2_sCoPe).expr("GENERATED_8BB04BD8A3A86ED7E44529930C05F938",
var_$importedNS_2_sCoPe,
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_6B8A42707D8AF7D2B9B39602363C5CBC",
var_$targetNS,
org.kie.dmn.validation.DMNv1x.P04.LambdaPredicate04ED31229F72989954DF886267464344.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.P7B.LambdaExtractor7B4FED17E38D885F5EDDF034C1182BA2.INSTANCE,
java.lang.String.class),
D.reactOn("namespace")),
D.pattern(var_GENERATED_$pattern_DecisionService$67$).expr("GENERATED_E6D957581BADBAC23BEB833BCB542C1B",
var_$targetId,
org.kie.dmn.validation.DMNv1x.P14.LambdaPredicate14513636468105848B9FC9949D1F3594.INSTANCE,
D.betaIndexedBy(java.lang.String.class,
org.drools.model.Index.ConstraintType.EQUAL,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_DecisionService_Metadata_INSTANCE.getPropertyIndex("id"),
org.kie.dmn.validation.DMNv1x.PED.LambdaExtractorEDE714467379367648CBA19DFBEE58BA.INSTANCE,
org.kie.dmn.validation.DMNv1x.PBE.LambdaExtractorBE160130D220211540DC9494CAF7F196.INSTANCE,
java.lang.String.class),
D.reactOn("id")))),
D.on(var_$href,
var_reporter,
var_$elemRef).execute(org.kie.dmn.validation.DMNv1x.P9D.LambdaConsequence9DF249DDC5B6418EDCB48C5407375C2F.INSTANCE));
return rule;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy