org.kie.dmn.validation.DMNv1x.Rules8D6A06B2CA38F0645C450A91AA760788RuleMethods9 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 Rules8D6A06B2CA38F0645C450A91AA760788RuleMethods9 {
/**
* Rule name: INVOCATION_INCONSISTENT_PARAM_NAMES
*/
public static org.drools.model.Rule rule_INVOCATION__INCONSISTENT__PARAM__NAMES() {
final org.drools.model.Variable var_$inv = D.declarationOf(org.kie.dmn.model.api.Invocation.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_Invocation_Metadata_INSTANCE,
"$inv");
final org.drools.model.Variable var_$targetName = D.declarationOf(java.lang.String.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.java_lang_String_Metadata_INSTANCE,
"$targetName");
final org.drools.model.Variable var_$target = D.declarationOf(org.kie.dmn.model.api.BusinessKnowledgeModel.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_BusinessKnowledgeModel_Metadata_INSTANCE,
"$target");
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",
D.from(var_$inv,
org.kie.dmn.validation.DMNv1x.PD0.LambdaExtractorD02FA2456A0A2AC52A7AD9C9B9C7A374.INSTANCE));
final org.drools.model.Variable var_$s = D.declarationOf(java.lang.String.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.java_lang_String_Metadata_INSTANCE,
"$s");
final org.drools.model.Variable var_GENERATED_$pattern_InformationItem$59$ = D.declarationOf(org.kie.dmn.model.api.InformationItem.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_InformationItem_Metadata_INSTANCE,
"GENERATED_$pattern_InformationItem$59$",
D.from(var_$target,
org.kie.dmn.validation.DMNv1x.P2F.LambdaExtractor2F902793F03E8A9DAEEB53C3113D4E86.INSTANCE));
org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1x",
"INVOCATION_INCONSISTENT_PARAM_NAMES")
.build(D.pattern(var_$inv).expr("GENERATED_06D407F966D83559D49698EF50F74C28",
org.kie.dmn.validation.DMNv1x.P33.LambdaPredicate339953BF1C380E7AE5ADCC29F9526050.INSTANCE,
D.reactOn("expression")).bind(var_$targetName,
org.kie.dmn.validation.DMNv1x.P88.LambdaExtractor88224CA8C2FA05F4BA340C3CC5474DAB.INSTANCE),
D.pattern(var_$target).expr("GENERATED_8DCA100DBF880B2D30C84A2E17FF349D",
var_$targetName,
org.kie.dmn.validation.DMNv1x.P9A.LambdaPredicate9A8DBF2F201E181EB2616D19C81F6DF0.INSTANCE,
D.betaIndexedBy(java.lang.String.class,
org.drools.model.Index.ConstraintType.EQUAL,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_BusinessKnowledgeModel_Metadata_INSTANCE.getPropertyIndex("name"),
org.kie.dmn.validation.DMNv1x.PF9.LambdaExtractorF912124718C9B252CB034FB8C7910953.INSTANCE,
org.kie.dmn.validation.DMNv1x.P2C.LambdaExtractor2C7B54CE53FB906462869D5AC6B56B8F.INSTANCE,
java.lang.String.class),
D.reactOn("name")),
D.pattern(var_$b).bind(var_$s,
org.kie.dmn.validation.DMNv1x.P07.LambdaExtractor07796C255C72D8261AE6C6FC124129EA.INSTANCE),
D.not(D.pattern(var_GENERATED_$pattern_InformationItem$59$).expr("GENERATED_2F2BC11BCB2A8A838975979F2F9E24C2",
var_$s,
org.kie.dmn.validation.DMNv1x.P03.LambdaPredicate038255E7458646D7C8CC434F1FDAAD70.INSTANCE,
D.betaIndexedBy(java.lang.String.class,
org.drools.model.Index.ConstraintType.EQUAL,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_InformationItem_Metadata_INSTANCE.getPropertyIndex("name"),
org.kie.dmn.validation.DMNv1x.PA6.LambdaExtractorA6CA930E037DE6E44A8F015427B71361.INSTANCE,
org.kie.dmn.validation.DMNv1x.PD5.LambdaExtractorD56D0385107B888DED85189FDF715655.INSTANCE,
java.lang.String.class),
D.reactOn("name"))),
D.on(var_$targetName,
var_reporter,
var_$inv,
var_$b,
var_$s).execute(org.kie.dmn.validation.DMNv1x.PB3.LambdaConsequenceB31C97BAA6DEE28B81DD43FE580E370B.INSTANCE));
return rule;
}
/**
* Rule name: INVOCATION_WRONG_PARAM_COUNT
*/
public static org.drools.model.Rule rule_INVOCATION__WRONG__PARAM__COUNT() {
final org.drools.model.Variable var_$inv = D.declarationOf(org.kie.dmn.model.api.Invocation.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_Invocation_Metadata_INSTANCE,
"$inv");
final org.drools.model.Variable var_$targetName = D.declarationOf(java.lang.String.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.java_lang_String_Metadata_INSTANCE,
"$targetName");
final org.drools.model.Variable var_GENERATED_$pattern_BusinessKnowledgeModel$60$ = D.declarationOf(org.kie.dmn.model.api.BusinessKnowledgeModel.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_BusinessKnowledgeModel_Metadata_INSTANCE,
"GENERATED_$pattern_BusinessKnowledgeModel$60$");
org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1x",
"INVOCATION_WRONG_PARAM_COUNT")
.build(D.pattern(var_$inv).expr("GENERATED_06D407F966D83559D49698EF50F74C28",
org.kie.dmn.validation.DMNv1x.P33.LambdaPredicate339953BF1C380E7AE5ADCC29F9526050.INSTANCE,
D.reactOn("expression")).bind(var_$targetName,
org.kie.dmn.validation.DMNv1x.P88.LambdaExtractor88224CA8C2FA05F4BA340C3CC5474DAB.INSTANCE).watch("binding"),
D.pattern(var_GENERATED_$pattern_BusinessKnowledgeModel$60$).expr("GENERATED_8DCA100DBF880B2D30C84A2E17FF349D",
var_$targetName,
org.kie.dmn.validation.DMNv1x.P9A.LambdaPredicate9A8DBF2F201E181EB2616D19C81F6DF0.INSTANCE,
D.betaIndexedBy(java.lang.String.class,
org.drools.model.Index.ConstraintType.EQUAL,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_BusinessKnowledgeModel_Metadata_INSTANCE.getPropertyIndex("name"),
org.kie.dmn.validation.DMNv1x.PF9.LambdaExtractorF912124718C9B252CB034FB8C7910953.INSTANCE,
org.kie.dmn.validation.DMNv1x.P2C.LambdaExtractor2C7B54CE53FB906462869D5AC6B56B8F.INSTANCE,
java.lang.String.class),
D.reactOn("name")).expr("GENERATED_5571AF89833F5130FC0C6255E57959D2",
org.kie.dmn.validation.DMNv1x.PBE.LambdaPredicateBE078282B2B4AEC127EDB571196E5FC2.INSTANCE,
D.reactOn("encapsulatedLogic")).expr("GENERATED_E1DDA560D2278D01AA40D78AE9D38C83",
var_$inv,
org.kie.dmn.validation.DMNv1x.P8C.LambdaPredicate8C31BEEBA7640F9DDD551F521A107C10.INSTANCE,
D.reactOn("encapsulatedLogic")),
D.on(var_$targetName,
var_reporter,
var_$inv).execute(org.kie.dmn.validation.DMNv1x.P16.LambdaConsequence16942E56C57082AC852E5133FC621AB1.INSTANCE));
return rule;
}
/**
* Rule name: ITEMCOMP_DUPLICATED
*/
public static org.drools.model.Rule rule_ITEMCOMP__DUPLICATED() {
final org.drools.model.Variable var_$ic1 = D.declarationOf(org.kie.dmn.model.api.ItemDefinition.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_ItemDefinition_Metadata_INSTANCE,
"$ic1");
final org.drools.model.Variable var_$ic2 = D.declarationOf(org.kie.dmn.model.api.ItemDefinition.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_ItemDefinition_Metadata_INSTANCE,
"$ic2");
org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1x",
"ITEMCOMP_DUPLICATED")
.build(D.pattern(var_$ic1).expr("GENERATED_B6EF768F46F32AFFFE6BE93916DAD146",
org.kie.dmn.validation.DMNv1x.P5A.LambdaPredicate5A86148D984C5706E8640B04FF66FB31.INSTANCE,
D.reactOn("parent")).watch("parent",
"name"),
D.pattern(var_$ic2).expr("GENERATED_41B0CFE9687D929F3B821B74B8EC8F81",
var_$ic1,
org.kie.dmn.validation.DMNv1x.P31.LambdaPredicate313A95812840AB637E10002EE00F1C4D.INSTANCE,
D.betaIndexedBy(java.lang.String.class,
org.drools.model.Index.ConstraintType.EQUAL,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_ItemDefinition_Metadata_INSTANCE.getPropertyIndex("name"),
org.kie.dmn.validation.DMNv1x.P64.LambdaExtractor6436ACB36F81DA1822D0EAC6CC527114.INSTANCE,
org.kie.dmn.validation.DMNv1x.P52.LambdaExtractor523F9DD19BF7FC9E66BDB56963B1DCF4.INSTANCE,
java.lang.String.class),
D.reactOn("name")).expr("GENERATED_AD1DD56F6BEC47C68886212EEDED6B9D",
var_$ic1,
org.kie.dmn.validation.DMNv1x.P43.LambdaPredicate43699903D108D88C4F6F4CD1F2E144F1.INSTANCE,
D.betaIndexedBy(org.kie.dmn.model.api.DMNModelInstrumentedBase.class,
org.drools.model.Index.ConstraintType.EQUAL,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_ItemDefinition_Metadata_INSTANCE.getPropertyIndex("parent"),
org.kie.dmn.validation.DMNv1x.P96.LambdaExtractor961143AA262A205053770B85508DD274.INSTANCE,
org.kie.dmn.validation.DMNv1x.P67.LambdaExtractor671D9B460BB707689BABF5F3EA53FFDE.INSTANCE,
org.kie.dmn.model.api.DMNModelInstrumentedBase.class),
D.reactOn("parent")).expr("GENERATED_953EF72FB1487BECDBFB245941474AFE",
var_$ic1,
org.kie.dmn.validation.DMNv1x.PCB.LambdaPredicateCBD9CEC69EE2D2E19948A2104EBD0104.INSTANCE,
D.betaIndexedBy(org.kie.dmn.model.api.ItemDefinition.class,
org.drools.model.Index.ConstraintType.NOT_EQUAL,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_ItemDefinition_Metadata_INSTANCE.getPropertyIndex("this"),
org.kie.dmn.validation.DMNv1x.PA0.LambdaExtractorA0297B4CD48E8B43EF3E860DAA5B1BD9.INSTANCE,
org.kie.dmn.validation.DMNv1x.PD5.LambdaExtractorD504C36C0EFE6CD1B650FF84B8B72629.INSTANCE,
org.kie.dmn.model.api.ItemDefinition.class)),
D.on(var_$ic1,
var_reporter).execute(org.kie.dmn.validation.DMNv1x.P29.LambdaConsequence297E1AA16409EF62EE2B026EF031736D.INSTANCE));
return rule;
}
/**
* Rule name: ITEMDEF_NOT_UNIQUE
*/
public static org.drools.model.Rule rule_ITEMDEF__NOT__UNIQUE() {
final org.drools.model.Variable var_$x = D.declarationOf(org.kie.dmn.model.api.ItemDefinition.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_ItemDefinition_Metadata_INSTANCE,
"$x");
final org.drools.model.Variable var_$y = D.declarationOf(org.kie.dmn.model.api.ItemDefinition.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_ItemDefinition_Metadata_INSTANCE,
"$y");
org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1x",
"ITEMDEF_NOT_UNIQUE")
.build(D.pattern(var_$x).expr("GENERATED_E2566F1BCA9666BA303B9485B1C15184",
org.kie.dmn.validation.DMNv1x.P83.LambdaPredicate8333F85F3ABFCB57E9B3E59938E33325.INSTANCE,
D.reactOn("parent")).watch("parent",
"name"),
D.pattern(var_$y).expr("GENERATED_E2566F1BCA9666BA303B9485B1C15184",
org.kie.dmn.validation.DMNv1x.P83.LambdaPredicate8333F85F3ABFCB57E9B3E59938E33325.INSTANCE,
D.reactOn("parent")).expr("GENERATED_6CE18287E8D569A196D60581CBC764FB",
var_$x,
org.kie.dmn.validation.DMNv1x.P35.LambdaPredicate3532C6ACBD2F124CFFB65DF6333989DE.INSTANCE,
D.betaIndexedBy(org.kie.dmn.model.api.DMNModelInstrumentedBase.class,
org.drools.model.Index.ConstraintType.EQUAL,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_ItemDefinition_Metadata_INSTANCE.getPropertyIndex("parent"),
org.kie.dmn.validation.DMNv1x.P96.LambdaExtractor961143AA262A205053770B85508DD274.INSTANCE,
org.kie.dmn.validation.DMNv1x.P3E.LambdaExtractor3EB0ED37683992F080E84ABF67DAA747.INSTANCE,
org.kie.dmn.model.api.DMNModelInstrumentedBase.class),
D.reactOn("parent")).expr("GENERATED_96D6B701D7D32392C0ABC767574A73FF",
var_$x,
org.kie.dmn.validation.DMNv1x.P68.LambdaPredicate688D49C5901B4C0C537C66B670A2D67B.INSTANCE,
D.betaIndexedBy(java.lang.String.class,
org.drools.model.Index.ConstraintType.EQUAL,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_ItemDefinition_Metadata_INSTANCE.getPropertyIndex("name"),
org.kie.dmn.validation.DMNv1x.P64.LambdaExtractor6436ACB36F81DA1822D0EAC6CC527114.INSTANCE,
org.kie.dmn.validation.DMNv1x.P34.LambdaExtractor34A0391B58CFD84CAD4781E126EE018E.INSTANCE,
java.lang.String.class),
D.reactOn("name")).expr("GENERATED_ED0ED80E746B284119EAB959B19C8626",
var_$x,
org.kie.dmn.validation.DMNv1x.P5E.LambdaPredicate5EB4A594677A8338602A2EC7A514C048.INSTANCE,
D.betaIndexedBy(org.kie.dmn.model.api.ItemDefinition.class,
org.drools.model.Index.ConstraintType.NOT_EQUAL,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_ItemDefinition_Metadata_INSTANCE.getPropertyIndex("this"),
org.kie.dmn.validation.DMNv1x.PA0.LambdaExtractorA0297B4CD48E8B43EF3E860DAA5B1BD9.INSTANCE,
org.kie.dmn.validation.DMNv1x.PDA.LambdaExtractorDA5BC70FB0581236242390E750E0F3E8.INSTANCE,
org.kie.dmn.model.api.ItemDefinition.class)),
D.on(var_$x,
var_reporter).execute(org.kie.dmn.validation.DMNv1x.P5F.LambdaConsequence5F3472CDB0D931B096E9E065F01710A7.INSTANCE));
return rule;
}
/**
* Rule name: RELATION_ROW_CELL_NOT_LITERAL
*/
public static org.drools.model.Rule rule_RELATION__ROW__CELL__NOT__LITERAL() {
final org.drools.model.Variable var_$e = D.declarationOf(org.kie.dmn.model.api.Expression.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_Expression_Metadata_INSTANCE,
"$e");
org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1x",
"RELATION_ROW_CELL_NOT_LITERAL")
.build(D.pattern(var_$e).expr("GENERATED_B74428757931E28129FB7A2C9CF4CBEC",
org.kie.dmn.validation.DMNv1x.PA3.LambdaPredicateA30AE6EB3E97379834F66E50454C8863.INSTANCE,
D.reactOn("parent")).expr("GENERATED_B882974BA702DCD785DA9EB9DC4B1CC6",
org.kie.dmn.validation.DMNv1x.PA2.LambdaPredicateA2801269485AEF7FAEE70112F411559B.INSTANCE,
D.reactOn("parent")).expr("GENERATED_F9386ED36AFCEA7C96394A17D3584E47",
org.kie.dmn.validation.DMNv1x.P76.LambdaPredicate76173502E6BCAD6F0B76FE6354ACF833.INSTANCE),
D.on(var_$e,
var_reporter).execute(org.kie.dmn.validation.DMNv1x.P96.LambdaConsequence964EB47960A3E4FBB0F028FE53017F02.INSTANCE));
return rule;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy