Class DMNAssemblerService

  • All Implemented Interfaces:
    java.lang.Comparable<org.kie.api.internal.utils.KieService>, org.kie.api.internal.assembler.KieAssemblerService, org.kie.api.internal.utils.KieService

    public class DMNAssemblerService
    extends java.lang.Object
    implements org.kie.api.internal.assembler.KieAssemblerService
    • Field Detail

      • ORG_KIE_DMN_PREFIX

        public static final java.lang.String ORG_KIE_DMN_PREFIX
        See Also:
        Constant Field Values
      • DMN_PROFILE_PREFIX

        public static final java.lang.String DMN_PROFILE_PREFIX
        See Also:
        Constant Field Values
      • DMN_RUNTIME_LISTENER_PREFIX

        public static final java.lang.String DMN_RUNTIME_LISTENER_PREFIX
        See Also:
        Constant Field Values
      • DMN_DECISION_LOGIC_COMPILER

        public static final java.lang.String DMN_DECISION_LOGIC_COMPILER
        See Also:
        Constant Field Values
      • DMN_COMPILER_CACHE_KEY

        public static final java.lang.String DMN_COMPILER_CACHE_KEY
        See Also:
        Constant Field Values
      • DMN_PROFILES_CACHE_KEY

        public static final java.lang.String DMN_PROFILES_CACHE_KEY
        See Also:
        Constant Field Values
    • Constructor Detail

      • DMNAssemblerService

        public DMNAssemblerService()
    • Method Detail

      • getResourceType

        public org.kie.api.io.ResourceType getResourceType()
        Specified by:
        getResourceType in interface org.kie.api.internal.assembler.KieAssemblerService
      • addResourcesAfterRules

        public void addResourcesAfterRules​(java.lang.Object kbuilder,
                                           java.util.Collection<org.kie.api.io.ResourceWithConfiguration> resources,
                                           org.kie.api.io.ResourceType type)
                                    throws java.lang.Exception
        Specified by:
        addResourcesAfterRules in interface org.kie.api.internal.assembler.KieAssemblerService
        Throws:
        java.lang.Exception
      • enrichDMNResourcesWithImportsDependencies

        public static void enrichDMNResourcesWithImportsDependencies​(java.util.List<DMNResource> dmnResources,
                                                                     java.util.Collection<org.kie.dmn.api.core.DMNModel> dmnModels)
      • addResourceAfterRules

        public void addResourceAfterRules​(java.lang.Object kbuilder,
                                          org.kie.api.io.Resource resource,
                                          org.kie.api.io.ResourceType type,
                                          org.kie.api.io.ResourceConfiguration configuration)
                                   throws java.lang.Exception
        Specified by:
        addResourceAfterRules in interface org.kie.api.internal.assembler.KieAssemblerService
        Throws:
        java.lang.Exception
      • getDMNProfiles

        protected java.util.List<DMNProfile> getDMNProfiles​(org.drools.compiler.builder.impl.KnowledgeBuilderImpl kbuilderImpl)
      • getDefaultDMNProfiles

        public static java.util.List<DMNProfile> getDefaultDMNProfiles​(org.kie.internal.utils.ChainedProperties properties)
      • isStrictMode

        public static boolean isStrictMode​(org.kie.internal.utils.ChainedProperties properties)
      • compilerConfigWithKModulePrefs

        public static DMNCompilerConfigurationImpl compilerConfigWithKModulePrefs​(java.lang.ClassLoader classLoader,
                                                                                  org.kie.internal.utils.ChainedProperties chainedProperties,
                                                                                  java.util.List<DMNProfile> dmnProfiles,
                                                                                  DMNCompilerConfigurationImpl config)
        Returns a DMNCompilerConfiguration with the specified properties set, and applying the explicited dmnProfiles.
        Parameters:
        classLoader -
        chainedProperties - applies properties --it does not do any classloading nor profile loading based on these properites, just passes the values.
        dmnProfiles - applies these DMNProfile(s) to the DMNCompilerConfiguration
        config -
        Returns: