org.kie.dmn.validation.DMNv1x.Rules8D6A06B2CA38F0645C450A91AA760788RuleMethods7 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 Rules8D6A06B2CA38F0645C450A91AA760788RuleMethods7 {
/**
* Rule name: NAME_NOT_TRIMMED
*/
public static org.drools.model.Rule rule_NAME__NOT__TRIMMED() {
final org.drools.model.Variable var_$ne = D.declarationOf(org.kie.dmn.model.api.NamedElement.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_NamedElement_Metadata_INSTANCE,
"$ne");
org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1x",
"NAME_NOT_TRIMMED")
.build(D.pattern(var_$ne).expr("GENERATED_25EEE26F58D9C5DBAFD0FE395D59D6EF",
org.kie.dmn.validation.DMNv1x.P27.LambdaPredicate27223C73F25FEB28B243D82F18F389BE.INSTANCE,
D.reactOn("name")).expr("GENERATED_0D3E1DB2261E3A155BF44A94F14C2905",
org.kie.dmn.validation.DMNv1x.P5F.LambdaPredicate5FFB511D0D4C02C2787DAAA7FB707861.INSTANCE,
D.reactOn("name")),
D.on(var_reporter,
var_$ne).execute(org.kie.dmn.validation.DMNv1x.PD4.LambdaConsequenceD4A0B9FC4ECBD96F5D55ACE700C9C25A.INSTANCE));
return rule;
}
/**
* Rule name: NAME_NOT_NORMALIZED
*/
public static org.drools.model.Rule rule_NAME__NOT__NORMALIZED() {
final org.drools.model.Variable var_$ne = D.declarationOf(org.kie.dmn.model.api.NamedElement.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_NamedElement_Metadata_INSTANCE,
"$ne");
org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1x",
"NAME_NOT_NORMALIZED")
.build(D.pattern(var_$ne).expr("GENERATED_25EEE26F58D9C5DBAFD0FE395D59D6EF",
org.kie.dmn.validation.DMNv1x.P27.LambdaPredicate27223C73F25FEB28B243D82F18F389BE.INSTANCE,
D.reactOn("name")).expr("GENERATED_EB9BE9F6E201C37623906E3E25FAADC6",
org.kie.dmn.validation.DMNv1x.P88.LambdaPredicate8860392C4502EB7EE980459561B6E9D8.INSTANCE,
D.reactOn("name")),
D.on(var_reporter,
var_$ne).execute(org.kie.dmn.validation.DMNv1x.P54.LambdaConsequence54C422751034DA44BD288006640EBD21.INSTANCE));
return rule;
}
/**
* Rule name: VARIABLE_LEADING_TRAILING_SPACES
*/
public static org.drools.model.Rule rule_VARIABLE__LEADING__TRAILING__SPACES() {
final org.drools.model.Variable var_$ce1 = D.declarationOf(org.kie.dmn.model.api.InformationItem.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_InformationItem_Metadata_INSTANCE,
"$ce1");
org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1x",
"VARIABLE_LEADING_TRAILING_SPACES")
.build(D.pattern(var_$ce1).expr("GENERATED_3C98BC30D10AA89F18352C6C7B0A6119",
org.kie.dmn.validation.DMNv1x.P10.LambdaPredicate10932A669E17DDE2E8838018485BC32A.INSTANCE,
D.reactOn("name")).expr("GENERATED_65EDA70288D1A7B6DFF9BF7D6241C096",
org.kie.dmn.validation.DMNv1x.P03.LambdaPredicate03F7DD7C616AF4614733FEA4F532C1E4.INSTANCE,
D.reactOn("name")).expr("GENERATED_F9142973FCC09D64DE0A09F6632B7811",
org.kie.dmn.validation.DMNv1x.P1E.LambdaPredicate1EDB057972A9A0C9EBD8EFC3A977D927.INSTANCE,
D.reactOn("parent")),
D.on(var_reporter,
var_$ce1).execute(org.kie.dmn.validation.DMNv1x.P67.LambdaConsequence677E0AFC2BE830A9465A05389058A1C4.INSTANCE));
return rule;
}
/**
* Rule name: DRGELEM_NOT_UNIQUE
*/
public static org.drools.model.Rule rule_DRGELEM__NOT__UNIQUE() {
final org.drools.model.Variable var_$x = D.declarationOf(org.kie.dmn.model.api.DRGElement.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_DRGElement_Metadata_INSTANCE,
"$x");
final org.drools.model.Variable var_$y = D.declarationOf(org.kie.dmn.model.api.DRGElement.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_DRGElement_Metadata_INSTANCE,
"$y");
org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1x",
"DRGELEM_NOT_UNIQUE")
.build(D.pattern(var_$x).expr("GENERATED_01BD058DE2C546258F267D69D7FF4047",
org.kie.dmn.validation.DMNv1x.P22.LambdaPredicate2278FDBA146B13158F88577ED9C5B410.INSTANCE,
D.reactOn("parent")).watch("parent",
"name"),
D.pattern(var_$y).expr("GENERATED_98B314F366D3617BF20E78AC68BB859A",
var_$x,
org.kie.dmn.validation.DMNv1x.P84.LambdaPredicate84B233E013C048C9D3C1AE59B5E799CB.INSTANCE,
D.betaIndexedBy(java.lang.String.class,
org.drools.model.Index.ConstraintType.EQUAL,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_DRGElement_Metadata_INSTANCE.getPropertyIndex("name"),
org.kie.dmn.validation.DMNv1x.PDE.LambdaExtractorDED7600CDE1E1CB609E4BE2949F55EF0.INSTANCE,
org.kie.dmn.validation.DMNv1x.P2B.LambdaExtractor2BE605E33EAE0D9005FB7E80654D778D.INSTANCE,
java.lang.String.class),
D.reactOn("name")).expr("GENERATED_01BD058DE2C546258F267D69D7FF4047",
org.kie.dmn.validation.DMNv1x.P22.LambdaPredicate2278FDBA146B13158F88577ED9C5B410.INSTANCE,
D.reactOn("parent")).expr("GENERATED_AC62C4FA389833389907F4318A21B732",
var_$x,
org.kie.dmn.validation.DMNv1x.P41.LambdaPredicate41E2A8ADFC529F59E6A8ED68E568659D.INSTANCE,
D.betaIndexedBy(org.kie.dmn.model.api.DMNModelInstrumentedBase.class,
org.drools.model.Index.ConstraintType.EQUAL,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_DRGElement_Metadata_INSTANCE.getPropertyIndex("parent"),
org.kie.dmn.validation.DMNv1x.P2F.LambdaExtractor2FDD1B1C2740AFA2163D6361031BCFBE.INSTANCE,
org.kie.dmn.validation.DMNv1x.P4C.LambdaExtractor4C9D75A906EF6107F293754E01B02D1B.INSTANCE,
org.kie.dmn.model.api.DMNModelInstrumentedBase.class),
D.reactOn("parent")).expr("GENERATED_13C5824FAE51EB52BE4FC9C6FBF96BB6",
var_$x,
org.kie.dmn.validation.DMNv1x.PC0.LambdaPredicateC00998E87A7AB4FA8A48C08AB954C4C5.INSTANCE,
D.betaIndexedBy(org.kie.dmn.model.api.DRGElement.class,
org.drools.model.Index.ConstraintType.NOT_EQUAL,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_DRGElement_Metadata_INSTANCE.getPropertyIndex("this"),
org.kie.dmn.validation.DMNv1x.PAE.LambdaExtractorAEA8E23D1963AA885B3EA0ACD88D74A9.INSTANCE,
org.kie.dmn.validation.DMNv1x.PB7.LambdaExtractorB704596072FE02787B6E6246710F9C4B.INSTANCE,
org.kie.dmn.model.api.DRGElement.class)),
D.on(var_$x,
var_reporter).execute(org.kie.dmn.validation.DMNv1x.PFF.LambdaConsequenceFF67ADEAC1F6942EF37DFA9C098F57AC.INSTANCE));
return rule;
}
/**
* Rule name: IMPORT_NAME_NOT_UNIQUE
*/
public static org.drools.model.Rule rule_IMPORT__NAME__NOT__UNIQUE() {
final org.drools.model.Variable var_$x = D.declarationOf(org.kie.dmn.model.api.Import.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_Import_Metadata_INSTANCE,
"$x");
final org.drools.model.Variable var_$y = D.declarationOf(org.kie.dmn.model.api.Import.class,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_Import_Metadata_INSTANCE,
"$y");
org.drools.model.Rule rule = D.rule("org.kie.dmn.validation.DMNv1x",
"IMPORT_NAME_NOT_UNIQUE")
.build(D.pattern(var_$x).expr("GENERATED_0F819BC417CE803049B6194B030260B1",
org.kie.dmn.validation.DMNv1x.PE1.LambdaPredicateE15862B4B1A28CF2119A462A4036FF4D.INSTANCE,
D.reactOn("parent")).watch("parent",
"name"),
D.pattern(var_$y).expr("GENERATED_B6143430DC6024590C52572D5CD5D2ED",
var_$x,
org.kie.dmn.validation.DMNv1x.P93.LambdaPredicate93F00FDAA5F94675287C610AA112FA32.INSTANCE,
D.betaIndexedBy(java.lang.String.class,
org.drools.model.Index.ConstraintType.EQUAL,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_Import_Metadata_INSTANCE.getPropertyIndex("name"),
org.kie.dmn.validation.DMNv1x.PD0.LambdaExtractorD0590AD64F024826AA29A17FE674190F.INSTANCE,
org.kie.dmn.validation.DMNv1x.P24.LambdaExtractor2417A4EBADEDE464545F23B92EA5375C.INSTANCE,
java.lang.String.class),
D.reactOn("name")).expr("GENERATED_0F819BC417CE803049B6194B030260B1",
org.kie.dmn.validation.DMNv1x.PE1.LambdaPredicateE15862B4B1A28CF2119A462A4036FF4D.INSTANCE,
D.reactOn("parent")).expr("GENERATED_58EEA78748E4200701964F70CAACD7AB",
var_$x,
org.kie.dmn.validation.DMNv1x.PF8.LambdaPredicateF87C44C35B50B39223DFABC4F74677A0.INSTANCE,
D.betaIndexedBy(org.kie.dmn.model.api.DMNModelInstrumentedBase.class,
org.drools.model.Index.ConstraintType.EQUAL,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_Import_Metadata_INSTANCE.getPropertyIndex("parent"),
org.kie.dmn.validation.DMNv1x.P6B.LambdaExtractor6B4C8BEE8CB07FA30175FA930DA5070C.INSTANCE,
org.kie.dmn.validation.DMNv1x.PFF.LambdaExtractorFF826574453D2F7E6F3D25B2E06DB229.INSTANCE,
org.kie.dmn.model.api.DMNModelInstrumentedBase.class),
D.reactOn("parent")).expr("GENERATED_4AA229554694349585B6563C0E18C8F2",
var_$x,
org.kie.dmn.validation.DMNv1x.P61.LambdaPredicate61E0B4582A6C35E3807AF853CA360538.INSTANCE,
D.betaIndexedBy(org.kie.dmn.model.api.Import.class,
org.drools.model.Index.ConstraintType.NOT_EQUAL,
DomainClassesMetadata8D6A06B2CA38F0645C450A91AA760788.org_kie_dmn_model_api_Import_Metadata_INSTANCE.getPropertyIndex("this"),
org.kie.dmn.validation.DMNv1x.PDB.LambdaExtractorDB92B0FBB90B250FF77FB76165BD6B40.INSTANCE,
org.kie.dmn.validation.DMNv1x.PB0.LambdaExtractorB0D1937C97CAFD38395DE94D15D07418.INSTANCE,
org.kie.dmn.model.api.Import.class)),
D.on(var_$x,
var_reporter).execute(org.kie.dmn.validation.DMNv1x.P0B.LambdaConsequence0B3D25012D3F921E7A2FEFA6BAF25ABA.INSTANCE));
return rule;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy