peteyan/spring-boot-starter-drools


Spring Boot Starter for booting fast with the JBoss Business Rules Engine Drools Expert and KIE Components

Download


Step 1. Add the JitPack repository to your build file

Add it in your root settings.gradle at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url 'https://jitpack.io' }
		}
	}

Add it in your settings.gradle.kts at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url = uri("https://jitpack.io") }
		}
	}

Add to pom.xml

	<repositories>
		<repository>
		    <id>jitpack.io</id>
		    <url>https://jitpack.io</url>
		</repository>
	</repositories>

Add it in your build.sbt at the end of resolvers:

 
    resolvers += "jitpack" at "https://jitpack.io"
        
    

Add it in your project.clj at the end of repositories:

 
    :repositories [["jitpack" "https://jitpack.io"]]
        
    

Step 2. Add the dependency

	dependencies {
		implementation 'com.github.peteyan:spring-boot-starter-drools:1.0.0-SNAPSHOT'
	}
	dependencies {
		implementation("com.github.peteyan:spring-boot-starter-drools:1.0.0-SNAPSHOT")
	}
	<dependency>
	    <groupId>com.github.peteyan</groupId>
	    <artifactId>spring-boot-starter-drools</artifactId>
	    <version>1.0.0-SNAPSHOT</version>
	</dependency>

                            
    libraryDependencies += "com.github.peteyan" % "spring-boot-starter-drools" % "1.0.0-SNAPSHOT"
        
        

                            
    :dependencies [[com.github.peteyan/spring-boot-starter-drools "1.0.0-SNAPSHOT"]]
        
        

Readme


spring-boot-starter-drools

Build Status Coverage Status JitPack Status Release

Spring Boot Starter for booting fast with the JBoss Business Rules Engine Drools Expert and KIE Components

Howto

See the Testclass for how to use the drools-api (it's basicly the KieSession you need to interact with) or have a look at the springdrools example project, to see how to use the starter in your project.

There´s no official maven-repo-release, so you can use jitpack

Step 1. Add the JitPack repository to your build file

<repository>
    <id>jitpack.io</id>
    <url>https://jitpack.io</url>
</repository>

Step 2. Add the dependency in the form (change version to actual commit-id you can lookup here)

<dependency>
    <groupId>com.github.User</groupId>
    <artifactId>spring-boot-starter-drools</artifactId>
    <version>225907afae</version>
</dependency>

Improve

  • Error handling of Rules-Editing is bad (getting Cast-Exceptions, when Rules aren´t correctly defined - which happens 1000 times while developing...)

Drools Eclipse/STS tooling

  • if you´re using Spring Tool Suite, be shure you have 3.6.4 or higher, otherwise you get an installation error with drools described on stackoverflow
  • install drools with droolsupdatesite for 6.2.0.Final or if the version is old, get the newest from droolsdownload:

droolsEclipseTools