Giter Site home page Giter Site logo

drools-training's People

Contributors

aasaru avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

drools-training's Issues

Order of rules

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]

question about write drl file

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!

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.