Package org.drools.examples.petstore
Class PetStoreExample.CheckoutCallback
java.lang.Object
org.drools.examples.petstore.PetStoreExample.CheckoutCallback
- Enclosing class:
- PetStoreExample
This callback is called when the user pressed the checkout button. It is
responsible for adding the items to the shopping cart, asserting the shopping
cart and then firing all rules.
A reference to the JFrame is also passed so the rules can launch dialog boxes
for user interaction. It uses the ApplicationData feature for this.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CheckoutCallback
-
-
Method Details
-
setOutput
-
checkout
Populate the cart and assert into working memory Pass Jframe reference for user interaction- Parameters:
frame-items-- Returns:
- cart.toString();
-