Creating a business process portlet project
Basic and Faces portlet models support code generation for business process portlets.
Before creating task portlets for business processes, complete the following steps:
- Identify a business process that has been created using WebSphere® Integration Developer for WebSphere Portal. The business process will contain input and (optionally) output messages for the entire process, and staff activities (or Tasks). Define each task with an input message and an output message.
- If you plan to use Web Services Description Language (WSDL) or XML Schema Definition language (XSD schema) files for visual development of JavaServer Faces based business process portlets, create a simple project in your workspace. Import the WSDL or XSD files into that project. Optionally, you can import the WSDL and XSD files into the business process portlet project that you create.
Note: Visual development of the business process portlets is not supported when using the Basic portlet model.
To create a business process portlet project:
- From the menu, click
File | New | ProjectIn the New Wizard window, select
Portal | Portlet Project.
- In the New Wizard window, click
Portal | Portlet Project The wizard for the appropriate portlet project type opens.
Note: The business process portlet options available in the New Portlet Project wizard are also available in New Portlet wizard.
- Name your project and select either the
Faces Portlet or
Basic Portlet option for the appropriate type. Specifying either a Faces or a Basic portlet model enables you to generate code for process initiation or task processing later using this wizard. For a Basic portlet, however, after the wizard generates the base code, there are additional steps that perform to enable the process initiation portlet and task processing portlet. See Enabling business process portlets that use the Basic portlet model for additional details.
Note:
- Selecting
Faces Portlet creates a portlet using Faces portlet classes: FacesPortlet for the JSR 168 or JSR 286 API and WPFacesGenericPortlet for the IBM® portlet API. This selection provides a sub-option to generate a subclass of Faces portlet classes.
- Selecting
Basic Portlet creates a portlet using basic portlet classes: GenericPortlet for the JSR 168 or JSR 286 API and PortletAdapter for the IBM portlet API.
- Change any appropriate values on succeeding pages, and click Next, until you reach the Advanced Options page.
- Select the
Enable business process integration check box. This will enable the
Add task processing and
Add process initiation radio buttons. Select the appropriate integration type (for the portlet that you are creating along with the project). If the process initiation option is selected, specify a
Template name for a process template defined in Business Process Execution language (BPEL: using WebSphere Studio Application Developer Integration Edition). Click Finish. Business process helper classes are generated, along with a subclass of the Faces or Basic portlet, and its JSP file.
- Import the Java™ archive file (JAR) file or files for any input or output message classes that the business process portlet will use into the portlet project's /WEB-INF/lib folder.
The default view page is generated and opened in the editing pane. You are now ready to add data access to the input and output messages.
Related concepts
Process initiation helper classes
Task processing helper classes
Related tasks
Enabling business process portlets that use the Basic portlet model
Adding data access to business process portlets
Creating user interfaces for business processes
Developing business process portlets
Inserting images in portlet JSP files
Related reference
WebSphere Portal Documentation Library