The BTT Web2.0 On-Demand Workplace is described by XML.
When an end-user interacts with the Workarea, the HTML DOM event on the view component triggers the control function, which manipulates the models as shown in the following figure. When the saving function is triggered, the models are reconstructed in a DOM tree structure and are delivered to the server side. The saving function is implemented by the server program, such as JSP/Servlet or ASP.Net. In other words, you can decide how to save the posted XML DOM tree structure, using DB or file system.
The following image is the flow when an end-user makes some changes in the customizable items. For example, the user adds a new tab. The saving function is called to save this Workarea. The client sends the XML description for the Workarea to the Servlet on the server, as is shown in the 10th step in the following image. The responsibility of the Servlet is to parse the XML string into the desired format and save it. As a developer, you can decide whether to use the file system or the database.
In the example, the Servlets save the XML strings into file system as shown in the following figure:
In the Step 10, the client sends the XML strings to the server. You can config your Servlet URL in BTTWeb20/Common/config.js, which is designed for configuration of the global variable, such as the URL or the HTML DOM element Id .
Servlet URL | Operations in the XML |
---|---|
ComponentPath | Get XML string from Component.xml |
BasicInfrastructurePath | Get XML string from Component.xml |
DefaultAppPath | Get XML string from DefaultApp.xml |
UserLayoutPath | Get XML string from UserLayout.xml |
UserPortalPath | Get XML string from UserPortal.xml |
SaveUserLayoutPath | Save XML string to UserPageLayout.xml |
SaveUserPortalPath | Save XML string to UserPortal.xml |
ServiceListPath | Get XML string from Service.xml |
WidgetCatalogPath | Get XML string from WidgetCatalog.xml |
XML File | XML Schema | Function |
---|---|---|
UserLayout.xml | UserLayout.xsd | Restore the customized UI elements |
BasicInfrastructure.xml | BasicInfrastructure.xsd | Restore the manageable UI Elements |
DefaultApp.xml | DefaultApp.xsd | Restore the metadata for newly created UI elements |
The Workarea is manly related to the above three XML files. Refer to the corresponding files in the Reference section to get more information.