aasaru / drools-training Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
When I run step 1 of section 7, the order of execution seems to be different from yours and as a result I don't see Visa's being deleted. In my case Passport rules get fired immediately after ValidateVisa. In your case its ValidateVisa, Issue Visa and then Passport validation. You also said something about renaming PassportValidation.drl to XPassportValidation.drl to make it fire later. Can you explain how?
Section 7. Enter step (1...4): 1
Running step 1
==> Passport[no:CA-SARAH-1, name:Sarah Murphy] inserted
==> Passport[no:CA-SIMON-2, name:Simon Murphy] inserted
==> Passport[no:AU-EMILY-3, name:Emily Brown] inserted
==> Passport[no:AU-JAMES-4, name:James Brown] inserted
==> VisaApplication(#1, pass:CA-SARAH-1) inserted
==> VisaApplication(#2, pass:CA-SIMON-2) inserted
==> VisaApplication(#3, pass:AU-EMILY-3) inserted
==> VisaApplication(#4, pass:AU-JAMES-4) inserted
==== DROOLS SESSION START ====
VisaApplication(#1, pass:CA-SARAH-1) is without validation info, consider OK for now
==> VisaApplication(#1, pass:CA-SARAH-1) updated
VisaApplication(#2, pass:CA-SIMON-2) is without validation info, consider OK for now
==> VisaApplication(#2, pass:CA-SIMON-2) updated
VisaApplication(#3, pass:AU-EMILY-3) is without validation info, consider OK for now
==> VisaApplication(#3, pass:AU-EMILY-3) updated
VisaApplication(#4, pass:AU-JAMES-4) is without validation info, consider OK for now
==> VisaApplication(#4, pass:AU-JAMES-4) updated
Set VisaApplication(#1, pass:CA-SARAH-1) invalid as Passport[no:CA-SARAH-1, name:Sarah Murphy] not valid 6 months after visit
==> VisaApplication(#1, pass:CA-SARAH-1) updated
Set VisaApplication(#4, pass:AU-JAMES-4) invalid as Passport[no:AU-JAMES-4, name:James Brown] not valid 6 months after visit
==> VisaApplication(#4, pass:AU-JAMES-4) updated
Passport[no:CA-SARAH-1, name:Sarah Murphy] is without validation info, consider OK for now
==> Passport[no:CA-SARAH-1, name:Sarah Murphy] updated
Passport[no:CA-SIMON-2, name:Simon Murphy] is without validation info, consider OK for now
==> Passport[no:CA-SIMON-2, name:Simon Murphy] updated
Passport[no:AU-EMILY-3, name:Emily Brown] is without validation info, consider OK for now
==> Passport[no:AU-EMILY-3, name:Emily Brown] updated
Passport[no:AU-JAMES-4, name:James Brown] is without validation info, consider OK for now
==> Passport[no:AU-JAMES-4, name:James Brown] updated
Passport[no:CA-SARAH-1, name:Sarah Murphy] is INVALID because it is expired
==> Passport[no:CA-SARAH-1, name:Sarah Murphy] updated
Passport[no:CA-SIMON-2, name:Simon Murphy] is INVALID because it has no space for visa
==> Passport[no:CA-SIMON-2, name:Simon Murphy] updated
Set VisaApplication(#2, pass:CA-SIMON-2) invalid as Passport[no:CA-SIMON-2, name:Simon Murphy] hasn't passed validation
==> VisaApplication(#2, pass:CA-SIMON-2) updated
Issue Visa[passport:AU-EMILY-3]
==> Visa[passport:AU-EMILY-3] inserted
==== DROOLS SESSION END ====
== Visas from session ==
Visa[passport:AU-EMILY-3]
hi, I tooked your drools course in udemy, I came up a case in here https://github.com/huahuayu/drools, which is to use rules to determine the final price for e-commerce. But I got below error I tried and searched but don't know how to fix it, would you please take a look of my project, thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.