All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.kie.dmn.validation.DMNv1_2.Rules7676380D94DD33A71773908D7D47354BRuleMethods2 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 Rules7676380D94DD33A71773908D7D47354BRuleMethods2 {

    /**
     * Rule name: COLUMN_NOTYPEREF
     */
    public static org.drools.model.Rule rule_COLUMN__NOTYPEREF() {
        final org.drools.model.Variable var_$ce1 = D.declarationOf(org.kie.dmn.model.api.InformationItem.class,
                                                                                                          DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_InformationItem_Metadata_INSTANCE,
                                                                                                          "$ce1");
        org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1_2",
                                            "COLUMN_NOTYPEREF")
                                      .build(D.pattern(var_$ce1).expr("GENERATED_47CD95E7F0260B7BE5931757AB4E7A55",
                                                                      org.kie.dmn.validation.DMNv1_2.P34.LambdaPredicate34787D3E8ECFD241EAA45330F50A1323.INSTANCE,
                                                                      D.reactOn("typeRef")).expr("GENERATED_BE7A898DACBA252D6D747F1AE6E98309",
                                                                                                 org.kie.dmn.validation.DMNv1_2.P6D.LambdaPredicate6DFCA42F5364F080E688641C5888C050.INSTANCE,
                                                                                                 D.reactOn("parent")),
                                             D.on(var_reporter,
                                                  var_$ce1).execute(org.kie.dmn.validation.DMNv1_2.P65.LambdaConsequence65166357FDA33116811E0615F69D10B5.INSTANCE));
        return rule;
    }

    /**
     * Rule name: TYPEREF_NOT_FEEL_NOT_DEF_p1
     */
    public static org.drools.model.Rule rule_TYPEREF__NOT__FEEL__NOT__DEF__p1() {
        final org.drools.model.Variable var_GENERATED_$pattern_Definitions$27$ = D.declarationOf(org.kie.dmn.model.api.Definitions.class,
                                                                                                                                    DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_Definitions_Metadata_INSTANCE,
                                                                                                                                    "GENERATED_$pattern_Definitions$27$");
        final org.drools.model.Variable var_$ns = D.declarationOf(java.lang.String.class,
                                                                                    DomainClassesMetadata7676380D94DD33A71773908D7D47354B.java_lang_String_Metadata_INSTANCE,
                                                                                    "$ns");
        final org.drools.model.Variable var_$o = D.declarationOf(org.kie.dmn.model.api.Expression.class,
                                                                                                   DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_Expression_Metadata_INSTANCE,
                                                                                                   "$o");
        final org.drools.model.Variable var_$typeRef = D.declarationOf(javax.xml.namespace.QName.class,
                                                                                                  DomainClassesMetadata7676380D94DD33A71773908D7D47354B.javax_xml_namespace_QName_Metadata_INSTANCE,
                                                                                                  "$typeRef");
        final org.drools.model.Variable var_GENERATED_$pattern_ItemDefinition$28$ = D.declarationOf(org.kie.dmn.model.api.ItemDefinition.class,
                                                                                                                                          DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_ItemDefinition_Metadata_INSTANCE,
                                                                                                                                          "GENERATED_$pattern_ItemDefinition$28$");
        final org.drools.model.Variable var_GENERATED_$pattern_Import$29$ = D.declarationOf(org.kie.dmn.model.api.Import.class,
                                                                                                                          DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_Import_Metadata_INSTANCE,
                                                                                                                          "GENERATED_$pattern_Import$29$");
        final org.drools.model.Variable var_$importName_2_sCoPe = D.declarationOf(java.lang.String.class,
                                                                                                    DomainClassesMetadata7676380D94DD33A71773908D7D47354B.java_lang_String_Metadata_INSTANCE,
                                                                                                    "$importName_2_sCoPe");
        final org.drools.model.Variable var_$importedNS_2_sCoPe = D.declarationOf(java.lang.String.class,
                                                                                                    DomainClassesMetadata7676380D94DD33A71773908D7D47354B.java_lang_String_Metadata_INSTANCE,
                                                                                                    "$importedNS_2_sCoPe");
        final org.drools.model.Variable var_$importDef_2_sCoPe = D.declarationOf(org.kie.dmn.model.api.Definitions.class,
                                                                                                                    DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_Definitions_Metadata_INSTANCE,
                                                                                                                    "$importDef_2_sCoPe",
                                                                                                                    D.entryPoint("DMNImports"));
        final org.drools.model.Variable var_GENERATED_$pattern_ItemDefinition$30$ = D.declarationOf(org.kie.dmn.model.api.ItemDefinition.class,
                                                                                                                                          DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_ItemDefinition_Metadata_INSTANCE,
                                                                                                                                          "GENERATED_$pattern_ItemDefinition$30$",
                                                                                                                                          D.from(var_$importDef_2_sCoPe,
                                                                                                                                                 org.kie.dmn.validation.DMNv1_2.PE6.LambdaExtractorE6DAE9A21300313340937C801AD1902C.INSTANCE));
        final org.drools.model.Variable var_GENERATED_$pattern_Import$31$ = D.declarationOf(org.kie.dmn.model.api.Import.class,
                                                                                                                          DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_Import_Metadata_INSTANCE,
                                                                                                                          "GENERATED_$pattern_Import$31$");
        org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1_2",
                                            "TYPEREF_NOT_FEEL_NOT_DEF_p1")
                                      .build(D.pattern(var_GENERATED_$pattern_Definitions$27$).bind(var_$ns,
                                                                                                    org.kie.dmn.validation.DMNv1_2.P6E.LambdaExtractor6EC045AEA9CA1406259A3582119EDA58.INSTANCE,
                                                                                                    D.reactOn("namespace")),
                                             D.pattern(var_$o).expr("GENERATED_194B8B79E15DF6DF68E432BECE8B4F40",
                                                                    org.kie.dmn.validation.DMNv1_2.P61.LambdaPredicate61A39620188B3DAB9E1E5F4C2C004A98.INSTANCE).expr("GENERATED_08B8CFA7AEC9AA6D3B57CA96614A42A3",
                                                                                                                                                                      org.kie.dmn.validation.DMNv1_2.P5E.LambdaPredicate5E3EA1BD913BA1EC3714BDDDDDA2A805.INSTANCE,
                                                                                                                                                                      D.reactOn("typeRef")).expr("GENERATED_66385875D2CAB770C42F5C2DF05C0983",
                                                                                                                                                                                                 var_$ns,
                                                                                                                                                                                                 org.kie.dmn.validation.DMNv1_2.P3F.LambdaPredicate3F813C5D99B8B8BEAA1F7DBA9DA00D17.INSTANCE,
                                                                                                                                                                                                 D.reactOn("URIFEEL",
                                                                                                                                                                                                           "typeRef")).bind(var_$typeRef,
                                                                                                                                                                                                                            org.kie.dmn.validation.DMNv1_2.P40.LambdaExtractor4033B369FBEE8DD3DBBA7733A3ED35AE.INSTANCE,
                                                                                                                                                                                                                            D.reactOn("typeRef")),
                                             D.not(D.pattern(var_GENERATED_$pattern_ItemDefinition$28$).expr("GENERATED_A4785EE10665D986793E03E4367F5714",
                                                                                                             var_$typeRef,
                                                                                                             org.kie.dmn.validation.DMNv1_2.PB3.LambdaPredicateB396426CFA604B10017BBE9608D73F17.INSTANCE,
                                                                                                             D.reactOn("name"))),
                                             D.not(D.and(D.pattern(var_GENERATED_$pattern_Import$29$).expr("GENERATED_2EBF0A4D1548A2C2595AC00B7D0FEBAD",
                                                                                                           org.kie.dmn.validation.DMNv1_2.PC6.LambdaPredicateC6C5801AE45876B12E3B2A53FE1FA687.INSTANCE).bind(var_$importName_2_sCoPe,
                                                                                                                                                                                                             org.kie.dmn.validation.DMNv1_2.P8D.LambdaExtractor8DE2CE838EBE980F45C4515A925EE06E.INSTANCE,
                                                                                                                                                                                                             D.reactOn("name")).bind(var_$importedNS_2_sCoPe,
                                                                                                                                                                                                                                     org.kie.dmn.validation.DMNv1_2.P1F.LambdaExtractor1FDB20583533B22EB294BB4DEEA0F86B.INSTANCE,
                                                                                                                                                                                                                                     D.reactOn("namespace")),
                                                         D.pattern(var_$importDef_2_sCoPe).expr("GENERATED_8BB04BD8A3A86ED7E44529930C05F938",
                                                                                                var_$importedNS_2_sCoPe,
                                                                                                org.kie.dmn.validation.DMNv1_2.PC5.LambdaPredicateC56E0DB756D16D191AD16F6BEB4621B0.INSTANCE,
                                                                                                D.betaIndexedBy(java.lang.String.class,
                                                                                                                org.drools.model.Index.ConstraintType.EQUAL,
                                                                                                                DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_Definitions_Metadata_INSTANCE.getPropertyIndex("namespace"),
                                                                                                                org.kie.dmn.validation.DMNv1_2.P6E.LambdaExtractor6EC045AEA9CA1406259A3582119EDA58.INSTANCE,
                                                                                                                org.kie.dmn.validation.DMNv1_2.P3E.LambdaExtractor3E4C557CE016FB931CCE09511B8F58EB.INSTANCE,
                                                                                                                java.lang.String.class),
                                                                                                D.reactOn("namespace")),
                                                         D.pattern(var_GENERATED_$pattern_ItemDefinition$30$).expr("GENERATED_9B3FC6FAA24604A530ECBAA1218BB9D1",
                                                                                                                   var_$typeRef,
                                                                                                                   var_$importName_2_sCoPe,
                                                                                                                   org.kie.dmn.validation.DMNv1_2.PA5.LambdaPredicateA57BC470C0DBC1F399991DD96121C8CA.INSTANCE,
                                                                                                                   D.reactOn("name")))),
                                             D.not(D.pattern(var_GENERATED_$pattern_Import$31$).expr("GENERATED_6AEA75A2C31C4EC12AADF38608D93828",
                                                                                                     org.kie.dmn.validation.DMNv1_2.P83.LambdaPredicate83BEB044CB599D59FE73E0A26FDDE45D.INSTANCE).expr("GENERATED_D588AE3DCF972EE095A4F1C9C24AF559",
                                                                                                                                                                                                       var_$typeRef,
                                                                                                                                                                                                       org.kie.dmn.validation.DMNv1_2.P19.LambdaPredicate199A2A1E8223232A6423F3EA4C4B56D9.INSTANCE,
                                                                                                                                                                                                       D.reactOn("name"))),
                                             D.on(var_$typeRef,
                                                  var_reporter,
                                                  var_$o).execute(org.kie.dmn.validation.DMNv1_2.P4B.LambdaConsequence4B5ECAC33D2AB0266616AA1C7195D0E3.INSTANCE));
        return rule;
    }

    /**
     * Rule name: TYPEREF_NOT_FEEL_NOT_DEF_p2
     */
    public static org.drools.model.Rule rule_TYPEREF__NOT__FEEL__NOT__DEF__p2() {
        final org.drools.model.Variable var_GENERATED_$pattern_Definitions$32$ = D.declarationOf(org.kie.dmn.model.api.Definitions.class,
                                                                                                                                    DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_Definitions_Metadata_INSTANCE,
                                                                                                                                    "GENERATED_$pattern_Definitions$32$");
        final org.drools.model.Variable var_$ns = D.declarationOf(java.lang.String.class,
                                                                                    DomainClassesMetadata7676380D94DD33A71773908D7D47354B.java_lang_String_Metadata_INSTANCE,
                                                                                    "$ns");
        final org.drools.model.Variable var_$o = D.declarationOf(org.kie.dmn.model.api.InformationItem.class,
                                                                                                        DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_InformationItem_Metadata_INSTANCE,
                                                                                                        "$o");
        final org.drools.model.Variable var_$typeRef = D.declarationOf(javax.xml.namespace.QName.class,
                                                                                                  DomainClassesMetadata7676380D94DD33A71773908D7D47354B.javax_xml_namespace_QName_Metadata_INSTANCE,
                                                                                                  "$typeRef");
        final org.drools.model.Variable var_GENERATED_$pattern_ItemDefinition$33$ = D.declarationOf(org.kie.dmn.model.api.ItemDefinition.class,
                                                                                                                                          DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_ItemDefinition_Metadata_INSTANCE,
                                                                                                                                          "GENERATED_$pattern_ItemDefinition$33$");
        final org.drools.model.Variable var_GENERATED_$pattern_Import$34$ = D.declarationOf(org.kie.dmn.model.api.Import.class,
                                                                                                                          DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_Import_Metadata_INSTANCE,
                                                                                                                          "GENERATED_$pattern_Import$34$");
        final org.drools.model.Variable var_$importName_2_sCoPe = D.declarationOf(java.lang.String.class,
                                                                                                    DomainClassesMetadata7676380D94DD33A71773908D7D47354B.java_lang_String_Metadata_INSTANCE,
                                                                                                    "$importName_2_sCoPe");
        final org.drools.model.Variable var_$importedNS_2_sCoPe = D.declarationOf(java.lang.String.class,
                                                                                                    DomainClassesMetadata7676380D94DD33A71773908D7D47354B.java_lang_String_Metadata_INSTANCE,
                                                                                                    "$importedNS_2_sCoPe");
        final org.drools.model.Variable var_$importDef_2_sCoPe = D.declarationOf(org.kie.dmn.model.api.Definitions.class,
                                                                                                                    DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_Definitions_Metadata_INSTANCE,
                                                                                                                    "$importDef_2_sCoPe",
                                                                                                                    D.entryPoint("DMNImports"));
        final org.drools.model.Variable var_GENERATED_$pattern_ItemDefinition$35$ = D.declarationOf(org.kie.dmn.model.api.ItemDefinition.class,
                                                                                                                                          DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_ItemDefinition_Metadata_INSTANCE,
                                                                                                                                          "GENERATED_$pattern_ItemDefinition$35$",
                                                                                                                                          D.from(var_$importDef_2_sCoPe,
                                                                                                                                                 org.kie.dmn.validation.DMNv1_2.PE6.LambdaExtractorE6DAE9A21300313340937C801AD1902C.INSTANCE));
        final org.drools.model.Variable var_GENERATED_$pattern_Import$36$ = D.declarationOf(org.kie.dmn.model.api.Import.class,
                                                                                                                          DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_Import_Metadata_INSTANCE,
                                                                                                                          "GENERATED_$pattern_Import$36$");
        org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1_2",
                                            "TYPEREF_NOT_FEEL_NOT_DEF_p2")
                                      .build(D.pattern(var_GENERATED_$pattern_Definitions$32$).bind(var_$ns,
                                                                                                    org.kie.dmn.validation.DMNv1_2.P6E.LambdaExtractor6EC045AEA9CA1406259A3582119EDA58.INSTANCE,
                                                                                                    D.reactOn("namespace")),
                                             D.pattern(var_$o).expr("GENERATED_D5BD6082563B3611BCC7ACB76F906A94",
                                                                    org.kie.dmn.validation.DMNv1_2.P0C.LambdaPredicate0C03EFAFDF5EF4844649C8E993D875CB.INSTANCE,
                                                                    D.reactOn("typeRef")).expr("GENERATED_7B35AB4922780C098744B819F0C648EE",
                                                                                               var_$ns,
                                                                                               org.kie.dmn.validation.DMNv1_2.PE0.LambdaPredicateE072D69D5B88FECA138136571C687F34.INSTANCE,
                                                                                               D.reactOn("URIFEEL",
                                                                                                         "typeRef")).bind(var_$typeRef,
                                                                                                                          org.kie.dmn.validation.DMNv1_2.P7F.LambdaExtractor7F6137653CB46097D3E2F405CF666AFB.INSTANCE,
                                                                                                                          D.reactOn("typeRef")),
                                             D.not(D.pattern(var_GENERATED_$pattern_ItemDefinition$33$).expr("GENERATED_A4785EE10665D986793E03E4367F5714",
                                                                                                             var_$typeRef,
                                                                                                             org.kie.dmn.validation.DMNv1_2.PB3.LambdaPredicateB396426CFA604B10017BBE9608D73F17.INSTANCE,
                                                                                                             D.reactOn("name"))),
                                             D.not(D.and(D.pattern(var_GENERATED_$pattern_Import$34$).expr("GENERATED_2EBF0A4D1548A2C2595AC00B7D0FEBAD",
                                                                                                           org.kie.dmn.validation.DMNv1_2.PC6.LambdaPredicateC6C5801AE45876B12E3B2A53FE1FA687.INSTANCE).bind(var_$importName_2_sCoPe,
                                                                                                                                                                                                             org.kie.dmn.validation.DMNv1_2.P8D.LambdaExtractor8DE2CE838EBE980F45C4515A925EE06E.INSTANCE,
                                                                                                                                                                                                             D.reactOn("name")).bind(var_$importedNS_2_sCoPe,
                                                                                                                                                                                                                                     org.kie.dmn.validation.DMNv1_2.P1F.LambdaExtractor1FDB20583533B22EB294BB4DEEA0F86B.INSTANCE,
                                                                                                                                                                                                                                     D.reactOn("namespace")),
                                                         D.pattern(var_$importDef_2_sCoPe).expr("GENERATED_8BB04BD8A3A86ED7E44529930C05F938",
                                                                                                var_$importedNS_2_sCoPe,
                                                                                                org.kie.dmn.validation.DMNv1_2.PC5.LambdaPredicateC56E0DB756D16D191AD16F6BEB4621B0.INSTANCE,
                                                                                                D.betaIndexedBy(java.lang.String.class,
                                                                                                                org.drools.model.Index.ConstraintType.EQUAL,
                                                                                                                DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_Definitions_Metadata_INSTANCE.getPropertyIndex("namespace"),
                                                                                                                org.kie.dmn.validation.DMNv1_2.P6E.LambdaExtractor6EC045AEA9CA1406259A3582119EDA58.INSTANCE,
                                                                                                                org.kie.dmn.validation.DMNv1_2.P3E.LambdaExtractor3E4C557CE016FB931CCE09511B8F58EB.INSTANCE,
                                                                                                                java.lang.String.class),
                                                                                                D.reactOn("namespace")),
                                                         D.pattern(var_GENERATED_$pattern_ItemDefinition$35$).expr("GENERATED_9B3FC6FAA24604A530ECBAA1218BB9D1",
                                                                                                                   var_$typeRef,
                                                                                                                   var_$importName_2_sCoPe,
                                                                                                                   org.kie.dmn.validation.DMNv1_2.PA5.LambdaPredicateA57BC470C0DBC1F399991DD96121C8CA.INSTANCE,
                                                                                                                   D.reactOn("name")))),
                                             D.not(D.pattern(var_GENERATED_$pattern_Import$36$).expr("GENERATED_6AEA75A2C31C4EC12AADF38608D93828",
                                                                                                     org.kie.dmn.validation.DMNv1_2.P83.LambdaPredicate83BEB044CB599D59FE73E0A26FDDE45D.INSTANCE).expr("GENERATED_D588AE3DCF972EE095A4F1C9C24AF559",
                                                                                                                                                                                                       var_$typeRef,
                                                                                                                                                                                                       org.kie.dmn.validation.DMNv1_2.P19.LambdaPredicate199A2A1E8223232A6423F3EA4C4B56D9.INSTANCE,
                                                                                                                                                                                                       D.reactOn("name"))),
                                             D.on(var_$typeRef,
                                                  var_reporter,
                                                  var_$o).execute(org.kie.dmn.validation.DMNv1_2.PBA.LambdaConsequenceBA47E21931976718A54A5798850FA91C.INSTANCE));
        return rule;
    }

    /**
     * Rule name: TYPEREF_NOT_FEEL_NOT_DEF_p3
     */
    public static org.drools.model.Rule rule_TYPEREF__NOT__FEEL__NOT__DEF__p3() {
        final org.drools.model.Variable var_GENERATED_$pattern_Definitions$37$ = D.declarationOf(org.kie.dmn.model.api.Definitions.class,
                                                                                                                                    DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_Definitions_Metadata_INSTANCE,
                                                                                                                                    "GENERATED_$pattern_Definitions$37$");
        final org.drools.model.Variable var_$ns = D.declarationOf(java.lang.String.class,
                                                                                    DomainClassesMetadata7676380D94DD33A71773908D7D47354B.java_lang_String_Metadata_INSTANCE,
                                                                                    "$ns");
        final org.drools.model.Variable var_$o = D.declarationOf(org.kie.dmn.model.api.ItemDefinition.class,
                                                                                                       DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_ItemDefinition_Metadata_INSTANCE,
                                                                                                       "$o");
        final org.drools.model.Variable var_$typeRef = D.declarationOf(javax.xml.namespace.QName.class,
                                                                                                  DomainClassesMetadata7676380D94DD33A71773908D7D47354B.javax_xml_namespace_QName_Metadata_INSTANCE,
                                                                                                  "$typeRef");
        final org.drools.model.Variable var_GENERATED_$pattern_ItemDefinition$38$ = D.declarationOf(org.kie.dmn.model.api.ItemDefinition.class,
                                                                                                                                          DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_ItemDefinition_Metadata_INSTANCE,
                                                                                                                                          "GENERATED_$pattern_ItemDefinition$38$");
        final org.drools.model.Variable var_GENERATED_$pattern_Import$39$ = D.declarationOf(org.kie.dmn.model.api.Import.class,
                                                                                                                          DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_Import_Metadata_INSTANCE,
                                                                                                                          "GENERATED_$pattern_Import$39$");
        final org.drools.model.Variable var_$importName_2_sCoPe = D.declarationOf(java.lang.String.class,
                                                                                                    DomainClassesMetadata7676380D94DD33A71773908D7D47354B.java_lang_String_Metadata_INSTANCE,
                                                                                                    "$importName_2_sCoPe");
        final org.drools.model.Variable var_$importedNS_2_sCoPe = D.declarationOf(java.lang.String.class,
                                                                                                    DomainClassesMetadata7676380D94DD33A71773908D7D47354B.java_lang_String_Metadata_INSTANCE,
                                                                                                    "$importedNS_2_sCoPe");
        final org.drools.model.Variable var_$importDef_2_sCoPe = D.declarationOf(org.kie.dmn.model.api.Definitions.class,
                                                                                                                    DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_Definitions_Metadata_INSTANCE,
                                                                                                                    "$importDef_2_sCoPe",
                                                                                                                    D.entryPoint("DMNImports"));
        final org.drools.model.Variable var_GENERATED_$pattern_ItemDefinition$40$ = D.declarationOf(org.kie.dmn.model.api.ItemDefinition.class,
                                                                                                                                          DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_ItemDefinition_Metadata_INSTANCE,
                                                                                                                                          "GENERATED_$pattern_ItemDefinition$40$",
                                                                                                                                          D.from(var_$importDef_2_sCoPe,
                                                                                                                                                 org.kie.dmn.validation.DMNv1_2.PE6.LambdaExtractorE6DAE9A21300313340937C801AD1902C.INSTANCE));
        final org.drools.model.Variable var_GENERATED_$pattern_Import$41$ = D.declarationOf(org.kie.dmn.model.api.Import.class,
                                                                                                                          DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_Import_Metadata_INSTANCE,
                                                                                                                          "GENERATED_$pattern_Import$41$");
        org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1_2",
                                            "TYPEREF_NOT_FEEL_NOT_DEF_p3")
                                      .build(D.pattern(var_GENERATED_$pattern_Definitions$37$).bind(var_$ns,
                                                                                                    org.kie.dmn.validation.DMNv1_2.P6E.LambdaExtractor6EC045AEA9CA1406259A3582119EDA58.INSTANCE,
                                                                                                    D.reactOn("namespace")),
                                             D.pattern(var_$o).expr("GENERATED_D92B95295C1A5BECF7C4CD0A7A985C60",
                                                                    org.kie.dmn.validation.DMNv1_2.PEE.LambdaPredicateEE2768369C839E22452ABAD574416B59.INSTANCE,
                                                                    D.reactOn("typeRef")).expr("GENERATED_8FCC3CFDCA1C95192DF5ACC7E14B1480",
                                                                                               var_$ns,
                                                                                               org.kie.dmn.validation.DMNv1_2.P28.LambdaPredicate284394BC707FF8D2AA8703D443C55FB7.INSTANCE,
                                                                                               D.reactOn("URIFEEL",
                                                                                                         "typeRef")).bind(var_$typeRef,
                                                                                                                          org.kie.dmn.validation.DMNv1_2.PEF.LambdaExtractorEF50D0B0656487BBAD39313F0AAF5F73.INSTANCE,
                                                                                                                          D.reactOn("typeRef")),
                                             D.not(D.pattern(var_GENERATED_$pattern_ItemDefinition$38$).expr("GENERATED_A4785EE10665D986793E03E4367F5714",
                                                                                                             var_$typeRef,
                                                                                                             org.kie.dmn.validation.DMNv1_2.PB3.LambdaPredicateB396426CFA604B10017BBE9608D73F17.INSTANCE,
                                                                                                             D.reactOn("name"))),
                                             D.not(D.and(D.pattern(var_GENERATED_$pattern_Import$39$).expr("GENERATED_2EBF0A4D1548A2C2595AC00B7D0FEBAD",
                                                                                                           org.kie.dmn.validation.DMNv1_2.PC6.LambdaPredicateC6C5801AE45876B12E3B2A53FE1FA687.INSTANCE).bind(var_$importName_2_sCoPe,
                                                                                                                                                                                                             org.kie.dmn.validation.DMNv1_2.P8D.LambdaExtractor8DE2CE838EBE980F45C4515A925EE06E.INSTANCE,
                                                                                                                                                                                                             D.reactOn("name")).bind(var_$importedNS_2_sCoPe,
                                                                                                                                                                                                                                     org.kie.dmn.validation.DMNv1_2.P1F.LambdaExtractor1FDB20583533B22EB294BB4DEEA0F86B.INSTANCE,
                                                                                                                                                                                                                                     D.reactOn("namespace")),
                                                         D.pattern(var_$importDef_2_sCoPe).expr("GENERATED_8BB04BD8A3A86ED7E44529930C05F938",
                                                                                                var_$importedNS_2_sCoPe,
                                                                                                org.kie.dmn.validation.DMNv1_2.PC5.LambdaPredicateC56E0DB756D16D191AD16F6BEB4621B0.INSTANCE,
                                                                                                D.betaIndexedBy(java.lang.String.class,
                                                                                                                org.drools.model.Index.ConstraintType.EQUAL,
                                                                                                                DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_Definitions_Metadata_INSTANCE.getPropertyIndex("namespace"),
                                                                                                                org.kie.dmn.validation.DMNv1_2.P6E.LambdaExtractor6EC045AEA9CA1406259A3582119EDA58.INSTANCE,
                                                                                                                org.kie.dmn.validation.DMNv1_2.P3E.LambdaExtractor3E4C557CE016FB931CCE09511B8F58EB.INSTANCE,
                                                                                                                java.lang.String.class),
                                                                                                D.reactOn("namespace")),
                                                         D.pattern(var_GENERATED_$pattern_ItemDefinition$40$).expr("GENERATED_9B3FC6FAA24604A530ECBAA1218BB9D1",
                                                                                                                   var_$typeRef,
                                                                                                                   var_$importName_2_sCoPe,
                                                                                                                   org.kie.dmn.validation.DMNv1_2.PA5.LambdaPredicateA57BC470C0DBC1F399991DD96121C8CA.INSTANCE,
                                                                                                                   D.reactOn("name")))),
                                             D.not(D.pattern(var_GENERATED_$pattern_Import$41$).expr("GENERATED_6AEA75A2C31C4EC12AADF38608D93828",
                                                                                                     org.kie.dmn.validation.DMNv1_2.P83.LambdaPredicate83BEB044CB599D59FE73E0A26FDDE45D.INSTANCE).expr("GENERATED_D588AE3DCF972EE095A4F1C9C24AF559",
                                                                                                                                                                                                       var_$typeRef,
                                                                                                                                                                                                       org.kie.dmn.validation.DMNv1_2.P19.LambdaPredicate199A2A1E8223232A6423F3EA4C4B56D9.INSTANCE,
                                                                                                                                                                                                       D.reactOn("name"))),
                                             D.on(var_$typeRef,
                                                  var_reporter,
                                                  var_$o).execute(org.kie.dmn.validation.DMNv1_2.P11.LambdaConsequence118157399DAFAB3E3F468D095C7DA207.INSTANCE));
        return rule;
    }

    /**
     * Rule name: TYPEREF_NOT_FEEL_NOT_DEF_p4
     */
    public static org.drools.model.Rule rule_TYPEREF__NOT__FEEL__NOT__DEF__p4() {
        final org.drools.model.Variable var_GENERATED_$pattern_Definitions$42$ = D.declarationOf(org.kie.dmn.model.api.Definitions.class,
                                                                                                                                    DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_Definitions_Metadata_INSTANCE,
                                                                                                                                    "GENERATED_$pattern_Definitions$42$");
        final org.drools.model.Variable var_$ns = D.declarationOf(java.lang.String.class,
                                                                                    DomainClassesMetadata7676380D94DD33A71773908D7D47354B.java_lang_String_Metadata_INSTANCE,
                                                                                    "$ns");
        final org.drools.model.Variable var_$o = D.declarationOf(org.kie.dmn.model.api.OutputClause.class,
                                                                                                     DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_OutputClause_Metadata_INSTANCE,
                                                                                                     "$o");
        final org.drools.model.Variable var_$typeRef = D.declarationOf(javax.xml.namespace.QName.class,
                                                                                                  DomainClassesMetadata7676380D94DD33A71773908D7D47354B.javax_xml_namespace_QName_Metadata_INSTANCE,
                                                                                                  "$typeRef");
        final org.drools.model.Variable var_GENERATED_$pattern_ItemDefinition$43$ = D.declarationOf(org.kie.dmn.model.api.ItemDefinition.class,
                                                                                                                                          DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_ItemDefinition_Metadata_INSTANCE,
                                                                                                                                          "GENERATED_$pattern_ItemDefinition$43$");
        final org.drools.model.Variable var_GENERATED_$pattern_Import$44$ = D.declarationOf(org.kie.dmn.model.api.Import.class,
                                                                                                                          DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_Import_Metadata_INSTANCE,
                                                                                                                          "GENERATED_$pattern_Import$44$");
        final org.drools.model.Variable var_$importName_2_sCoPe = D.declarationOf(java.lang.String.class,
                                                                                                    DomainClassesMetadata7676380D94DD33A71773908D7D47354B.java_lang_String_Metadata_INSTANCE,
                                                                                                    "$importName_2_sCoPe");
        final org.drools.model.Variable var_$importedNS_2_sCoPe = D.declarationOf(java.lang.String.class,
                                                                                                    DomainClassesMetadata7676380D94DD33A71773908D7D47354B.java_lang_String_Metadata_INSTANCE,
                                                                                                    "$importedNS_2_sCoPe");
        final org.drools.model.Variable var_$importDef_2_sCoPe = D.declarationOf(org.kie.dmn.model.api.Definitions.class,
                                                                                                                    DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_Definitions_Metadata_INSTANCE,
                                                                                                                    "$importDef_2_sCoPe",
                                                                                                                    D.entryPoint("DMNImports"));
        final org.drools.model.Variable var_GENERATED_$pattern_ItemDefinition$45$ = D.declarationOf(org.kie.dmn.model.api.ItemDefinition.class,
                                                                                                                                          DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_ItemDefinition_Metadata_INSTANCE,
                                                                                                                                          "GENERATED_$pattern_ItemDefinition$45$",
                                                                                                                                          D.from(var_$importDef_2_sCoPe,
                                                                                                                                                 org.kie.dmn.validation.DMNv1_2.PE6.LambdaExtractorE6DAE9A21300313340937C801AD1902C.INSTANCE));
        final org.drools.model.Variable var_GENERATED_$pattern_Import$46$ = D.declarationOf(org.kie.dmn.model.api.Import.class,
                                                                                                                          DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_Import_Metadata_INSTANCE,
                                                                                                                          "GENERATED_$pattern_Import$46$");
        org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1_2",
                                            "TYPEREF_NOT_FEEL_NOT_DEF_p4")
                                      .build(D.pattern(var_GENERATED_$pattern_Definitions$42$).bind(var_$ns,
                                                                                                    org.kie.dmn.validation.DMNv1_2.P6E.LambdaExtractor6EC045AEA9CA1406259A3582119EDA58.INSTANCE,
                                                                                                    D.reactOn("namespace")),
                                             D.pattern(var_$o).expr("GENERATED_3B404FC3EFA1608F20DF7B4EC4719EAA",
                                                                    org.kie.dmn.validation.DMNv1_2.P6C.LambdaPredicate6CCA4DAC5A32DDCFAB20EAA71EB63E02.INSTANCE,
                                                                    D.reactOn("typeRef")).expr("GENERATED_B3E923F3356E864691D8F4DA7E061F0D",
                                                                                               var_$ns,
                                                                                               org.kie.dmn.validation.DMNv1_2.PD1.LambdaPredicateD1D7D60C069983BFDF801083C8CBED41.INSTANCE,
                                                                                               D.reactOn("URIFEEL",
                                                                                                         "typeRef")).bind(var_$typeRef,
                                                                                                                          org.kie.dmn.validation.DMNv1_2.P25.LambdaExtractor254831786E9D1D6F0757EA0BE87DB9E2.INSTANCE,
                                                                                                                          D.reactOn("typeRef")),
                                             D.not(D.pattern(var_GENERATED_$pattern_ItemDefinition$43$).expr("GENERATED_A4785EE10665D986793E03E4367F5714",
                                                                                                             var_$typeRef,
                                                                                                             org.kie.dmn.validation.DMNv1_2.PB3.LambdaPredicateB396426CFA604B10017BBE9608D73F17.INSTANCE,
                                                                                                             D.reactOn("name"))),
                                             D.not(D.and(D.pattern(var_GENERATED_$pattern_Import$44$).expr("GENERATED_2EBF0A4D1548A2C2595AC00B7D0FEBAD",
                                                                                                           org.kie.dmn.validation.DMNv1_2.PC6.LambdaPredicateC6C5801AE45876B12E3B2A53FE1FA687.INSTANCE).bind(var_$importName_2_sCoPe,
                                                                                                                                                                                                             org.kie.dmn.validation.DMNv1_2.P8D.LambdaExtractor8DE2CE838EBE980F45C4515A925EE06E.INSTANCE,
                                                                                                                                                                                                             D.reactOn("name")).bind(var_$importedNS_2_sCoPe,
                                                                                                                                                                                                                                     org.kie.dmn.validation.DMNv1_2.P1F.LambdaExtractor1FDB20583533B22EB294BB4DEEA0F86B.INSTANCE,
                                                                                                                                                                                                                                     D.reactOn("namespace")),
                                                         D.pattern(var_$importDef_2_sCoPe).expr("GENERATED_8BB04BD8A3A86ED7E44529930C05F938",
                                                                                                var_$importedNS_2_sCoPe,
                                                                                                org.kie.dmn.validation.DMNv1_2.PC5.LambdaPredicateC56E0DB756D16D191AD16F6BEB4621B0.INSTANCE,
                                                                                                D.betaIndexedBy(java.lang.String.class,
                                                                                                                org.drools.model.Index.ConstraintType.EQUAL,
                                                                                                                DomainClassesMetadata7676380D94DD33A71773908D7D47354B.org_kie_dmn_model_api_Definitions_Metadata_INSTANCE.getPropertyIndex("namespace"),
                                                                                                                org.kie.dmn.validation.DMNv1_2.P6E.LambdaExtractor6EC045AEA9CA1406259A3582119EDA58.INSTANCE,
                                                                                                                org.kie.dmn.validation.DMNv1_2.P3E.LambdaExtractor3E4C557CE016FB931CCE09511B8F58EB.INSTANCE,
                                                                                                                java.lang.String.class),
                                                                                                D.reactOn("namespace")),
                                                         D.pattern(var_GENERATED_$pattern_ItemDefinition$45$).expr("GENERATED_9B3FC6FAA24604A530ECBAA1218BB9D1",
                                                                                                                   var_$typeRef,
                                                                                                                   var_$importName_2_sCoPe,
                                                                                                                   org.kie.dmn.validation.DMNv1_2.PA5.LambdaPredicateA57BC470C0DBC1F399991DD96121C8CA.INSTANCE,
                                                                                                                   D.reactOn("name")))),
                                             D.not(D.pattern(var_GENERATED_$pattern_Import$46$).expr("GENERATED_6AEA75A2C31C4EC12AADF38608D93828",
                                                                                                     org.kie.dmn.validation.DMNv1_2.P83.LambdaPredicate83BEB044CB599D59FE73E0A26FDDE45D.INSTANCE).expr("GENERATED_D588AE3DCF972EE095A4F1C9C24AF559",
                                                                                                                                                                                                       var_$typeRef,
                                                                                                                                                                                                       org.kie.dmn.validation.DMNv1_2.P19.LambdaPredicate199A2A1E8223232A6423F3EA4C4B56D9.INSTANCE,
                                                                                                                                                                                                       D.reactOn("name"))),
                                             D.on(var_$typeRef,
                                                  var_reporter,
                                                  var_$o).execute(org.kie.dmn.validation.DMNv1_2.PD5.LambdaConsequenceD52AE4661BAFB28DC5BAEBA0881F4033.INSTANCE));
        return rule;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy