org.kie.dmn.validation.DMNv1x.Rules8D6A06B2CA38F0645C450A91AA760788RuleMethods1 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 Rules8D6A06B2CA38F0645C450A91AA760788RuleMethods1 {
/**
* Rule name: DTABLE_EMPTY_ENTRY
*/
public static org.drools.model.Rule rule_DTABLE__EMPTY__ENTRY() {
final org.drools.model.Variable var_$ie = D.declarationOf(org.kie.dmn.model.api.UnaryTests.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_UnaryTests_Metadata_INSTANCE,
"$ie");
final org.drools.model.Variable var_$dr = D.declarationOf(org.kie.dmn.model.api.DecisionRule.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_DecisionRule_Metadata_INSTANCE,
"$dr",
D.from(var_$ie,
org.kie.dmn.validation.DMNv1x.P16.LambdaExtractor1630EDC37115514B3739808D40FF8F0C.INSTANCE));
final org.drools.model.Variable var_$dt = D.declarationOf(org.kie.dmn.model.api.DecisionTable.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_DecisionTable_Metadata_INSTANCE,
"$dt",
D.from(var_$dr,
org.kie.dmn.validation.DMNv1x.P1D.LambdaExtractor1D43D9F58C9E0BF41D02359B505BBEEC.INSTANCE));
org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1x",
"DTABLE_EMPTY_ENTRY")
.build(D.pattern(var_$ie).expr("GENERATED_2F20387C2C9EA44BA0BDD1AC5C5050F3",
org.kie.dmn.validation.DMNv1x.P8D.LambdaPredicate8D9A1A787EFB585095313963D3A8886D.INSTANCE,
D.reactOn("text")).expr("GENERATED_55FA94B9DBDE36CEAE49C404B3C9DC81",
org.kie.dmn.validation.DMNv1x.P48.LambdaPredicate48D52762EC9728408A8D17478D7AAE71.INSTANCE,
D.reactOn("parent")),
D.pattern(var_$dr),
D.pattern(var_$dt),
D.on(var_$ie,
var_$dr,
var_$dt,
var_reporter).execute(org.kie.dmn.validation.DMNv1x.PA6.LambdaConsequenceA6AEED02720097E53FF78B6FA95AEC01.INSTANCE));
return rule;
}
/**
* Rule name: DTABLE_MULTIPLEOUTPUTCOLLECTOPERATOR
*/
public static org.drools.model.Rule rule_DTABLE__MULTIPLEOUTPUTCOLLECTOPERATOR() {
final org.drools.model.Variable var_$dt = D.declarationOf(org.kie.dmn.model.api.DecisionTable.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_DecisionTable_Metadata_INSTANCE,
"$dt");
org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1x",
"DTABLE_MULTIPLEOUTPUTCOLLECTOPERATOR")
.build(D.pattern(var_$dt).expr("GENERATED_A9C66FF8FDD079DC21F878098CB59239",
org.kie.dmn.validation.DMNv1x.PAA.LambdaPredicateAAB1A6AC29F28AC00A402447F03C1FBC.INSTANCE,
D.reactOn("hitPolicy")).expr("GENERATED_48CA0CB4FB22001185FF166BFBEE35ED",
org.kie.dmn.validation.DMNv1x.PD3.LambdaPredicateD313FC5D55BFEA8261C7353344EC1002.INSTANCE,
D.reactOn("aggregation")).expr("GENERATED_6F9CBCA3C0B49F3CF7A924F7CBE79C34",
org.kie.dmn.validation.DMNv1x.P96.LambdaPredicate9651A89844181D8E1B5ED68727DD427B.INSTANCE,
D.alphaIndexedBy(int.class,
org.drools.model.Index.ConstraintType.GREATER_THAN,
-1,
org.kie.dmn.validation.DMNv1x.PBF.LambdaExtractorBFDC1F338B228D9B76DCE2280905B535.INSTANCE,
1),
D.reactOn("output")),
D.on(var_$dt,
var_reporter).execute(org.kie.dmn.validation.DMNv1x.PCC.LambdaConsequenceCCB084B6016D7065CB1EB7C7E03C0EEC.INSTANCE));
return rule;
}
/**
* Rule name: BKM_MISSING_EXPR
*/
public static org.drools.model.Rule rule_BKM__MISSING__EXPR() {
final org.drools.model.Variable var_$d = D.declarationOf(org.kie.dmn.model.api.BusinessKnowledgeModel.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_BusinessKnowledgeModel_Metadata_INSTANCE,
"$d");
org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1x",
"BKM_MISSING_EXPR")
.build(D.pattern(var_$d).expr("GENERATED_4AC890BEF96CB1311CA1794964D3AA09",
org.kie.dmn.validation.DMNv1x.P9F.LambdaPredicate9F17B8321CD790D314457F374144B184.INSTANCE,
D.reactOn("encapsulatedLogic")),
D.on(var_$d,
var_reporter).execute(org.kie.dmn.validation.DMNv1x.PCD.LambdaConsequenceCD7272D970FC037B0AE3D5DA9AB3E1B7.INSTANCE));
return rule;
}
/**
* Rule name: BKM_MISSING_VAR
*/
public static org.drools.model.Rule rule_BKM__MISSING__VAR() {
final org.drools.model.Variable var_$d = D.declarationOf(org.kie.dmn.model.api.BusinessKnowledgeModel.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_BusinessKnowledgeModel_Metadata_INSTANCE,
"$d");
org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1x",
"BKM_MISSING_VAR")
.build(D.pattern(var_$d).expr("GENERATED_2E7E80E3C58A849D8D4B605D0F268B94",
org.kie.dmn.validation.DMNv1x.P51.LambdaPredicate5170C60DEB1451ADE88FCF9BD1CC690A.INSTANCE,
D.reactOn("variable")),
D.on(var_$d,
var_reporter).execute(org.kie.dmn.validation.DMNv1x.PA2.LambdaConsequenceA2286424101CE14DD02A716B746F8CFB.INSTANCE));
return rule;
}
/**
* Rule name: BKM_VAR_MISMATCH
*/
public static org.drools.model.Rule rule_BKM__VAR__MISMATCH() {
final org.drools.model.Variable var_$d = D.declarationOf(org.kie.dmn.model.api.BusinessKnowledgeModel.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_BusinessKnowledgeModel_Metadata_INSTANCE,
"$d");
org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1x",
"BKM_VAR_MISMATCH")
.build(D.pattern(var_$d).expr("GENERATED_23D6AEF0194288B83EF78D267D4C431F",
org.kie.dmn.validation.DMNv1x.PB5.LambdaPredicateB5B452B635402FDA2B44A5814782901A.INSTANCE,
D.reactOn("variable")).expr("GENERATED_D28479BFCB060AF7E788666DE6215E51",
org.kie.dmn.validation.DMNv1x.P8D.LambdaPredicate8DFB86E855881B601A9291C33192CBE3.INSTANCE,
D.reactOn("name",
"variable")),
D.on(var_$d,
var_reporter).execute(org.kie.dmn.validation.DMNv1x.P77.LambdaConsequence77A357EB2FE90F76FF416BCEBB253593.INSTANCE));
return rule;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy