Try OpenEdge Now
skip to main content
Application Developer's Guide
Developing an application : Using the BPM Workflow Web interface generator : JSPs generated for a default presentation
 

JSPs generated for a default presentation

Business Process Server provides an implementation of an XSL transformation file—generator.xsl— in the OEBPS_HOME\BPMWebFlow\common\xsl directory. This transformation generates JSP code and operates directly on the XML process definition for the requested application. Additional input, such as the name of the page to be generated, miscellaneous configuration parameters required during transformation and any other data which might be required, is provided as input to the transformation through the use of transformer parameters.
The result of the generator.xsl transformation is JSP pages. The transformation is applied repeatedly for each Activity workstep defined in the process template for a Web application in BPM Designer. Logic code, such as the controller page for a Web application or the logic section of a Business Process Portal JSP page, are still generated by a Java generator. If requested, the generation of the JSP logic uses a separate transformation as well.
By default, Business Process Server provides only one default transformation for both Business Process Portal JSP pages and Web application JSP pages. However, if you, as a user or application developer, want to create a different default transformation for an application, then make a copy of the existing generator.xsl in the OEBPS_HOME\BPMWebFlow\common\xsl/ folder, make changes on the copy of the default XSL transformation file, and place it under a directory that you have created to contain it; for instance, OEBPS_HOME\BPMWebFlow\<appName>\generator.xsl. By default, BPMWorkflow first looks for the generator.xsl file in the Application folder. If it does not find this transformation file there, then it looks for the default transformation file, located in the OEBPS_HOME\BPMWebFlow\common\xsl directory.