org.kie.dmn.validation.DMNv1x.Rules8D6A06B2CA38F0645C450A91AA760788RuleMethods8 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 Rules8D6A06B2CA38F0645C450A91AA760788RuleMethods8 {
/**
* Rule name: IMPORT_NAME_NOT_UNIQUE_WITH_DRG
*/
public static org.drools.model.Rule rule_IMPORT__NAME__NOT__UNIQUE__WITH__DRG() {
final org.drools.model.Variable var_$x = D.declarationOf(org.kie.dmn.model.api.Import.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_Import_Metadata_INSTANCE,
"$x");
final org.drools.model.Variable var_$y = D.declarationOf(org.kie.dmn.model.api.DRGElement.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_DRGElement_Metadata_INSTANCE,
"$y");
org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1x",
"IMPORT_NAME_NOT_UNIQUE_WITH_DRG")
.build(D.pattern(var_$x).expr("GENERATED_0F819BC417CE803049B6194B030260B1",
org.kie.dmn.validation.DMNv1x.PE1.LambdaPredicateE15862B4B1A28CF2119A462A4036FF4D.INSTANCE,
D.reactOn("parent")).watch("parent",
"name"),
D.pattern(var_$y).expr("GENERATED_98B314F366D3617BF20E78AC68BB859A",
var_$x,
org.kie.dmn.validation.DMNv1x.P03.LambdaPredicate0356941F5F4A5E32D8E174D1A20D891F.INSTANCE,
D.betaIndexedBy(java.lang.String.class,
org.drools.model.Index.ConstraintType.EQUAL,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_DRGElement_Metadata_INSTANCE.getPropertyIndex("name"),
org.kie.dmn.validation.DMNv1x.PDE.LambdaExtractorDED7600CDE1E1CB609E4BE2949F55EF0.INSTANCE,
org.kie.dmn.validation.DMNv1x.P24.LambdaExtractor2417A4EBADEDE464545F23B92EA5375C.INSTANCE,
java.lang.String.class),
D.reactOn("name")).expr("GENERATED_01BD058DE2C546258F267D69D7FF4047",
org.kie.dmn.validation.DMNv1x.P22.LambdaPredicate2278FDBA146B13158F88577ED9C5B410.INSTANCE,
D.reactOn("parent")).expr("GENERATED_AC62C4FA389833389907F4318A21B732",
var_$x,
org.kie.dmn.validation.DMNv1x.PC3.LambdaPredicateC3E0F141B514EE4C5D46C7A204E98444.INSTANCE,
D.betaIndexedBy(org.kie.dmn.model.api.DMNModelInstrumentedBase.class,
org.drools.model.Index.ConstraintType.EQUAL,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_DRGElement_Metadata_INSTANCE.getPropertyIndex("parent"),
org.kie.dmn.validation.DMNv1x.P2F.LambdaExtractor2FDD1B1C2740AFA2163D6361031BCFBE.INSTANCE,
org.kie.dmn.validation.DMNv1x.PFF.LambdaExtractorFF826574453D2F7E6F3D25B2E06DB229.INSTANCE,
org.kie.dmn.model.api.DMNModelInstrumentedBase.class),
D.reactOn("parent")),
D.on(var_$x,
var_reporter).execute(org.kie.dmn.validation.DMNv1x.P0B.LambdaConsequence0B3D25012D3F921E7A2FEFA6BAF25ABA.INSTANCE));
return rule;
}
/**
* Rule name: IMPORT_NAME_NOT_UNIQUE_WITH_ITEMDEF
*/
public static org.drools.model.Rule rule_IMPORT__NAME__NOT__UNIQUE__WITH__ITEMDEF() {
final org.drools.model.Variable var_$x = D.declarationOf(org.kie.dmn.model.api.Import.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_Import_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",
"IMPORT_NAME_NOT_UNIQUE_WITH_ITEMDEF")
.build(D.pattern(var_$x).expr("GENERATED_0F819BC417CE803049B6194B030260B1",
org.kie.dmn.validation.DMNv1x.PE1.LambdaPredicateE15862B4B1A28CF2119A462A4036FF4D.INSTANCE,
D.reactOn("parent")).watch("parent",
"name"),
D.pattern(var_$y).expr("GENERATED_96D6B701D7D32392C0ABC767574A73FF",
var_$x,
org.kie.dmn.validation.DMNv1x.PB1.LambdaPredicateB1C679092A96CF0EBDBAAFD8FD47EAC7.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.P24.LambdaExtractor2417A4EBADEDE464545F23B92EA5375C.INSTANCE,
java.lang.String.class),
D.reactOn("name")).expr("GENERATED_E2566F1BCA9666BA303B9485B1C15184",
org.kie.dmn.validation.DMNv1x.P83.LambdaPredicate8333F85F3ABFCB57E9B3E59938E33325.INSTANCE,
D.reactOn("parent")).expr("GENERATED_6CE18287E8D569A196D60581CBC764FB",
var_$x,
org.kie.dmn.validation.DMNv1x.P3C.LambdaPredicate3C41077AFFB56FF891B8A4859BF6F3ED.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.PFF.LambdaExtractorFF826574453D2F7E6F3D25B2E06DB229.INSTANCE,
org.kie.dmn.model.api.DMNModelInstrumentedBase.class),
D.reactOn("parent")),
D.on(var_$x,
var_reporter).execute(org.kie.dmn.validation.DMNv1x.P0B.LambdaConsequence0B3D25012D3F921E7A2FEFA6BAF25ABA.INSTANCE));
return rule;
}
/**
* Rule name: FORMAL_PARAM_DUPLICATED
*/
public static org.drools.model.Rule rule_FORMAL__PARAM__DUPLICATED() {
final org.drools.model.Variable var_$fp1 = D.declarationOf(org.kie.dmn.model.api.InformationItem.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_InformationItem_Metadata_INSTANCE,
"$fp1");
final org.drools.model.Variable var_$fp2 = D.declarationOf(org.kie.dmn.model.api.InformationItem.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_InformationItem_Metadata_INSTANCE,
"$fp2");
org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1x",
"FORMAL_PARAM_DUPLICATED")
.build(D.pattern(var_$fp1).expr("GENERATED_57E09905BBF71525CA24BD0F1C0C45C0",
org.kie.dmn.validation.DMNv1x.P2E.LambdaPredicate2E931668461086871A41515837B14408.INSTANCE,
D.reactOn("parent")).watch("parent",
"name"),
D.pattern(var_$fp2).expr("GENERATED_DDA6BBFFD7B8A8D566B989FF22ADE719",
var_$fp1,
org.kie.dmn.validation.DMNv1x.P23.LambdaPredicate239E9FB428C792CAE312D313D9453B16.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.PDA.LambdaExtractorDA15797900C523FFB1B478E8439F9D76.INSTANCE,
java.lang.String.class),
D.reactOn("name")).expr("GENERATED_E4A398BD5F0DEA78FF31A025B9459948",
var_$fp1,
org.kie.dmn.validation.DMNv1x.PDA.LambdaPredicateDAE3AA1C7F9D622A85B0094B67E018FF.INSTANCE,
D.betaIndexedBy(org.kie.dmn.model.api.DMNModelInstrumentedBase.class,
org.drools.model.Index.ConstraintType.EQUAL,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_InformationItem_Metadata_INSTANCE.getPropertyIndex("parent"),
org.kie.dmn.validation.DMNv1x.P8A.LambdaExtractor8A72BAD942E32F21C771903D33AE015B.INSTANCE,
org.kie.dmn.validation.DMNv1x.PEF.LambdaExtractorEF44A3B8999D138222601EF2CA6F9DDD.INSTANCE,
org.kie.dmn.model.api.DMNModelInstrumentedBase.class),
D.reactOn("parent")).expr("GENERATED_A4BE191ED4765FD956205656B2CA7AD1",
var_$fp1,
org.kie.dmn.validation.DMNv1x.P00.LambdaPredicate00A4E711FF9E14342A76878E3CF13989.INSTANCE,
D.betaIndexedBy(org.kie.dmn.model.api.InformationItem.class,
org.drools.model.Index.ConstraintType.NOT_EQUAL,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_InformationItem_Metadata_INSTANCE.getPropertyIndex("this"),
org.kie.dmn.validation.DMNv1x.PF8.LambdaExtractorF810AEE0A685DE9AC3405043A555DBEE.INSTANCE,
org.kie.dmn.validation.DMNv1x.P5F.LambdaExtractor5F1B06084B147408113F5E2F4F40B83F.INSTANCE,
org.kie.dmn.model.api.InformationItem.class)),
D.on(var_$fp1,
var_reporter).execute(org.kie.dmn.validation.DMNv1x.P66.LambdaConsequence66E51E3392DFC706B7C282E8A9636475.INSTANCE));
return rule;
}
/**
* Rule name: RELATION_DUP_COLUMN
*/
public static org.drools.model.Rule rule_RELATION__DUP__COLUMN() {
final org.drools.model.Variable var_$c1 = D.declarationOf(org.kie.dmn.model.api.InformationItem.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_InformationItem_Metadata_INSTANCE,
"$c1");
final org.drools.model.Variable var_$c2 = D.declarationOf(org.kie.dmn.model.api.InformationItem.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_InformationItem_Metadata_INSTANCE,
"$c2");
org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1x",
"RELATION_DUP_COLUMN")
.build(D.pattern(var_$c1).expr("GENERATED_BE7A898DACBA252D6D747F1AE6E98309",
org.kie.dmn.validation.DMNv1x.PC6.LambdaPredicateC67F1984E1D33BF6A1E48CEE3C5BFD14.INSTANCE,
D.reactOn("parent")).watch("parent",
"name"),
D.pattern(var_$c2).expr("GENERATED_DBFF8C13AFB66D1B6ACFB818AE0CCA7D",
var_$c1,
org.kie.dmn.validation.DMNv1x.P15.LambdaPredicate155152BDB45913169945B8ABFC2F8EB3.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.P63.LambdaExtractor63DE4A4C0688D9975642ED66D264776C.INSTANCE,
java.lang.String.class),
D.reactOn("name")).expr("GENERATED_CD158D63430AB1F2929C9FA2442B8CD5",
var_$c1,
org.kie.dmn.validation.DMNv1x.PCC.LambdaPredicateCCC46F34AE0D1A0158FCB258EDC5FEA1.INSTANCE,
D.betaIndexedBy(org.kie.dmn.model.api.DMNModelInstrumentedBase.class,
org.drools.model.Index.ConstraintType.EQUAL,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_InformationItem_Metadata_INSTANCE.getPropertyIndex("parent"),
org.kie.dmn.validation.DMNv1x.P8A.LambdaExtractor8A72BAD942E32F21C771903D33AE015B.INSTANCE,
org.kie.dmn.validation.DMNv1x.P9F.LambdaExtractor9F7BCD829D5D350EB16B7732CBB6EEC6.INSTANCE,
org.kie.dmn.model.api.DMNModelInstrumentedBase.class),
D.reactOn("parent")).expr("GENERATED_011AAFC1594D99BB88C770EA3C7B0E3B",
var_$c1,
org.kie.dmn.validation.DMNv1x.P09.LambdaPredicate092BFACA85F2FC329C70C9E34BB79B63.INSTANCE,
D.betaIndexedBy(org.kie.dmn.model.api.InformationItem.class,
org.drools.model.Index.ConstraintType.NOT_EQUAL,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_InformationItem_Metadata_INSTANCE.getPropertyIndex("this"),
org.kie.dmn.validation.DMNv1x.PF8.LambdaExtractorF810AEE0A685DE9AC3405043A555DBEE.INSTANCE,
org.kie.dmn.validation.DMNv1x.PA2.LambdaExtractorA2C100CBA500B8871F41A27D126CA669.INSTANCE,
org.kie.dmn.model.api.InformationItem.class)),
D.on(var_$c1,
var_reporter).execute(org.kie.dmn.validation.DMNv1x.PF3.LambdaConsequenceF348EE1D267D254C03E1805FEAD4843B.INSTANCE));
return rule;
}
/**
* Rule name: INVOCATION_MISSING_EXPRESSION
*/
public static org.drools.model.Rule rule_INVOCATION__MISSING__EXPRESSION() {
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");
org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1x",
"INVOCATION_MISSING_EXPRESSION")
.build(D.pattern(var_$inv).expr("GENERATED_9F7155F6F4880D70E24DB3688129CFC3",
org.kie.dmn.validation.DMNv1x.P22.LambdaPredicate2294D0F980610714641BD2E5410332B6.INSTANCE,
D.reactOn("expression")),
D.on(var_reporter,
var_$inv).execute(org.kie.dmn.validation.DMNv1x.PF4.LambdaConsequenceF468AD4A2914A47A2780D4900C52BBF3.INSTANCE));
return rule;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy