[jboss-svn-commits] JBL Code SVN: r37362 - labs/jbossesb/branches/JBESB_4_10_CP/product/samples/quickstarts/business_ruleservice_stateful.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Thu Aug 4 15:17:55 EDT 2011
Author: tcunning
Date: 2011-08-04 15:17:55 -0400 (Thu, 04 Aug 2011)
New Revision: 37362
Modified:
labs/jbossesb/branches/JBESB_4_10_CP/product/samples/quickstarts/business_ruleservice_stateful/readme.txt
Log:
JBESB-3628
Add expected results to the readme to better explain what the user should see.
Modified: labs/jbossesb/branches/JBESB_4_10_CP/product/samples/quickstarts/business_ruleservice_stateful/readme.txt
===================================================================
--- labs/jbossesb/branches/JBESB_4_10_CP/product/samples/quickstarts/business_ruleservice_stateful/readme.txt 2011-08-04 16:02:02 UTC (rev 37361)
+++ labs/jbossesb/branches/JBESB_4_10_CP/product/samples/quickstarts/business_ruleservice_stateful/readme.txt 2011-08-04 19:17:55 UTC (rev 37362)
@@ -41,3 +41,56 @@
rules treat them as different objects. A real life implementation would detect
that the customer already existed, and only insert one customer object into the
engine stateful session.
+
+
+Expected Results :
+===================================
+What you should see in this quickstart is that when the previous order total
+is greater than or equal to $100, any subsequent order will get a 10% discount.
+Order2 will receive no discount because the previous total was 64.92, but
+Order3 should receive a discount.
+
+<cut>
+15:17:07,539 INFO [SetupMessage] Moved the transformed Order Header and Customer
+15:17:07,541 INFO [STDOUT] set discount of 0.0 on order 2 for customer user1
+15:17:07,541 INFO [STDOUT] set discount of 0.0 on order 1 for customer user1
+15:17:07,544 INFO [STDOUT] Customer user1 now has a shopping total of 129.84
+15:17:07,545 INFO [STDOUT] set discount of 0.0 on order 2 for customer user1
+15:17:07,545 INFO [STDOUT] Customer user1 now has a shopping total of 129.84
+15:17:07,545 INFO [STDOUT] { ================ After Order Discount
+15:17:07,545 INFO [STDOUT] Customer: user1,Harry,Fletcher,SD,0
+15:17:07,545 INFO [STDOUT] Order Priority: 1
+15:17:07,545 INFO [STDOUT] Order Discount: 0.0
+15:17:07,545 INFO [STDOUT] Order Total: 64.92
+15:17:07,546 INFO [STDOUT] } ================ After Order Discount
+15:17:07,551 INFO [STDOUT] Message before transformation:
+15:17:07,551 INFO [STDOUT] [<Order orderId="3" orderDate="Wed Nov 15 13:45:28 EST 2006" statusCode="2"
+netAmount="59.97" totalAmount="64.92" tax="4.95">
+
+ <Customer userName="user1" firstName="Harry" lastName="Fletcher" state="SD"/>
+ <OrderLines>
+ <OrderLine position="1" quantity="1">
+ <Product productId="567" title="X-MEn" price="29.98"/>
+ </OrderLine>
+ <OrderLine position="2" quantity="1">
+ <Product productId="499" title="X-Man 2" price="29.99"/>
+ </OrderLine>
+ </OrderLines>
+</Order>
+].
+15:17:07,557 INFO [SetupMessage] Moved the transformed Order Header and Customer
+15:17:07,558 INFO [STDOUT] set discount of 0.0 on order 3 for customer user1
+15:17:07,558 INFO [STDOUT] set discount of 0.0 on order 2 for customer user1
+15:17:07,558 INFO [STDOUT] set discount of 0.0 on order 1 for customer user1
+15:17:07,558 INFO [STDOUT] Customer user1 now has a shopping total of 194.76
+15:17:07,558 INFO [STDOUT] set discount of 10.0 on order 3 for customer user1
+15:17:07,558 INFO [STDOUT] set discount of 10.0 on order 3 for customer user1
+15:17:07,559 INFO [STDOUT] Customer user1 now has a shopping total of 194.76
+15:17:07,559 INFO [STDOUT] Customer user1 now has a shopping total of 194.76
+15:17:07,559 INFO [STDOUT] { ================ After Order Discount
+15:17:07,559 INFO [STDOUT] Customer: user1,Harry,Fletcher,SD,0
+15:17:07,559 INFO [STDOUT] Order Priority: 1
+15:17:07,559 INFO [STDOUT] Order Discount: 10.0
+15:17:07,559 INFO [STDOUT] Order Total: 64.92
+15:17:07,559 INFO [STDOUT] } ================ After Order Discount
+
More information about the jboss-svn-commits
mailing list