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

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

    /**
     * Rule name: DTABLE_MULTIPLEOUT_NAME
     */
    public static org.drools.model.Rule rule_DTABLE__MULTIPLEOUT__NAME() {
        final org.drools.model.Variable var_$oc = D.declarationOf(org.kie.dmn.model.api.OutputClause.class,
                                                                                                      DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_OutputClause_Metadata_INSTANCE,
                                                                                                      "$oc");
        org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1x",
                                            "DTABLE_MULTIPLEOUT_NAME")
                                      .build(D.pattern(var_$oc).expr("GENERATED_93873BDC724128D846CCD91C5542168E",
                                                                     org.kie.dmn.validation.DMNv1x.P37.LambdaPredicate378EE83A9C54F7209EBC99240C7E30D4.INSTANCE,
                                                                     D.reactOn("parent")).expr("GENERATED_276A2D9F68B08AEC14FD78DBF84A5EC9",
                                                                                               org.kie.dmn.validation.DMNv1x.P43.LambdaPredicate430FD54BCDFCD415B062C5A0AF9903A0.INSTANCE,
                                                                                               D.alphaIndexedBy(int.class,
                                                                                                                org.drools.model.Index.ConstraintType.GREATER_THAN,
                                                                                                                -1,
                                                                                                                org.kie.dmn.validation.DMNv1x.P46.LambdaExtractor469BC8B803DEA89CD16D90635D0E83A0.INSTANCE,
                                                                                                                1),
                                                                                               D.reactOn("parent")).expr("GENERATED_80064EBC622A90E6E5DFAA1803F61C74",
                                                                                                                         org.kie.dmn.validation.DMNv1x.P4E.LambdaPredicate4E7C77FDAAE563E6CFC7C0946066E93B.INSTANCE,
                                                                                                                         D.reactOn("name")),
                                             D.on(var_$oc,
                                                  var_reporter).execute(org.kie.dmn.validation.DMNv1x.P81.LambdaConsequence8126835ED22CD4027B1E17DFEC712085.INSTANCE));
        return rule;
    }

    /**
     * Rule name: DTABLE_MULTIPLEOUT_TYPEREF
     */
    public static org.drools.model.Rule rule_DTABLE__MULTIPLEOUT__TYPEREF() {
        final org.drools.model.Variable var_$oc = D.declarationOf(org.kie.dmn.model.api.OutputClause.class,
                                                                                                      DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_OutputClause_Metadata_INSTANCE,
                                                                                                      "$oc");
        org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1x",
                                            "DTABLE_MULTIPLEOUT_TYPEREF")
                                      .build(D.pattern(var_$oc).expr("GENERATED_93873BDC724128D846CCD91C5542168E",
                                                                     org.kie.dmn.validation.DMNv1x.P37.LambdaPredicate378EE83A9C54F7209EBC99240C7E30D4.INSTANCE,
                                                                     D.reactOn("parent")).expr("GENERATED_276A2D9F68B08AEC14FD78DBF84A5EC9",
                                                                                               org.kie.dmn.validation.DMNv1x.P43.LambdaPredicate430FD54BCDFCD415B062C5A0AF9903A0.INSTANCE,
                                                                                               D.alphaIndexedBy(int.class,
                                                                                                                org.drools.model.Index.ConstraintType.GREATER_THAN,
                                                                                                                -1,
                                                                                                                org.kie.dmn.validation.DMNv1x.P46.LambdaExtractor469BC8B803DEA89CD16D90635D0E83A0.INSTANCE,
                                                                                                                1),
                                                                                               D.reactOn("parent")).expr("GENERATED_4C76D1A853822EA6FBDE348BC200D2D2",
                                                                                                                         org.kie.dmn.validation.DMNv1x.PC9.LambdaPredicateC936C1E0B4CCD79DFC075CCE9820EADE.INSTANCE,
                                                                                                                         D.reactOn("typeRef")),
                                             D.on(var_$oc,
                                                  var_reporter).execute(org.kie.dmn.validation.DMNv1x.PD6.LambdaConsequenceD654553143B26DC090409EECCA6B6015.INSTANCE));
        return rule;
    }

    /**
     * Rule name: DTABLE_PRIORITY_MISSING_OUTVALS
     */
    public static org.drools.model.Rule rule_DTABLE__PRIORITY__MISSING__OUTVALS() {
        final org.drools.model.Variable var_$oc = D.declarationOf(org.kie.dmn.model.api.OutputClause.class,
                                                                                                      DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_OutputClause_Metadata_INSTANCE,
                                                                                                      "$oc");
        org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1x",
                                            "DTABLE_PRIORITY_MISSING_OUTVALS")
                                      .build(D.pattern(var_$oc).expr("GENERATED_93873BDC724128D846CCD91C5542168E",
                                                                     org.kie.dmn.validation.DMNv1x.P37.LambdaPredicate378EE83A9C54F7209EBC99240C7E30D4.INSTANCE,
                                                                     D.reactOn("parent")).expr("GENERATED_93873BDC724128D846CCD91C5542168E",
                                                                                               org.kie.dmn.validation.DMNv1x.P37.LambdaPredicate378EE83A9C54F7209EBC99240C7E30D4.INSTANCE,
                                                                                               D.reactOn("parent")).expr("GENERATED_5CDFDCA8EE62FE15F870735F66973F94",
                                                                                                                         org.kie.dmn.validation.DMNv1x.PCB.LambdaPredicateCBE8401E6C95C928A193283510E73ADE.INSTANCE,
                                                                                                                         D.reactOn("parent")).expr("GENERATED_76DCF8D44DD7106382E3C30D003B9FB2",
                                                                                                                                                   org.kie.dmn.validation.DMNv1x.P06.LambdaPredicate06D34D891AC6188B8F7641F9CACFCCE3.INSTANCE,
                                                                                                                                                   D.reactOn("outputValues")),
                                             D.on(var_$oc,
                                                  var_reporter).execute(org.kie.dmn.validation.DMNv1x.P42.LambdaConsequence420CF32BC5C0094A4985BBD2E1402B7F.INSTANCE));
        return rule;
    }

    /**
     * Rule name: DTABLE_SINGLEOUT_NONAME
     */
    public static org.drools.model.Rule rule_DTABLE__SINGLEOUT__NONAME() {
        final org.drools.model.Variable var_$oc = D.declarationOf(org.kie.dmn.model.api.OutputClause.class,
                                                                                                      DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_OutputClause_Metadata_INSTANCE,
                                                                                                      "$oc");
        org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1x",
                                            "DTABLE_SINGLEOUT_NONAME")
                                      .build(D.pattern(var_$oc).expr("GENERATED_93873BDC724128D846CCD91C5542168E",
                                                                     org.kie.dmn.validation.DMNv1x.P37.LambdaPredicate378EE83A9C54F7209EBC99240C7E30D4.INSTANCE,
                                                                     D.reactOn("parent")).expr("GENERATED_32D4037938059E80669809223DFBB09C",
                                                                                               org.kie.dmn.validation.DMNv1x.P22.LambdaPredicate22F96019520E549E21F2F241742DA42F.INSTANCE,
                                                                                               D.alphaIndexedBy(int.class,
                                                                                                                org.drools.model.Index.ConstraintType.EQUAL,
                                                                                                                -1,
                                                                                                                org.kie.dmn.validation.DMNv1x.P46.LambdaExtractor469BC8B803DEA89CD16D90635D0E83A0.INSTANCE,
                                                                                                                1),
                                                                                               D.reactOn("parent")).expr("GENERATED_5AEA3648AC07B7897E9C33E0BBBD8A69",
                                                                                                                         org.kie.dmn.validation.DMNv1x.PD9.LambdaPredicateD9B7E989D5C431B281025898316C37A4.INSTANCE,
                                                                                                                         D.reactOn("name")),
                                             D.on(var_$oc,
                                                  var_reporter).execute(org.kie.dmn.validation.DMNv1x.P34.LambdaConsequence34206CDFD11B7339050822BD41A05C01.INSTANCE));
        return rule;
    }

    /**
     * Rule name: DTABLE_SINGLEOUT_TYPEREF
     */
    public static org.drools.model.Rule rule_DTABLE__SINGLEOUT__TYPEREF() {
        final org.drools.model.Variable var_$oc = D.declarationOf(org.kie.dmn.model.api.OutputClause.class,
                                                                                                      DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_OutputClause_Metadata_INSTANCE,
                                                                                                      "$oc");
        org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1x",
                                            "DTABLE_SINGLEOUT_TYPEREF")
                                      .build(D.pattern(var_$oc).expr("GENERATED_93873BDC724128D846CCD91C5542168E",
                                                                     org.kie.dmn.validation.DMNv1x.P37.LambdaPredicate378EE83A9C54F7209EBC99240C7E30D4.INSTANCE,
                                                                     D.reactOn("parent")).expr("GENERATED_32D4037938059E80669809223DFBB09C",
                                                                                               org.kie.dmn.validation.DMNv1x.P22.LambdaPredicate22F96019520E549E21F2F241742DA42F.INSTANCE,
                                                                                               D.alphaIndexedBy(int.class,
                                                                                                                org.drools.model.Index.ConstraintType.EQUAL,
                                                                                                                -1,
                                                                                                                org.kie.dmn.validation.DMNv1x.P46.LambdaExtractor469BC8B803DEA89CD16D90635D0E83A0.INSTANCE,
                                                                                                                1),
                                                                                               D.reactOn("parent")).expr("GENERATED_3B404FC3EFA1608F20DF7B4EC4719EAA",
                                                                                                                         org.kie.dmn.validation.DMNv1x.P8E.LambdaPredicate8E2AB324B253D44BFFC5AA0FF53960BB.INSTANCE,
                                                                                                                         D.reactOn("typeRef")),
                                             D.on(var_$oc,
                                                  var_reporter).execute(org.kie.dmn.validation.DMNv1x.PA9.LambdaConsequenceA91EDB8718BA9F654B9EBEF16E7446B6.INSTANCE));
        return rule;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy