25.5.4 Wire portlets

In this section, you will wire the source and target portlets for C2A. To create a wire it is necessary the wsdl file exists in the source portlet (HRPortlet portlet) declaring the properties that this portlet is going to share.

Follow these steps:

1. Make sure the HRPortlet/WebContent/wsdl/HRPortlet.wsdl file exists and portlet deployment descriptor contains the following config parameter:
<config-param>

 <param-name>c2a-action-descriptor</param-name>

 <param-value>/wsdl/HRPortlet.wsdl</param-value>

</config-param>

2. Select one of the C2A menu items but this time press the Ctrl key during the selection.

3. A new dialog opens asking whether to Automate the action in future. Select Yes.

Figure 25-17 Pressing Ctrl key during menu selection to create a wire

4. Click Yes to activate the wire.

5. Try other departments again.

6. Press the Ctrl key again when using C2A to disable the wire.

Note: Wiring can also be accomplished by using the Portlet Wiring Tool.


Redbooks
ibm.com/redbooks