Class FluentKieModuleDeploymentHelper

    • Constructor Detail

      • FluentKieModuleDeploymentHelper

        public FluentKieModuleDeploymentHelper()
    • Method Detail

      • setGroupId

        public abstract FluentKieModuleDeploymentHelper setGroupId​(String groupId)
        Set the group id of the Kjar
        Parameters:
        groupId - The group id
        Returns:
        The helper instance
      • setArtifactId

        public abstract FluentKieModuleDeploymentHelper setArtifactId​(String artifactId)
        Set the artifact id of the Kjar
        Parameters:
        artifactId - The artifact id
        Returns:
        The helper instance
      • setVersion

        public abstract FluentKieModuleDeploymentHelper setVersion​(String version)
        Set the (pom) version of the Kjar
        Parameters:
        version - The version
        Returns:
        The helper instance
      • setKieSessionname

        public abstract FluentKieModuleDeploymentHelper setKieSessionname​(String ksessionName)
        Set the KieSession name.

        If you want to add multiple KieSession's, use the getKieModuleModel() method.
        Parameters:
        ksessionName - The KieSession name
        Returns:
        The helper instance
      • setResourceFilePaths

        public abstract FluentKieModuleDeploymentHelper setResourceFilePaths​(List<String> resourceFilePaths)
        Set the list of paths containing resources. If the path refers to a directory, all files in that directory will be added as resource files.
        Parameters:
        resourceFilePaths - The list of resource file paths
        Returns:
        The helper instance
      • addResourceFilePath

        public abstract FluentKieModuleDeploymentHelper addResourceFilePath​(String... resourceFilePath)
        Add a path containing one or more resources. If the path is a directory, all files in the directory will be added as resource files.
        Parameters:
        resourceFilePath - The resource file path
        Returns:
        The helper instance
      • setClasses

        public abstract FluentKieModuleDeploymentHelper setClasses​(List<Class<?>> classesForKjar)
        Set the list of classes to be added to the Kjar.
        Parameters:
        classesForKjar - The list of classes
        Returns:
        The helper instance
      • addClass

        public abstract FluentKieModuleDeploymentHelper addClass​(Class<?>... classForKjar)
        Add a class that should be included in the Kjar.
        Parameters:
        classForKjar - The class
        Returns:
        The helper instance
      • setDependencies

        public abstract FluentKieModuleDeploymentHelper setDependencies​(List<String> dependencies)
        Set the list of dependencies that the Kjar should use.
        Parameters:
        dependencies - The list of dependencies
        Returns:
        The helper instance
      • addDependencies

        public abstract FluentKieModuleDeploymentHelper addDependencies​(String... dependency)
        Add one or more dependencies (specified by a "G:A:V" string) that the Kjar should use.
        Parameters:
        dependency - One or more strings specifying a dependency
        Returns:
        The helper instance
      • getKieModuleModel

        public abstract org.kie.api.builder.model.KieModuleModel getKieModuleModel()
        Get the KieModuleModel. Use the KieModuleModel instance to add more KieBase or KieSession instances as well as add or change the default configuration of the KieSession's.
        Returns:
        The KieModuleModel instance
      • resetHelper

        public abstract FluentKieModuleDeploymentHelper resetHelper()
        Reset the helper. This clears ALL configuration that has been done up to this point on the helper instance.
        Returns:
        The helper instance
      • createKieJar

        public abstract org.kie.api.builder.KieModule createKieJar()
        Create the Kjar
        Returns:
        The KieModule that represents the Kjar
      • createKieJarAndDeployToMaven

        public abstract void createKieJarAndDeployToMaven()
        Create the Kjar and deploy (install) it to the local maven repository.