org.kie.dmn.validation.DMNv1_2.Rules7676380D94DD33A71773908D7D47354BRuleMethods0 Maven / Gradle / Ivy
The newest version!
package org.kie.dmn.validation.DMNv1_2;
import org.drools.modelcompiler.dsl.pattern.D;
import org.drools.model.Index.ConstraintType;
import org.kie.dmn.core.util.MsgUtil;
import org.kie.dmn.core.impl.DMNMessageImpl;
import org.kie.dmn.api.core.DMNMessage;
import org.kie.dmn.feel.parser.feel11.FEELParser;
import org.kie.dmn.feel.lang.types.BuiltInType;
import org.kie.dmn.core.compiler.ImportDMNResolverUtil;
import org.kie.dmn.model.api.dmndi.*;
import org.kie.dmn.model.api.*;
import org.kie.dmn.api.feel.runtime.events.FEELEvent;
import org.kie.dmn.core.util.Msg;
import org.kie.dmn.feel.runtime.events.SyntaxErrorEvent;
import javax.xml.XMLConstants;
import static java.util.Collections.emptyMap;
import static org.kie.dmn.core.util.NamespaceUtil.getNamespaceAndName;
import static org.kie.dmn.validation.ValidatorUtil.rightOfHash;
import static org.kie.dmn.validation.ValidatorUtil.doesDefinitionsContainIdForDMNEdge;
import static org.kie.dmn.validation.DMNv1_2.Rules7676380D94DD33A71773908D7D47354B.*;
import static org.kie.dmn.validation.DMNv1_2.Rules7676380D94DD33A71773908D7D47354B.*;
public class Rules7676380D94DD33A71773908D7D47354BRuleMethods0 {
/**
* Rule name: DRGELEMENT_MISSING_DMNSHAPE
*/
public static org.drools.model.Rule rule_DRGELEMENT__MISSING__DMNSHAPE() {
final org.drools.model.Variable var_GENERATED_$pattern_DMNDI$1$ = D.declarationOf(org.kie.dmn.model.api.dmndi.DMNDI.class,
DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_dmndi_DMNDI_Metadata_INSTANCE,
"GENERATED_$pattern_DMNDI$1$");
final org.drools.model.Variable var_$element = D.declarationOf(org.kie.dmn.model.api.DRGElement.class,
DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_DRGElement_Metadata_INSTANCE,
"$element");
final org.drools.model.Variable var_GENERATED_$pattern_DMNShape$2$ = D.declarationOf(org.kie.dmn.model.api.dmndi.DMNShape.class,
DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_dmndi_DMNShape_Metadata_INSTANCE,
"GENERATED_$pattern_DMNShape$2$");
org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1_2",
"DRGELEMENT_MISSING_DMNSHAPE")
.build(D.pattern(var_GENERATED_$pattern_DMNDI$1$),
D.pattern(var_$element).watch("id"),
D.not(D.pattern(var_GENERATED_$pattern_DMNShape$2$).expr("GENERATED_C0E192075FEB678FA0A0D2045E48B6A3",
org.kie.dmn.validation.DMNv1_2.PE6.LambdaPredicateE69E5426D6C2EC3CC91249F0965CAF12.INSTANCE,
D.reactOn("dmnElementRef")).expr("GENERATED_A1024283665FCD1523F5EBA99653CE49",
var_$element,
org.kie.dmn.validation.DMNv1_2.PF6.LambdaPredicateF66D7BCD1955611DD5A6E381E446DFFE.INSTANCE,
D.betaIndexedBy(java.lang.String.class,
org.drools.model.Index.ConstraintType.EQUAL,
-1,
org.kie.dmn.validation.DMNv1_2.P87.LambdaExtractor87C08C4E4021A104BC86F78051EE824B.INSTANCE,
org.kie.dmn.validation.DMNv1_2.PF1.LambdaExtractorF135CD73E903D9EA93222A7F7C637F57.INSTANCE,
java.lang.String.class),
D.reactOn("dmnElementRef"))),
D.on(var_$element,
var_reporter).execute(org.kie.dmn.validation.DMNv1_2.P84.LambdaConsequence84F86FCF513903C543B44AD5F916E74B.INSTANCE));
return rule;
}
/**
* Rule name: TEXTANNOTATION_MISSING_DMNSHAPE
*/
public static org.drools.model.Rule rule_TEXTANNOTATION__MISSING__DMNSHAPE() {
final org.drools.model.Variable var_GENERATED_$pattern_DMNDI$3$ = D.declarationOf(org.kie.dmn.model.api.dmndi.DMNDI.class,
DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_dmndi_DMNDI_Metadata_INSTANCE,
"GENERATED_$pattern_DMNDI$3$");
final org.drools.model.Variable var_$textAnn = D.declarationOf(org.kie.dmn.model.api.TextAnnotation.class,
DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_TextAnnotation_Metadata_INSTANCE,
"$textAnn");
final org.drools.model.Variable var_GENERATED_$pattern_DMNShape$4$ = D.declarationOf(org.kie.dmn.model.api.dmndi.DMNShape.class,
DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_dmndi_DMNShape_Metadata_INSTANCE,
"GENERATED_$pattern_DMNShape$4$");
org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1_2",
"TEXTANNOTATION_MISSING_DMNSHAPE")
.build(D.pattern(var_GENERATED_$pattern_DMNDI$3$),
D.pattern(var_$textAnn).watch("id"),
D.not(D.pattern(var_GENERATED_$pattern_DMNShape$4$).expr("GENERATED_C0E192075FEB678FA0A0D2045E48B6A3",
org.kie.dmn.validation.DMNv1_2.PE6.LambdaPredicateE69E5426D6C2EC3CC91249F0965CAF12.INSTANCE,
D.reactOn("dmnElementRef")).expr("GENERATED_3957F881F95E508EEDF2FE3720DA4DE9",
var_$textAnn,
org.kie.dmn.validation.DMNv1_2.P34.LambdaPredicate3408F96F7782A0E6A19F7E5000E4D2E8.INSTANCE,
D.betaIndexedBy(java.lang.String.class,
org.drools.model.Index.ConstraintType.EQUAL,
-1,
org.kie.dmn.validation.DMNv1_2.P87.LambdaExtractor87C08C4E4021A104BC86F78051EE824B.INSTANCE,
org.kie.dmn.validation.DMNv1_2.P8B.LambdaExtractor8B1E6DC15E95A3B71E1113CB9DDC0CC2.INSTANCE,
java.lang.String.class),
D.reactOn("dmnElementRef"))),
D.on(var_$textAnn,
var_reporter).execute(org.kie.dmn.validation.DMNv1_2.P71.LambdaConsequence7120FCE43C5F5447AC4753DB0C1B4E77.INSTANCE));
return rule;
}
/**
* Rule name: INFORMATIONREQUIREMENT_MISSING_DMNEDGE
*/
public static org.drools.model.Rule rule_INFORMATIONREQUIREMENT__MISSING__DMNEDGE() {
final org.drools.model.Variable var_GENERATED_$pattern_DMNDI$5$ = D.declarationOf(org.kie.dmn.model.api.dmndi.DMNDI.class,
DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_dmndi_DMNDI_Metadata_INSTANCE,
"GENERATED_$pattern_DMNDI$5$");
final org.drools.model.Variable var_$req = D.declarationOf(org.kie.dmn.model.api.InformationRequirement.class,
DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_InformationRequirement_Metadata_INSTANCE,
"$req");
final org.drools.model.Variable var_GENERATED_$pattern_DMNEdge$6$ = D.declarationOf(org.kie.dmn.model.api.dmndi.DMNEdge.class,
DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_dmndi_DMNEdge_Metadata_INSTANCE,
"GENERATED_$pattern_DMNEdge$6$");
org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1_2",
"INFORMATIONREQUIREMENT_MISSING_DMNEDGE")
.build(D.pattern(var_GENERATED_$pattern_DMNDI$5$),
D.pattern(var_$req).watch("id"),
D.not(D.pattern(var_GENERATED_$pattern_DMNEdge$6$).expr("GENERATED_1E1C2860964505A58138F80772537B1A",
org.kie.dmn.validation.DMNv1_2.P4E.LambdaPredicate4E39FD0FF4F83D6909F5264350F87FAF.INSTANCE,
D.reactOn("dmnElementRef")).expr("GENERATED_877733DABAABF18F8E2D504D9031A5AC",
var_$req,
org.kie.dmn.validation.DMNv1_2.PCA.LambdaPredicateCAFEF85C512DBC6E18AD9B27E59B7AE2.INSTANCE,
D.betaIndexedBy(java.lang.String.class,
org.drools.model.Index.ConstraintType.EQUAL,
-1,
org.kie.dmn.validation.DMNv1_2.P17.LambdaExtractor1723CB5FA1CCD9C107613E923A01F571.INSTANCE,
org.kie.dmn.validation.DMNv1_2.P59.LambdaExtractor59B4354B8FF201AA6A8940046873459B.INSTANCE,
java.lang.String.class),
D.reactOn("dmnElementRef"))),
D.on(var_$req,
var_reporter).execute(org.kie.dmn.validation.DMNv1_2.P44.LambdaConsequence449330F571C93B3A9DA49D877437C4F9.INSTANCE));
return rule;
}
/**
* Rule name: KNOWLEDGEREQUIREMENT_MISSING_DMNEDGE
*/
public static org.drools.model.Rule rule_KNOWLEDGEREQUIREMENT__MISSING__DMNEDGE() {
final org.drools.model.Variable var_GENERATED_$pattern_DMNDI$7$ = D.declarationOf(org.kie.dmn.model.api.dmndi.DMNDI.class,
DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_dmndi_DMNDI_Metadata_INSTANCE,
"GENERATED_$pattern_DMNDI$7$");
final org.drools.model.Variable var_$req = D.declarationOf(org.kie.dmn.model.api.KnowledgeRequirement.class,
DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_KnowledgeRequirement_Metadata_INSTANCE,
"$req");
final org.drools.model.Variable var_GENERATED_$pattern_DMNEdge$8$ = D.declarationOf(org.kie.dmn.model.api.dmndi.DMNEdge.class,
DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_dmndi_DMNEdge_Metadata_INSTANCE,
"GENERATED_$pattern_DMNEdge$8$");
org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1_2",
"KNOWLEDGEREQUIREMENT_MISSING_DMNEDGE")
.build(D.pattern(var_GENERATED_$pattern_DMNDI$7$),
D.pattern(var_$req).watch("id"),
D.not(D.pattern(var_GENERATED_$pattern_DMNEdge$8$).expr("GENERATED_1E1C2860964505A58138F80772537B1A",
org.kie.dmn.validation.DMNv1_2.P4E.LambdaPredicate4E39FD0FF4F83D6909F5264350F87FAF.INSTANCE,
D.reactOn("dmnElementRef")).expr("GENERATED_877733DABAABF18F8E2D504D9031A5AC",
var_$req,
org.kie.dmn.validation.DMNv1_2.PFE.LambdaPredicateFE5B3F96EE623F58B03E5060945A4696.INSTANCE,
D.betaIndexedBy(java.lang.String.class,
org.drools.model.Index.ConstraintType.EQUAL,
-1,
org.kie.dmn.validation.DMNv1_2.P17.LambdaExtractor1723CB5FA1CCD9C107613E923A01F571.INSTANCE,
org.kie.dmn.validation.DMNv1_2.P8E.LambdaExtractor8E5BA7993E6EA0F9041CE839F9F49BDF.INSTANCE,
java.lang.String.class),
D.reactOn("dmnElementRef"))),
D.on(var_$req,
var_reporter).execute(org.kie.dmn.validation.DMNv1_2.P0F.LambdaConsequence0F3CE6528CE24C84098C16AE8CF46093.INSTANCE));
return rule;
}
/**
* Rule name: AUTHORITYREQUIREMENT_MISSING_DMNEDGE
*/
public static org.drools.model.Rule rule_AUTHORITYREQUIREMENT__MISSING__DMNEDGE() {
final org.drools.model.Variable var_GENERATED_$pattern_DMNDI$9$ = D.declarationOf(org.kie.dmn.model.api.dmndi.DMNDI.class,
DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_dmndi_DMNDI_Metadata_INSTANCE,
"GENERATED_$pattern_DMNDI$9$");
final org.drools.model.Variable var_$req = D.declarationOf(org.kie.dmn.model.api.AuthorityRequirement.class,
DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_AuthorityRequirement_Metadata_INSTANCE,
"$req");
final org.drools.model.Variable var_GENERATED_$pattern_DMNEdge$10$ = D.declarationOf(org.kie.dmn.model.api.dmndi.DMNEdge.class,
DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_dmndi_DMNEdge_Metadata_INSTANCE,
"GENERATED_$pattern_DMNEdge$10$");
org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1_2",
"AUTHORITYREQUIREMENT_MISSING_DMNEDGE")
.build(D.pattern(var_GENERATED_$pattern_DMNDI$9$),
D.pattern(var_$req).watch("id"),
D.not(D.pattern(var_GENERATED_$pattern_DMNEdge$10$).expr("GENERATED_1E1C2860964505A58138F80772537B1A",
org.kie.dmn.validation.DMNv1_2.P4E.LambdaPredicate4E39FD0FF4F83D6909F5264350F87FAF.INSTANCE,
D.reactOn("dmnElementRef")).expr("GENERATED_877733DABAABF18F8E2D504D9031A5AC",
var_$req,
org.kie.dmn.validation.DMNv1_2.PCE.LambdaPredicateCE1BC296563AD0DC8ADE4BE256DD3047.INSTANCE,
D.betaIndexedBy(java.lang.String.class,
org.drools.model.Index.ConstraintType.EQUAL,
-1,
org.kie.dmn.validation.DMNv1_2.P17.LambdaExtractor1723CB5FA1CCD9C107613E923A01F571.INSTANCE,
org.kie.dmn.validation.DMNv1_2.P85.LambdaExtractor854B4A48D753299B399545ED97E5C3EC.INSTANCE,
java.lang.String.class),
D.reactOn("dmnElementRef"))),
D.on(var_$req,
var_reporter).execute(org.kie.dmn.validation.DMNv1_2.P90.LambdaConsequence904FF67061E0840C7EECAE3AD3FE84AA.INSTANCE));
return rule;
}
/**
* Rule name: ASSOCIATION_MISSING_DMNEDGE
*/
public static org.drools.model.Rule rule_ASSOCIATION__MISSING__DMNEDGE() {
final org.drools.model.Variable var_GENERATED_$pattern_DMNDI$11$ = D.declarationOf(org.kie.dmn.model.api.dmndi.DMNDI.class,
DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_dmndi_DMNDI_Metadata_INSTANCE,
"GENERATED_$pattern_DMNDI$11$");
final org.drools.model.Variable var_$asso = D.declarationOf(org.kie.dmn.model.api.Association.class,
DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_Association_Metadata_INSTANCE,
"$asso");
final org.drools.model.Variable var_GENERATED_$pattern_DMNEdge$12$ = D.declarationOf(org.kie.dmn.model.api.dmndi.DMNEdge.class,
DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_dmndi_DMNEdge_Metadata_INSTANCE,
"GENERATED_$pattern_DMNEdge$12$");
org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1_2",
"ASSOCIATION_MISSING_DMNEDGE")
.build(D.pattern(var_GENERATED_$pattern_DMNDI$11$),
D.pattern(var_$asso).watch("id"),
D.not(D.pattern(var_GENERATED_$pattern_DMNEdge$12$).expr("GENERATED_1E1C2860964505A58138F80772537B1A",
org.kie.dmn.validation.DMNv1_2.P4E.LambdaPredicate4E39FD0FF4F83D6909F5264350F87FAF.INSTANCE,
D.reactOn("dmnElementRef")).expr("GENERATED_7063454D1A78532BDD1099F468EEC303",
var_$asso,
org.kie.dmn.validation.DMNv1_2.P26.LambdaPredicate2610B5B28A107BFA65F57528CACFB9C6.INSTANCE,
D.betaIndexedBy(java.lang.String.class,
org.drools.model.Index.ConstraintType.EQUAL,
-1,
org.kie.dmn.validation.DMNv1_2.P17.LambdaExtractor1723CB5FA1CCD9C107613E923A01F571.INSTANCE,
org.kie.dmn.validation.DMNv1_2.PAE.LambdaExtractorAE8F7D41E4768AF71BA22401096227F1.INSTANCE,
java.lang.String.class),
D.reactOn("dmnElementRef"))),
D.on(var_reporter,
var_$asso).execute(org.kie.dmn.validation.DMNv1_2.P20.LambdaConsequence20A1A77C9B57258EADD975185CB69A12.INSTANCE));
return rule;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy