org.kie.dmn.validation.DMNv1x.Rules8D6A06B2CA38F0645C450A91AA760788RuleMethods4 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 Rules8D6A06B2CA38F0645C450A91AA760788RuleMethods4 {
/**
* Rule name: AUTHREQ_DEP_REQ_AUTH_NOT_KNOWLEDGESOURCE
*/
public static org.drools.model.Rule rule_AUTHREQ__DEP__REQ__AUTH__NOT__KNOWLEDGESOURCE() {
final org.drools.model.Variable var_$authReq = D.declarationOf(org.kie.dmn.model.api.AuthorityRequirement.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_AuthorityRequirement_Metadata_INSTANCE,
"$authReq");
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$48$ = D.declarationOf(org.kie.dmn.model.api.DMNElement.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_DMNElement_Metadata_INSTANCE,
"GENERATED_$pattern_DMNElement$48$");
org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1x",
"AUTHREQ_DEP_REQ_AUTH_NOT_KNOWLEDGESOURCE")
.build(D.pattern(var_$authReq).expr("GENERATED_3618E9B12892A6B2A055D75C5CEE19D2",
org.kie.dmn.validation.DMNv1x.P55.LambdaPredicate55EE1B0EC5D8C85F7234003A15D370FC.INSTANCE,
D.reactOn("requiredAuthority")).bind(var_$elemRef,
org.kie.dmn.validation.DMNv1x.P65.LambdaExtractor657FFBE125F647AFD38B4C74FBB4E525.INSTANCE,
D.reactOn("requiredAuthority")).bind(var_$targetId,
org.kie.dmn.validation.DMNv1x.P66.LambdaExtractor66A7864DFBB6C27E0EAE7CBBEFDB82BB.INSTANCE,
D.reactOn("requiredAuthority")),
D.pattern(var_GENERATED_$pattern_DMNElement$48$).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")).expr("GENERATED_497437C52C27AE14AE8D29ACDCDBA89E",
org.kie.dmn.validation.DMNv1x.PC7.LambdaPredicateC744514D4C967599DB1780A46D69AE65.INSTANCE),
D.on(var_$authReq,
var_$targetId,
var_reporter,
var_$elemRef).execute(org.kie.dmn.validation.DMNv1x.PC0.LambdaConsequenceC0DAD0EF0220210F150FFC58FE369470.INSTANCE));
return rule;
}
/**
* Rule name: AUTHREQ_DEP_REQ_DEC_NOT_DECISION
*/
public static org.drools.model.Rule rule_AUTHREQ__DEP__REQ__DEC__NOT__DECISION() {
final org.drools.model.Variable var_$authReq = D.declarationOf(org.kie.dmn.model.api.AuthorityRequirement.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_AuthorityRequirement_Metadata_INSTANCE,
"$authReq");
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$49$ = D.declarationOf(org.kie.dmn.model.api.DMNElement.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_DMNElement_Metadata_INSTANCE,
"GENERATED_$pattern_DMNElement$49$");
org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1x",
"AUTHREQ_DEP_REQ_DEC_NOT_DECISION")
.build(D.pattern(var_$authReq).expr("GENERATED_DC49C869498B0D7E8D1048D77FFFE9C3",
org.kie.dmn.validation.DMNv1x.P94.LambdaPredicate94630D441851F8675DAE16DD5B5C0F13.INSTANCE,
D.reactOn("requiredDecision")).bind(var_$elemRef,
org.kie.dmn.validation.DMNv1x.PC0.LambdaExtractorC0E9EBAA7970D65500D30BFB508CDA2A.INSTANCE,
D.reactOn("requiredDecision")).bind(var_$targetId,
org.kie.dmn.validation.DMNv1x.P1C.LambdaExtractor1CC20864A88802E33F92490560435F17.INSTANCE,
D.reactOn("requiredDecision")),
D.pattern(var_GENERATED_$pattern_DMNElement$49$).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")).expr("GENERATED_F92F0AA9BAA9C787FEC1DCD95377596F",
org.kie.dmn.validation.DMNv1x.P63.LambdaPredicate63E412B85433202C34C6F62B25769CB4.INSTANCE),
D.on(var_$authReq,
var_$targetId,
var_reporter,
var_$elemRef).execute(org.kie.dmn.validation.DMNv1x.PC0.LambdaConsequenceC0DAD0EF0220210F150FFC58FE369470.INSTANCE));
return rule;
}
/**
* Rule name: AUTHREQ_DEP_REQ_INPUT_NOT_INPUT
*/
public static org.drools.model.Rule rule_AUTHREQ__DEP__REQ__INPUT__NOT__INPUT() {
final org.drools.model.Variable var_$authReq = D.declarationOf(org.kie.dmn.model.api.AuthorityRequirement.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_AuthorityRequirement_Metadata_INSTANCE,
"$authReq");
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$50$ = D.declarationOf(org.kie.dmn.model.api.DMNElement.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_DMNElement_Metadata_INSTANCE,
"GENERATED_$pattern_DMNElement$50$");
org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1x",
"AUTHREQ_DEP_REQ_INPUT_NOT_INPUT")
.build(D.pattern(var_$authReq).expr("GENERATED_FDF61B23CC91EF55B5D4710CC6F3BDB3",
org.kie.dmn.validation.DMNv1x.P22.LambdaPredicate22F08D9CEA0AF4FE039494F9600E5438.INSTANCE,
D.reactOn("requiredInput")).bind(var_$elemRef,
org.kie.dmn.validation.DMNv1x.P39.LambdaExtractor39CE4343584F025DC5460C4B3EADC48C.INSTANCE,
D.reactOn("requiredInput")).bind(var_$targetId,
org.kie.dmn.validation.DMNv1x.P71.LambdaExtractor718B43FC466B3C861055C8116BA7AFF4.INSTANCE,
D.reactOn("requiredInput")),
D.pattern(var_GENERATED_$pattern_DMNElement$50$).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")).expr("GENERATED_1DD39ABC1C60BF5264FC4B4A8193A1ED",
org.kie.dmn.validation.DMNv1x.P8E.LambdaPredicate8E80EBF1B0452D383208EDA68624B418.INSTANCE),
D.on(var_$authReq,
var_$targetId,
var_reporter,
var_$elemRef).execute(org.kie.dmn.validation.DMNv1x.PC0.LambdaConsequenceC0DAD0EF0220210F150FFC58FE369470.INSTANCE));
return rule;
}
/**
* Rule name: INPUT_MISSING_VAR
*/
public static org.drools.model.Rule rule_INPUT__MISSING__VAR() {
final org.drools.model.Variable var_$d = D.declarationOf(org.kie.dmn.model.api.InputData.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_InputData_Metadata_INSTANCE,
"$d");
org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1x",
"INPUT_MISSING_VAR")
.build(D.pattern(var_$d).expr("GENERATED_6EE149E68ED22732239C667036CE3068",
org.kie.dmn.validation.DMNv1x.PFA.LambdaPredicateFAED2DC0ADEC2CC32D6E9C5A82B8500A.INSTANCE,
D.reactOn("variable")),
D.on(var_$d,
var_reporter).execute(org.kie.dmn.validation.DMNv1x.P0F.LambdaConsequence0FE5E97DB863D61A8E7DBD60342CDDC1.INSTANCE));
return rule;
}
/**
* Rule name: INPUT_VAR_MISMATCH
*/
public static org.drools.model.Rule rule_INPUT__VAR__MISMATCH() {
final org.drools.model.Variable var_$d = D.declarationOf(org.kie.dmn.model.api.InputData.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_InputData_Metadata_INSTANCE,
"$d");
org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1x",
"INPUT_VAR_MISMATCH")
.build(D.pattern(var_$d).expr("GENERATED_D21209F36F4814EF7595E2A0DE1E1EBD",
org.kie.dmn.validation.DMNv1x.PF4.LambdaPredicateF413F0FEA6217C3A24F2AD2D4A278D42.INSTANCE,
D.reactOn("variable")).expr("GENERATED_1C6CD29DACF0679E497581812043BD8D",
org.kie.dmn.validation.DMNv1x.PE5.LambdaPredicateE51A1D02602137A58AACDABFD87C3EEC.INSTANCE,
D.reactOn("name",
"variable")),
D.on(var_$d,
var_reporter).execute(org.kie.dmn.validation.DMNv1x.PB9.LambdaConsequenceB9233BB6FF1BD64A6F02C671E31B3047.INSTANCE));
return rule;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy