IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Developing business processes > Building BPEL processes > Generate JSF clients for your human tasks

Generate JSF clients for your BPEL processes

You can generate a client either from a module, a business process, or a human task.

To generate a JSF client for your BPEL process, proceed as follows:


Procedure

  1. In the Business Integration view, right-click the business process(es) for which you want to generate a user-interface, and select Generate User Interfaces. To generate a client for processes 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.

    • For stand-alone tasks, both the task and the process must be added to the assembly before generating a client, otherwise they don't show up in the Generation Wizard. In cases this is an inline human task, only the process must be added to the assembly. If the process does not have any inline human tasks, it will not show up in Generation Wizard either.

    • If the generated client is intended to be able to start a process, then this process must have a human task defined for the initial receive activity/activities, or you must have another initiating task on the assembly diagram wired to the process .

  2. On the Client Generator Selection page, proceed as follows:

    1. In the Generator type field choose JSF custom client.

    2. Use this list to choose the human task(s) for which you want to generate the client. Expand the tree until you find the required human task(s), and then enable the associated check box(es).

  3. On the JSF client configuration page, proceed as follows:

    1. Assign a name to this client in the Name of dynamic web project field.

    2. In the Company logo field, you can specify the file location of a graphic file containing a company logo. This logo will appear as a banner on the top of the generated client's web page. You can browse either to a GIF or JPG file. If your image has a height higher than 60 pixels, then it will automatically be shrunk to fit the space available. You can adjust the height of your logo in the page Banner.jsp of the generated client. The background color of the banner is defined in the style sheet styles.css, refer to class .Banner. The CSS file is located in the generated web project in WebContent\theme\styles.css.

    3. In the Client view area, you have two choices. Choose Local if one server will be used to deploy both the generated client and the related processes and tasks. Choose Remote if two or more servers will be used in the same cell, and your generated client will be deployed on one server, and the related processes and tasks on another.

    4. In the Style area, you can choose from the two styles that are provided for your generated client, or add your own style file. This custom CSS file must reside in a web project in your workspace. The CSS file can contain your settings regarding color, font size and style, but these settings have to have proper names since they are used as reference in the generated client. The best approach is to modify a pre-defined style of a generated client (styles-IBM.css or styles-blue.css), and save it in the your CSS file. The CSS file is located in the generated web project in WebContent\theme\styles.css. In the Style field, you can then click Add and Browse to select your CSS file.

    5. When you are done, click Next.

  4. On the second JSF client configuration page, you can select the custom properties (as defined in your business process) that you would like have generated with the client. You can use custom properties as filter criteria for the "Status" list.

  5. When you are done, click Finish.


Results

Your new client will be generated.

Generate JSF clients for your human tasks


Related tasks:
Generate IBM Forms clients (deprecated)
Generate WebSphere Portal portlets