Editing and Testing a Dynamic Selector
Note: The (Dynamic) Selector has now been deprecated. Please use the XML MetaData Cache Control to look up WebLogic Integration Administration Console configured values and then use the setProperties() calls of the Service Broker Control to set the endpoint at runtime. For more information on the XML MetaData Cache Control, see the XML MetaData Cache Control in Using Integration Controls in the WebLogic Workshop Help.
For more information on the WebLogic Integration Administration Console, see Managing WebLogic Integration Solutions at http://e-docs.bea.com/wli/docs81/manage/index.html.
Service Broker controls allow you to decide at run-time which one of multiple subprocesses to call using a dynamic selector.
To edit and test a dynamic selector:
- Display the business process in Design View that contains the Service Broker control with the dynamic selector you want to edit or test.
- If the Service Broker control node containing the dynamic selector you want to edit is calling another process, you must click the corresponding .JCX file in the Application pane and then click the start method on the control.
If the control node containing the dynamic selector you want to edit is calling back to the client, you only need to click the control node in the business process.
- The Property Editor displays the properties of the selected control.
- In the Property Editor, locate the selector property and highlight the xquery field.
- Click the button next to the xquery field indicated by three dots (...). The Dynamic Selector query builder is displayed.
- Select the type of lookup function for the query by choosing the LookupControl or TPM radio button. Choose TPM to bind lookup values to properties in the TPM repository. Choose LookupControl to bind lookup values to dynamic properties specified in a domain-wide DynamicProperties.xml file. You should only use LookupControl to bind lookup values to dynamic properties if the domain is inactive. If the domain is active, it is recommended that you use the WebLogic Integration Administration Console to bind lookup values.
For more information on binding lookup values to dynamic properties using the WebLogic Integration Administration Console, see "Adding or Changing Dynamic Control Selectors" in Process Configuration in Managing WebLogic Integration Solutions, which is available at the following URL:
http://e-docs.bea.com/wli/docs81/manage/processconfig.html#1039959
Note: Although you can select the type of lookup function for TPM, and it will work at run time, you cannot test it using the test panel.
Note: If you choose LookupControl and then click the Test tab, it is important that you never edit the namespace value of the node value.
- In the Start Method Schema area, select an element from the schema to associate it with the start method of the control. The resulting query appears in the XQuery area.
- Click the Test tab to display the Source XML and Result XML areas, then click the Test button to test the execution of the query. In addition to the XML elements displayed, you can also select Java class types as a source or result. Execution status messages are displayed at the bottom of the Query Builder.
- Click OK.
|
|