The Approval Service: All wrapped up!
9 March 2008I was planning to do one more thing before I wrapped everything up into a new .ear file and released it, but I decided that I had waited long enough, and went ahead an built example7.ear. In addition to all of the code that we have been working with up to this point, it also includes a text file called database.sql in the WEB-INF folder of the ExampleWeb.war file. This file contains MySQL create statements for the tables used in the examples, which you can adapt to the database of your choice if you would like create the tables and try the examples out in your own environment. Although this is a single J2EE .ear file, it contains four separate web applications, or .war files:
Core
The Core application is just a set of shared components that can be used by one or more of the other applications. It represents a common services repository in an enterprise where many applications might utilize the same scripts, style sheets, images, and other elements drawn from a common source as opposed to being included in every using application.
Identity
The Identity application is the home of the WhoAmI Service, and would be the logical location of any OpenID services or any other services related to identity. In the current version, there is only one URL provided by the Identity application:
- /id/whoami – this is the WhoAmI service, which identifies the currently authenticated user
Approval
The Approval application is the home of the Approval Service, and hosts a number of URLs for the various functions that it supports:
- /approval/rfa/<id> – this is the URL used to view a single Request for Approval
- /approval/rfa?role=<role> – use this format of the URL to obtain a list of RFAs associated with the currently authenticated user
- /approval/rfa.xml – this URL provides a list of RFAs that conforms to the requirements of a standard data picker
Example
The Example application is where we demonstrate the use of the other services and shared components. This application includes a number of different URLs for the many different example pages that have been created to showcase the various services and their use:
- /example/whoami_example.html - this page demonstrates the use of the WhoAmI service
- /example/author_view_example.html – this page demonstrates the use of the Author’s View page widget
- /example/approver_view_example.html – this page demonstrates the use of the Approver’s View page widget
- /example/combined_view_example.html – this page demonstrates the use of both the Author’s View page widget and the Approver’s view page widget on the same page
- /example/rfa_put_example.html – this page demonstrates using the HTTP PUT method from a web browser to create a new Request for Approval
- /example/leave_request_home.html – this page is the home page of the example Leave Request system, which demonstrates the use of the Approval Service
- /example/data_picker_example.html – this page demonstrates the use of the Country picker, an example of a standardized data picker
Sorry, the comment form is closed at this time.





