Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove example using the durability API that has been removed. This … #11

Conversation

WilliamParker
Copy link
Collaborator

…will be replaced later with a new example using the new API.

Output of "lein run -m clara.examples":

Shopping examples:
VIP shopping example:
10 % :vip discount???
Summer special and widget promotion example:
20 % :summer-special discount???
Free :lunch for promotion :free-lunch-with-gizmo
Free :widget for promotion :free-widget-month

JavaBean Shopping examples from Clojure:
Promotion: Awesome promotion for our favorite VIP!

JavaBean Shopping examples from Java:
Query result: DESCRIPTION: Awesome promotion for our favorite VIP!

Validation examples:
Failed validation:
Validation issue:  HVAC repairs must include a 27B-6 form.
Validation issue:  Insufficient time prior to due date of the large order.
Validation with appropriate client tier and paperwork.

Sensor examples:
Reducing speed of  #clara.examples.sensors.Device{:id 456, :location :room-1}
Reducing speed of  #clara.examples.sensors.Device{:id 123, :location :room-1}
ALERT: temperature of 130 at :room-1 in sector :sector-5
Increasing speed of  #clara.examples.sensors.Device{:id 123, :location :room-1}
Increasing speed of  #clara.examples.sensors.Device{:id 456, :location :room-1}

Discounts when a customer is both a NewCustomer and a ValuedCustomer:  ({:?order-id 1, :?amount 20} {:?order-id 1, :?amount 5} {:?order-id 1, :?amount 5})
Discounts when the customer is noted as new twice in the session:  ({:?order-id 1, :?amount 5} {:?order-id 1, :?amount 5})
Discounts when there is a CustomerAppreciationDay, but it does not match the CurrentDay:  ()
Discounts when an Order matches both branches of clojure.core/or :  ({:?order-id 3, :?amount 10})

Boolean expression examples:
Discounts when a customer is both a NewCustomer and a ValuedCustomer:  ({:?order-id 1, :?amount 20} {:?order-id 1, :?amount 5} {:?order-id 1, :?amount 5})
Discounts when the customer is noted as new twice in the session:  ({:?order-id 1, :?amount 5} {:?order-id 1, :?amount 5})
Discounts when there is a CustomerAppreciationDay, but it does not match the CurrentDay:  ()
Discounts when an Order matches both branches of clojure.core/or :  ({:?order-id 3, :?amount 10})

Fact type options examples:
Query result with a fact of type :temperature-reading :  ({:?good-weather false})
Query result with a custom ancestors function and a fact with a type that descends from :temperature-reading :  ({:?good-weather false})

…ill be replaced later with a new example using the new API.
@WilliamParker
Copy link
Collaborator Author

Discussed previously on #8

@WilliamParker WilliamParker merged commit 98f0b4f into oracle-samples:master Jan 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant