This is a step-by-step account of how to develop a web application from scratch using Google Web Toolkit (GWT) and OpenRules. We will implement an application that will greet a customer based on his/her personal data and time of the day. We will create a simple GWT-based GUI to enter a customer personal data and generate a greeting. For example, at 2:20PM for a customer "Robinson" who is a married woman of 28, we want our server to generate a greeting like "Good Afternoon, Mrs. Robinson!". At the same time, we want to implement this application in such a way that it can be easily extended to cover a much more complicated business logic with multiple business objects.
First, we will setup a development environment for a trivial GWT application. Then, we will add GWT GUI and Java classes to implement a "Hello Customer" web application. The GWT application will run in both hosted mode and in web mode. Then, we will move business logic to a remote service on the server site and finally will demonstrate how to implement more complex business logic using OpenRules decision tables incorporated in our GWT application.
Implementing "HelloCustomer" Application using GWT only
Part 2 – Using OpenRules to Externalize Business Logic from a GWT Application
Eclipse plugin GWT Designer from Instantiations
Apache Tomcat (for GWT web mode)
OpenRules (for Part 2)
The code and ready to run examples for Part-1 and Part-2 could be found in the standard OpenRules-5 installation - see Eclipse projects HelloGWT and HelloGWTOpenRules.
Back to OpenRules
Copyright © 2008, OpenRules, Inc.