IBM BPM, V8.0.1, All platforms > Create processes in IBM Process Designer > Create user interfaces for business processes > Building Heritage Coaches > Configure Heritage Coach controls

Binding a complex data structure to a Table control

Learn how to bind a complex data structure to a Table control in a Heritage Coach.

Before you can perform this task, first create the data structure and declare it in the service where you want to build a Heritage Coach.

If you have created a complex data structure and you want to bind it to a Table control in a Heritage Coach, you do not have to create the table and then bind each element of the table to the appropriate variable parameter. You can create the table and the bindings automatically by dragging the data structure to the Heritage Coach.

You can also use the Activity Wizard to automatically create Heritage Coach control bindings. See Building a Human service for an example.

A complex data structure is a private variable in an HR process used to submit requests to open new positions. You can see this process and its variables in the Hiring Sample process application. (For more information see the IBM Business Process Management Information Center.

At one point in the process, a General Manager must approve a submitted request. The Heritage Coach displays the information submitted in the requisition to enable the General Manager to make a decision. The GM Approval service (in the Hiring Sample process application) includes the requisition variable as both input and output. This enables the Heritage Coach to display the requisition parameters to the General Manager and then the service passes the values of the parameters in the requisition variable back to the BPD for processing by subsequent steps in the process.


Procedure

  1. To display the values of the parameters in the requisition variable in a Heritage Coach, click the Coaches tab.

  2. Drag the input requisition variable from the palette to the design area.
  3. Right-click and select Delete for the parameters that should not be displayed as output text; select all remaining fields and change the Control Type to Output Text.

  4. Click the Section option in the properties and increase the number of columns to 2.

  5. Click the Preview tab to see how the table will look when the service runs. When you run the tutorial BPD, the Heritage Coach displays the table with the appropriate data for the manager to act upon.

Configure Heritage Coach controls


Related tasks:
Populating a table control using an SQL query
Binding a variable to a custom HTML component