Skip to content

Commit

Permalink
add license
Browse files Browse the repository at this point in the history
  • Loading branch information
aasaru committed Dec 1, 2023
1 parent e6094a6 commit 586131a
Show file tree
Hide file tree
Showing 35 changed files with 342 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
This project is part of Drools video course
[Master Drools Programming—Learn How to Write Drools Rules](https://www.udemy.com/course/master-drools/?referralCode=ED7C311E09498C940742 "Click to go to Udemy course")

The instructions how to run this code are given in the course.
The instructions for how to run this code are given in the course.
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* Drools Online Course Sample Code and Study Materials (c) by Juhan Aasaru.
*
* Drools Online Course Sample Code and Study Materials is licensed under a
* Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
*
* You should have received a copy of the license along with this work.
* If not, see <http://creativecommons.org/licenses/by-nc-nd/4.0/>.
*/

package io.github.aasaru.droolsoopath.query;

import io.github.aasaru.drools.domain.*;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* Drools Online Course Sample Code and Study Materials (c) by Juhan Aasaru.
*
* Drools Online Course Sample Code and Study Materials is licensed under a
* Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
*
* You should have received a copy of the license along with this work.
* If not, see <http://creativecommons.org/licenses/by-nc-nd/4.0/>.
*/

package io.github.aasaru.droolsoopath.ruledata;

import io.github.aasaru.drools.domain.Passport;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* Drools Online Course Sample Code and Study Materials (c) by Juhan Aasaru.
*
* Drools Online Course Sample Code and Study Materials is licensed under a
* Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
*
* You should have received a copy of the license along with this work.
* If not, see <http://creativecommons.org/licenses/by-nc-nd/4.0/>.
*/

package io.github.aasaru.droolsoopath.ruledata;

import org.drools.ruleunits.api.RuleUnitData;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* Drools Online Course Sample Code and Study Materials (c) by Juhan Aasaru.
*
* Drools Online Course Sample Code and Study Materials is licensed under a
* Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
*
* You should have received a copy of the license along with this work.
* If not, see <http://creativecommons.org/licenses/by-nc-nd/4.0/>.
*/

package io.github.aasaru.droolsoopath.section03.step1;

import org.drools.ruleunits.api.RuleUnitData;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* Drools Online Course Sample Code and Study Materials (c) by Juhan Aasaru.
*
* Drools Online Course Sample Code and Study Materials is licensed under a
* Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
*
* You should have received a copy of the license along with this work.
* If not, see <http://creativecommons.org/licenses/by-nc-nd/4.0/>.
*/

package io.github.aasaru.droolsoopath.section03.step2;

import org.drools.ruleunits.api.RuleUnitData;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* Drools Online Course Sample Code and Study Materials (c) by Juhan Aasaru.
*
* Drools Online Course Sample Code and Study Materials is licensed under a
* Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
*
* You should have received a copy of the license along with this work.
* If not, see <http://creativecommons.org/licenses/by-nc-nd/4.0/>.
*/

package io.github.aasaru.droolsoopath.section03.step3;

import org.drools.ruleunits.api.RuleUnitData;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* Drools Online Course Sample Code and Study Materials (c) by Juhan Aasaru.
*
* Drools Online Course Sample Code and Study Materials is licensed under a
* Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
*
* You should have received a copy of the license along with this work.
* If not, see <http://creativecommons.org/licenses/by-nc-nd/4.0/>.
*/

package io.github.aasaru.droolsoopath.section03.step4;

import org.drools.ruleunits.api.RuleUnitData;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* Drools Online Course Sample Code and Study Materials (c) by Juhan Aasaru.
*
* Drools Online Course Sample Code and Study Materials is licensed under a
* Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
*
* You should have received a copy of the license along with this work.
* If not, see <http://creativecommons.org/licenses/by-nc-nd/4.0/>.
*/

package io.github.aasaru.droolsoopath.section03.step5;

import org.drools.ruleunits.api.RuleUnitData;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* Drools Online Course Sample Code and Study Materials (c) by Juhan Aasaru.
*
* Drools Online Course Sample Code and Study Materials is licensed under a
* Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
*
* You should have received a copy of the license along with this work.
* If not, see <http://creativecommons.org/licenses/by-nc-nd/4.0/>.
*/

package io.github.aasaru.droolsoopath.section03.step6;

import org.drools.ruleunits.api.RuleUnitData;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* Drools Online Course Sample Code and Study Materials (c) by Juhan Aasaru.
*
* Drools Online Course Sample Code and Study Materials is licensed under a
* Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
*
* You should have received a copy of the license along with this work.
* If not, see <http://creativecommons.org/licenses/by-nc-nd/4.0/>.
*/

package io.github.aasaru.droolsoopath.section04;

import io.github.aasaru.drools.Common;
Expand Down Expand Up @@ -32,9 +42,7 @@ static void execute(int step) {
}

System.out.println("==== PASSPORTS AFTER RULES WERE FIRED === ");
passports.forEach(passport -> {
System.out.println(passport + " verdict: " + passport.getValidation() + ", cause: " + passport.getCause());
});
passports.forEach(passport -> System.out.println(passport + " verdict: " + passport.getValidation() + ", cause: " + passport.getCause()));
}

}
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* Drools Online Course Sample Code and Study Materials (c) by Juhan Aasaru.
*
* Drools Online Course Sample Code and Study Materials is licensed under a
* Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
*
* You should have received a copy of the license along with this work.
* If not, see <http://creativecommons.org/licenses/by-nc-nd/4.0/>.
*/

package io.github.aasaru.droolsoopath.section04.step1;

import org.drools.ruleunits.api.RuleUnitData;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* Drools Online Course Sample Code and Study Materials (c) by Juhan Aasaru.
*
* Drools Online Course Sample Code and Study Materials is licensed under a
* Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
*
* You should have received a copy of the license along with this work.
* If not, see <http://creativecommons.org/licenses/by-nc-nd/4.0/>.
*/

package io.github.aasaru.droolsoopath.section04.step2;

import org.drools.ruleunits.api.RuleUnitData;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* Drools Online Course Sample Code and Study Materials (c) by Juhan Aasaru.
*
* Drools Online Course Sample Code and Study Materials is licensed under a
* Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
*
* You should have received a copy of the license along with this work.
* If not, see <http://creativecommons.org/licenses/by-nc-nd/4.0/>.
*/

package io.github.aasaru.droolsoopath.section05;

import io.github.aasaru.drools.domain.Passport;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* Drools Online Course Sample Code and Study Materials (c) by Juhan Aasaru.
*
* Drools Online Course Sample Code and Study Materials is licensed under a
* Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
*
* You should have received a copy of the license along with this work.
* If not, see <http://creativecommons.org/licenses/by-nc-nd/4.0/>.
*/

package io.github.aasaru.droolsoopath.section05.step1;

import org.drools.ruleunits.api.RuleUnitData;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* Drools Online Course Sample Code and Study Materials (c) by Juhan Aasaru.
*
* Drools Online Course Sample Code and Study Materials is licensed under a
* Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
*
* You should have received a copy of the license along with this work.
* If not, see <http://creativecommons.org/licenses/by-nc-nd/4.0/>.
*/

package io.github.aasaru.droolsoopath.section05.step2;

import org.drools.ruleunits.api.RuleUnitData;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* Drools Online Course Sample Code and Study Materials (c) by Juhan Aasaru.
*
* Drools Online Course Sample Code and Study Materials is licensed under a
* Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
*
* You should have received a copy of the license along with this work.
* If not, see <http://creativecommons.org/licenses/by-nc-nd/4.0/>.
*/

package io.github.aasaru.droolsoopath.section05.step3;

import org.drools.ruleunits.api.RuleUnitData;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* Drools Online Course Sample Code and Study Materials (c) by Juhan Aasaru.
*
* Drools Online Course Sample Code and Study Materials is licensed under a
* Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
*
* You should have received a copy of the license along with this work.
* If not, see <http://creativecommons.org/licenses/by-nc-nd/4.0/>.
*/

package io.github.aasaru.droolsoopath.section06;

import io.github.aasaru.drools.domain.Passport;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* Drools Online Course Sample Code and Study Materials (c) by Juhan Aasaru.
*
* Drools Online Course Sample Code and Study Materials is licensed under a
* Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
*
* You should have received a copy of the license along with this work.
* If not, see <http://creativecommons.org/licenses/by-nc-nd/4.0/>.
*/

package io.github.aasaru.droolsoopath.section06.step1;

import org.drools.ruleunits.api.RuleUnitData;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* Drools Online Course Sample Code and Study Materials (c) by Juhan Aasaru.
*
* Drools Online Course Sample Code and Study Materials is licensed under a
* Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
*
* You should have received a copy of the license along with this work.
* If not, see <http://creativecommons.org/licenses/by-nc-nd/4.0/>.
*/

package io.github.aasaru.droolsoopath.section06.step2;

import org.drools.ruleunits.api.RuleUnitData;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* Drools Online Course Sample Code and Study Materials (c) by Juhan Aasaru.
*
* Drools Online Course Sample Code and Study Materials is licensed under a
* Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
*
* You should have received a copy of the license along with this work.
* If not, see <http://creativecommons.org/licenses/by-nc-nd/4.0/>.
*/

package io.github.aasaru.droolsoopath.section07;

import io.github.aasaru.drools.domain.*;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* Drools Online Course Sample Code and Study Materials (c) by Juhan Aasaru.
*
* Drools Online Course Sample Code and Study Materials is licensed under a
* Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
*
* You should have received a copy of the license along with this work.
* If not, see <http://creativecommons.org/licenses/by-nc-nd/4.0/>.
*/

package io.github.aasaru.droolsoopath.section07.step1;

import org.drools.ruleunits.api.RuleUnitData;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* Drools Online Course Sample Code and Study Materials (c) by Juhan Aasaru.
*
* Drools Online Course Sample Code and Study Materials is licensed under a
* Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
*
* You should have received a copy of the license along with this work.
* If not, see <http://creativecommons.org/licenses/by-nc-nd/4.0/>.
*/

package io.github.aasaru.droolsoopath.section07.step2;

import org.drools.ruleunits.api.RuleUnitData;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* Drools Online Course Sample Code and Study Materials (c) by Juhan Aasaru.
*
* Drools Online Course Sample Code and Study Materials is licensed under a
* Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
*
* You should have received a copy of the license along with this work.
* If not, see <http://creativecommons.org/licenses/by-nc-nd/4.0/>.
*/

package io.github.aasaru.droolsoopath.section07.step3;

import org.drools.ruleunits.api.RuleUnitData;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* Drools Online Course Sample Code and Study Materials (c) by Juhan Aasaru.
*
* Drools Online Course Sample Code and Study Materials is licensed under a
* Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
*
* You should have received a copy of the license along with this work.
* If not, see <http://creativecommons.org/licenses/by-nc-nd/4.0/>.
*/

package io.github.aasaru.droolsoopath.section07.step4;

import org.drools.ruleunits.api.RuleUnitData;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* Drools Online Course Sample Code and Study Materials (c) by Juhan Aasaru.
*
* Drools Online Course Sample Code and Study Materials is licensed under a
* Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
*
* You should have received a copy of the license along with this work.
* If not, see <http://creativecommons.org/licenses/by-nc-nd/4.0/>.
*/

package io.github.aasaru.droolsoopath.section08;

import io.github.aasaru.drools.domain.*;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* Drools Online Course Sample Code and Study Materials (c) by Juhan Aasaru.
*
* Drools Online Course Sample Code and Study Materials is licensed under a
* Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
*
* You should have received a copy of the license along with this work.
* If not, see <http://creativecommons.org/licenses/by-nc-nd/4.0/>.
*/

package io.github.aasaru.droolsoopath.section08.step1;

public class RuleUnitSection08 extends io.github.aasaru.droolsoopath.section08.RuleUnitSection08 {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* Drools Online Course Sample Code and Study Materials (c) by Juhan Aasaru.
*
* Drools Online Course Sample Code and Study Materials is licensed under a
* Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
*
* You should have received a copy of the license along with this work.
* If not, see <http://creativecommons.org/licenses/by-nc-nd/4.0/>.
*/

package io.github.aasaru.droolsoopath.section08.step3;

public class RuleUnitSection08 extends io.github.aasaru.droolsoopath.section08.RuleUnitSection08 {
Expand Down
Loading

0 comments on commit 586131a

Please sign in to comment.