IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Developing business processes > Building human tasks > Set up a user interface for your human task > Generate WebSphere Portal portlets

Generate a Portlet

The New Portlet Generator wizard guides you through the process of creating a portlet within IBM Integration Designer Software Development Platform.

To generate a new portlet, do the following steps:


Procedure

  1. In the Business Integration view, right-click the human tasks for which you want to generate a user-interface, and then select Generate Human Task User Interfaces. To generate a client for tasks in different modules, select those modules in the business integration view by holding the Ctrl key while you select each one. The User Interface Wizard for Human Tasks launches.

    If a humans task contains an error of any kind, the wizard does not list the task. A warning message will be shown.

  2. On the Client Generator Selection page, do the following steps:

    1. In the Generator type field choose Portlet Generator. If Portlet Generator is not presented as an option, ensure that you have fulfilled all the prerequisites listed in the topic, Generating WebSphere Portal portlets.

    2. Use this list to choose the human tasks for which you want to generate the client. Expand the tree until you find the required human tasks, and then enable the associated check boxes.

    You must use the appropriate HTM API version when you develop a BPM portlet for a WP version that supports only older version clients.

    For example, if you are using WAS version 6.1, use an HTM API that supports Portal 6.1. The following list identifies the portal version to the appropriate WAS version.

    • Portal 7 and Portal 6.1 supports WAS version 7
    • Portal 6.1 supports WAS version 6.1

  3. On the Portlet Generator Settings page, enter a project name. Click Finish.


Results

All WSDL and XSD files from all modules and associated libraries that are directly (or indirectly) referenced by tasks that were selected during the user interface generation, are automatically copied into the generated portlet project.

When you generate portlets, you have the choice of packaging the generated portlets into one or many portlet applications (a portlet application corresponds to portlet project). If artifacts are shared between tasks (for example, multiple tasks that use the same WSDL) and you choose to package the portlets into multiple portlet applications), the artifact files (WSDLs, XSDs) are automatically copied into each portlet project. If there are updates to the artifacts, all portlet applications that use them must be updated and redeployed. If the portlets are spread over multiple portlet applications and there are updates to the portlets, only the affected portlet applications need to be redeployed.

The generation of the portlet can take a while. When the generation is finished, you will see your newly created portlet project in the Business Integration view, along with a EAR. Your next step is to deploy it to a runtime environment.

Generate WebSphere Portal portlets