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

org.kie.dmn.validation.DMNv1x.Rules8D6A06B2CA38F0645C450A91AA760788RuleMethods10 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 Rules8D6A06B2CA38F0645C450A91AA760788RuleMethods10 {

    /**
     * Rule name: RELATION_ROW_CELLCOUNTMISMATCH
     */
    public static org.drools.model.Rule rule_RELATION__ROW__CELLCOUNTMISMATCH() {
        final org.drools.model.Variable var_$rel = D.declarationOf(org.kie.dmn.model.api.Relation.class,
                                                                                                   DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_Relation_Metadata_INSTANCE,
                                                                                                   "$rel");
        final org.drools.model.Variable var_$row = D.declarationOf(org.kie.dmn.model.api.List.class,
                                                                                               DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_List_Metadata_INSTANCE,
                                                                                               "$row",
                                                                                               D.from(var_$rel,
                                                                                                      org.kie.dmn.validation.DMNv1x.P23.LambdaExtractor239A1623286806673934631FF26AD29A.INSTANCE));
        org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1x",
                                            "RELATION_ROW_CELLCOUNTMISMATCH")
                                      .build(D.pattern(var_$rel).watch("column"),
                                             D.pattern(var_$row).expr("GENERATED_27E3A79898EEB5BA9B5BDDEFC44C1A5E",
                                                                      var_$rel,
                                                                      org.kie.dmn.validation.DMNv1x.P55.LambdaPredicate559E3DB9A0074B90C682AEACD11E19F0.INSTANCE,
                                                                      D.reactOn("expression")),
                                             D.on(var_$row,
                                                  var_$rel,
                                                  var_reporter).execute(org.kie.dmn.validation.DMNv1x.PE0.LambdaConsequenceE0BE7CBC25E4A186FA8451D3540834EB.INSTANCE));
        return rule;
    }

    /**
     * Rule name: ORG_UNIT_DECISION_MADE_WRONG_TYPE
     */
    public static org.drools.model.Rule rule_ORG__UNIT__DECISION__MADE__WRONG__TYPE() {
        final org.drools.model.Variable var_$d = D.declarationOf(org.kie.dmn.model.api.OrganizationUnit.class,
                                                                                                         DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_OrganizationUnit_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.P91.LambdaExtractor9114979F3EE159BE98099561DE890582.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",
                                            "ORG_UNIT_DECISION_MADE_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_F92F0AA9BAA9C787FEC1DCD95377596F",
                                                                                                org.kie.dmn.validation.DMNv1x.P63.LambdaPredicate63E412B85433202C34C6F62B25769CB4.INSTANCE),
                                             D.on(var_$d,
                                                  var_$element,
                                                  var_reporter,
                                                  var_$elemRef).execute(org.kie.dmn.validation.DMNv1x.P23.LambdaConsequence23A2EF21EE85FB685C92A59FA8BB8267.INSTANCE));
        return rule;
    }

    /**
     * Rule name: ORG_UNIT_DECISION_OWNED_WRONG_TYPE
     */
    public static org.drools.model.Rule rule_ORG__UNIT__DECISION__OWNED__WRONG__TYPE() {
        final org.drools.model.Variable var_$d = D.declarationOf(org.kie.dmn.model.api.OrganizationUnit.class,
                                                                                                         DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_OrganizationUnit_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.P98.LambdaExtractor98C26617E250F8357CCCEF56435A3634.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",
                                            "ORG_UNIT_DECISION_OWNED_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_F92F0AA9BAA9C787FEC1DCD95377596F",
                                                                                                org.kie.dmn.validation.DMNv1x.P63.LambdaPredicate63E412B85433202C34C6F62B25769CB4.INSTANCE),
                                             D.on(var_$d,
                                                  var_$element,
                                                  var_reporter,
                                                  var_$elemRef).execute(org.kie.dmn.validation.DMNv1x.P23.LambdaConsequence23A2EF21EE85FB685C92A59FA8BB8267.INSTANCE));
        return rule;
    }

    /**
     * Rule name: PERF_INDICATOR_IMP_DECISION_WRONG_TYPE
     */
    public static org.drools.model.Rule rule_PERF__INDICATOR__IMP__DECISION__WRONG__TYPE() {
        final org.drools.model.Variable var_$d = D.declarationOf(org.kie.dmn.model.api.PerformanceIndicator.class,
                                                                                                             DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_PerformanceIndicator_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.P2A.LambdaExtractor2A509F481F8DFC3F2C382238CAA8CA49.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",
                                            "PERF_INDICATOR_IMP_DECISION_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_F92F0AA9BAA9C787FEC1DCD95377596F",
                                                                                                org.kie.dmn.validation.DMNv1x.P63.LambdaPredicate63E412B85433202C34C6F62B25769CB4.INSTANCE),
                                             D.on(var_$d,
                                                  var_$element,
                                                  var_reporter,
                                                  var_$elemRef).execute(org.kie.dmn.validation.DMNv1x.P9E.LambdaConsequence9E49510AF95F74AE97F164B8AF166136.INSTANCE));
        return rule;
    }

    /**
     * Rule name: ELEMREF_NOHASH_p1
     */
    public static org.drools.model.Rule rule_ELEMREF__NOHASH__p1() {
        final org.drools.model.Variable var_GENERATED_$pattern_Import$61$ = D.declarationOf(org.kie.dmn.model.api.Import.class,
                                                                                                                          DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_Import_Metadata_INSTANCE,
                                                                                                                          "GENERATED_$pattern_Import$61$");
        final org.drools.model.Variable var_$oc = D.declarationOf(org.kie.dmn.model.api.DMNElementReference.class,
                                                                                                             DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_DMNElementReference_Metadata_INSTANCE,
                                                                                                             "$oc");
        org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1x",
                                            "ELEMREF_NOHASH_p1")
                                      .build(D.not(D.pattern(var_GENERATED_$pattern_Import$61$)),
                                             D.pattern(var_$oc).expr("GENERATED_85086920CAFE922F17B38B6717C879F6",
                                                                     org.kie.dmn.validation.DMNv1x.P6E.LambdaPredicate6EDE41D5C86D621D4A9BD10D69D08DA2.INSTANCE,
                                                                     D.reactOn("href")).expr("GENERATED_CCD95C0CBE2FE5CF935563A8046E3192",
                                                                                             org.kie.dmn.validation.DMNv1x.P56.LambdaPredicate563CB88AE2A0BC5E34C89DE2BE036D78.INSTANCE,
                                                                                             D.reactOn("href")),
                                             D.on(var_$oc,
                                                  var_reporter).execute(org.kie.dmn.validation.DMNv1x.P36.LambdaConsequence36DD8C174851094EDD22802535301100.INSTANCE));
        return rule;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy