Building heritage coaches to collect input and display output (deprecated)
This example shows how you create a heritage coach in the parent service to control variables.
About this task
Procedure
- Click the Diagram tab for your service and then drag a heritage coach component from the palette to the diagram. Place the heritage coach component before the nested service component.
- While the heritage coach component is selected in the diagram, click the Step option in the properties and type a name for your coach in the Name field.
- Click the Coaches tab.
-
Drag the variable that you declared for your integration service from the palette to the
heritage coach.
An input text field is created with a mapping to the variable, and a label that matches the variable.
- In the heritage coach, select the group containing the default OK button, and then in the properties, click the Presentation option.
- In the Buttons section, click OK definition
and type
Searchin the Label text box. - Click the Preview tab for the heritage coach to see your label change.
- Click Save in the main toolbar.
- Click the Diagram tab for your service.
-
Drag another heritage coach from the palette to the diagram and name it
View search results. Place the heritage coach component after the nested service component. - Click the Coaches tab.
- From the palette, drag an Output Text control to the heritage coach.
- In the properties, select the Output Text option in the properties and in the Behavior section, click the Select button to create a binding to the results variable.
- From the list that opens, find and select the appropriate output variable.
- Click the Diagram tab to return to the diagram view of your service. Select the Sequence Flow tool from the palette and then connect the components.
- Click Save in the main toolbar.
-
To test your service, click the Run icon in the upper right corner.
The heritage coach opens in your browser.