org.kie.dmn.validation.DMNv1x.Rules8D6A06B2CA38F0645C450A91AA760788RuleMethods2 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 Rules8D6A06B2CA38F0645C450A91AA760788RuleMethods2 {
/**
* Rule name: DECISION_MISSING_EXPR
*/
public static org.drools.model.Rule rule_DECISION__MISSING__EXPR() {
final org.drools.model.Variable var_$d = D.declarationOf(org.kie.dmn.model.api.Decision.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_Decision_Metadata_INSTANCE,
"$d");
org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1x",
"DECISION_MISSING_EXPR")
.build(D.pattern(var_$d).expr("GENERATED_8E68DA8B7043D0599C6774E549650534",
org.kie.dmn.validation.DMNv1x.P6C.LambdaPredicate6C5261A1F395A2D9FC227595A0FD4706.INSTANCE,
D.reactOn("expression")),
D.on(var_$d,
var_reporter).execute(org.kie.dmn.validation.DMNv1x.P8C.LambdaConsequence8C97C105AEC9ED4DC7D3E309F291504A.INSTANCE));
return rule;
}
/**
* Rule name: DECISION_MISSING_VAR
*/
public static org.drools.model.Rule rule_DECISION__MISSING__VAR() {
final org.drools.model.Variable var_$d = D.declarationOf(org.kie.dmn.model.api.Decision.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_Decision_Metadata_INSTANCE,
"$d");
org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1x",
"DECISION_MISSING_VAR")
.build(D.pattern(var_$d).expr("GENERATED_E71218E652F19A0E04D4C9B541A890ED",
org.kie.dmn.validation.DMNv1x.P90.LambdaPredicate900AD48A9350CE471B1F17E1FD34EDBC.INSTANCE,
D.reactOn("variable")),
D.on(var_$d,
var_reporter).execute(org.kie.dmn.validation.DMNv1x.PA8.LambdaConsequenceA8AD0C70EAE61B1141A3257A88A1F848.INSTANCE));
return rule;
}
/**
* Rule name: DECISION_VAR_MISMATCH
*/
public static org.drools.model.Rule rule_DECISION__VAR__MISMATCH() {
final org.drools.model.Variable var_$d = D.declarationOf(org.kie.dmn.model.api.Decision.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_Decision_Metadata_INSTANCE,
"$d");
org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1x",
"DECISION_VAR_MISMATCH")
.build(D.pattern(var_$d).expr("GENERATED_D3CE9069E3DE7C756C4F0131EF577E08",
org.kie.dmn.validation.DMNv1x.P16.LambdaPredicate1655147EB4B48B5CE7894E1468EC1155.INSTANCE,
D.reactOn("variable")).expr("GENERATED_D1F0CA2B7C5867F49DB2E1788CBE7116",
org.kie.dmn.validation.DMNv1x.P77.LambdaPredicate77508AD2597A02A30A81FBE692DE4E1B.INSTANCE,
D.reactOn("name",
"variable")),
D.on(var_$d,
var_reporter).execute(org.kie.dmn.validation.DMNv1x.P6D.LambdaConsequence6D8F9EAB8C92B8BA3FC91590400E0DA5.INSTANCE));
return rule;
}
/**
* Rule name: DECISION_PERF_INDICATOR_WRONG_TYPE
*/
public static org.drools.model.Rule rule_DECISION__PERF__INDICATOR__WRONG__TYPE() {
final org.drools.model.Variable var_$d = D.declarationOf(org.kie.dmn.model.api.Decision.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_Decision_Metadata_INSTANCE,
"$d");
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",
D.reactiveFrom(var_$d,
org.kie.dmn.validation.DMNv1x.P88.LambdaExtractor8893C90734246C1F9B83A2F9AA5B8B98.INSTANCE));
final org.drools.model.Variable var_$element = D.declarationOf(org.kie.dmn.model.api.DMNElement.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_DMNElement_Metadata_INSTANCE,
"$element");
org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1x",
"DECISION_PERF_INDICATOR_WRONG_TYPE")
.build(D.pattern(var_$d),
D.pattern(var_$elemRef),
D.pattern(var_$element).expr("GENERATED_D0E504FF35A21EB89B9DA2334A730A81",
var_$elemRef,
org.kie.dmn.validation.DMNv1x.P00.LambdaPredicate0056DAD7E5BDE34957F993B3A7DCBB15.INSTANCE,
D.reactOn("id")).expr("GENERATED_38A5B9E427B04DBFE9C0BB5E20A49A4D",
org.kie.dmn.validation.DMNv1x.P66.LambdaPredicate66FBE599311D818F8FE1142B5337C117.INSTANCE),
D.on(var_$d,
var_$element,
var_reporter,
var_$elemRef).execute(org.kie.dmn.validation.DMNv1x.P96.LambdaConsequence969DD4FC3794FBD6D1F15EA0AC6392EE.INSTANCE));
return rule;
}
/**
* Rule name: DECISION_DECISION_MAKER_WRONG_TYPE
*/
public static org.drools.model.Rule rule_DECISION__DECISION__MAKER__WRONG__TYPE() {
final org.drools.model.Variable var_$d = D.declarationOf(org.kie.dmn.model.api.Decision.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_Decision_Metadata_INSTANCE,
"$d");
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",
D.reactiveFrom(var_$d,
org.kie.dmn.validation.DMNv1x.P9A.LambdaExtractor9AC9883D07344224C4AB230F14336E49.INSTANCE));
final org.drools.model.Variable var_$element = D.declarationOf(org.kie.dmn.model.api.DMNElement.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_DMNElement_Metadata_INSTANCE,
"$element");
org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1x",
"DECISION_DECISION_MAKER_WRONG_TYPE")
.build(D.pattern(var_$d),
D.pattern(var_$elemRef),
D.pattern(var_$element).expr("GENERATED_D0E504FF35A21EB89B9DA2334A730A81",
var_$elemRef,
org.kie.dmn.validation.DMNv1x.P00.LambdaPredicate0056DAD7E5BDE34957F993B3A7DCBB15.INSTANCE,
D.reactOn("id")).expr("GENERATED_9185BF162BD655C2F71CAD82D25C25B3",
org.kie.dmn.validation.DMNv1x.P74.LambdaPredicate74ACE96D2A366EEE83CC35D0F8634BE7.INSTANCE),
D.on(var_$d,
var_$element,
var_reporter,
var_$elemRef).execute(org.kie.dmn.validation.DMNv1x.P96.LambdaConsequence969DD4FC3794FBD6D1F15EA0AC6392EE.INSTANCE));
return rule;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy