BEA Logo BEA WebLogic Collaborate Release 1.0.1

  Corporate Info  |  News  |  Solutions  |  Products  |  Partners  |  Services  |  Events  |  Download  |  How To Buy

 

   WebLogic Collaborate Doc Home   |   C-Hub Administration   |   Previous Topic   |   Next Topic   |   Contents   |   Index

Working with Logic Plug-Ins

 

The following sections provide key concepts and procedures for configuring and working with logic plug-ins on the C-Hub Administration Console:

For more information on logic plug-ins, see Developing Logic Plug-Ins in the BEA WebLogic Collaborate Developer Guide.

 


What Are Logic Plug-Ins?

The message flow through the c-hub begins with an incoming message from a c-enabler, proceeds to the routing service, and ends with the c-hub sending an outgoing message. This flow is usually described from the perspective of the c-enabler client, rather than the c-hub. In this context, the incoming message flow through the router is considered to be part of send-side routing (because the message is sent by the c-enabler to the c-hub). The outgoing message sent by the c-hub is considered to be available for receive-side filtering (because it is received by the c-enabler from the c-hub).

WebLogic Collaborate provides a router and a filter for each business protocol that it supports. Each router and each filter consists of a chain of logic plug-ins. You can add your own logic plug-ins to the routers and filters. The plug-in code must conform to BEA guidelines and interfaces. These logic plug-ins (components in filters and routers) allow you as a c-hub owner to provide additional processing (rules) for the information passing through the c-hub.

However, you are not limited to using the plug-ins strictly for filtering and routing tasks. As a c-hub owner, you can customize the "filter" and "router" plug-ins for many purposes other than filtering and routing, such as sampling, validating, auditing, billing, and so on. The following table shows some simple examples of the kinds of additional processing rules you might want to implement and perform on data flowing through the c-hub.

Table 12-1 Examples of Using Router and Filter Logic Plug-Ins on the C-Hub for Various Types of Additional Processing

For more information on what logic plug-ins are and how to construct and use them, see Developing Logic Plug-Ins in the BEA WebLogic Collaborate Developer Guide.

 


Setting Up a Logic Plug-In

Setting up a new logic plug-in definition on the c-hub consists of the following tasks:

Step 1. Name Plug-In and Provide Parameters.

  1. Click Configuration in the left navigation bar.

  2. Click the Logic Plug-Ins tab to display the Logic Plug-Ins configuration screen.

    Figure 12-1 Logic Plug-Ins Configuration

  3. Fill in the fields as described in the following table.

  4. Click Add/Update to create the new logic plug-in. Your new logic plug-in should show up in the Logic Plug-Ins list.

    (You can also click Reset to discard your current changes and start again.)

    Initially, your new logic plug-in will not be assigned to a business protocol, so [NONE] will show up under Business Protocols list for that logic plug-in.

    Figure 12-2 New Logic Plug-In Added

Step 2. Assign the Logic Plug-In to a Business Protocol Definition.

You can create new "flavors" of an existing business protocol based on the particulars of your enterprise, but this is not a task that can be handled in the C-Hub Administration Console.

You will probably be accessing the Business Protocol Definitions tab in the C-Hub Administration Console primarily for the purpose of assigning logic plug-ins (components in filters and routers) to an existing protocol like XOCP.

For information on developing logic plug-ins to use in routers and filters, see Developing Logic Plug-Ins in the BEA WebLogic Collaborate Developer Guide. For more information on using XOCP filters and routers, see Routing and Filtering XOCP Business Messages.

To assign a logic plug-in to a business protocol:

  1. Click on the business protocol name under the Business Protocols Definitions list on the Logic Plug-Ins tab. In our example, we select XOCP. (If you haven't assigned a business protocol yet, you can click on [NONE] which shows up under Business Protocols list for that logic plug-in.)

    This brings up the main Business Protocol Definitions Screen.

    Figure 12-3 Business Protocol Definitions Screen

  2. Click on the business protocol you want to use. The C-Hub Administration Console displays the Business Protocol Definitions screen where you can assign logic plug-ins (components in filters and routers) to the selected business protocol. (For our "MyNewPlugin" example, we choose XOCP.) Logic plug-ins you have defined on the Logic Plug-in tab show up on the detail screen for a business protocol definition as available logic plug-ins in the Filter Chain and Router Chain group areas. You can move them into the Assigned list box to assign them to filter and router chains.

    Figure 12-4 Assign Logic Plug-Ins to a Business Protocol Definition

  3. To create Filter Chains and Router Chains, use the arrow buttons to move the logic plug-ins you want to assign to this business protocol into the Assigned lists. Once you have the appropriate filters and routers showing in the "Assigned" list box, use the up and down arrow buttons to order the chain of filters and routers appropriately.

    Note: XOCP filters and routers can be used only for XOCP business protocol definitions. Likewise, RosettaNet filters and routers can be used only for RosettaNet business protocol definitions.

  4. To define an XPath expression for the XOCP filter logic plug-in or the XOCP router logic plug-in, use the XOCP Filter Configuration and XOCP Router Configuration groups, respectively, as described in the following table.

    Note: If you define an XPath expression in the XOCP Filter Configuration group, this XPath expression will be added to the XOCP filter logic plug-in. Similarly, if you define an XPath expression in the XOCP Router Configuration group, this XPath expression will be added to the XOCP router logic plug-in.

  5. When you have the appropriate logic plug-ins listed in the Filters and Routers lists, click Add/Update to assign these plug-ins to the selected business protocol.

    The plug-in assignments are processed, and you are returned to the main Business Protocol Definitions screen. A status message is displayed indicating that the business protocol assignment has been made to the appropriate logic plug-in.

    If you now click the Logic Plug-Ins tab to display the main Logic Plug-Ins configuration screen, you should see your new plug-in assigned to the appropriate business protocol.

    Figure 12-5 New Logic Plug-In Added to Plug-Ins List with Protocol Assignment

For more information on business protocols, see Working with Business Protocol Definitions.

 


Viewing Logic Plug-Ins on a C-Hub

To view logic plug-ins on a c-hub:

  1. Click Configuration in the left navigation bar.

  2. Click the Logic Plug-Ins tab to display the logic plug-ins configuration screen.

    Figure 12-6 Viewing Logic Plug-Ins

Using the Query Feature to Find Logic Plug-Ins

Notice the * in the Logic Plug-In Name field. This is a special wildcard character used for queries. In the above screen, the table shows all the logic plug-ins on the c-hub (except those configured as bea.hidden). You can type text strings in the Logic Plug-In Name field and do queries on them to refine the table display. For instance, to display just logic plug-ins that start with "XOCP", you can input XOCP* in the Logic Plug-In Name field and click Query. (The query is case-sensitive.) To display information just for XOCP-Router, you can enter XOCP-Router in the Logic Plug-In Name field and click Query, or just click on the XOCP-Router name in the Logic Plug-Ins list.

 


Modifying an Existing Logic Plug-In

You can modify any or all of the existing logic plug-ins set up on a c-hub.

From the main Logic Plug-Ins configuration tab, click on a logic plug-in name under Logic Plug-Ins to display the configuration for that plug-in. (As an example, the following figure shows the configuration screen for a logic plug-in named "XOCP-Router".)

Figure 12-7 Configuration for an Individual Logic Plug-In

You can modify the configuration for the selected plug-in from this screen. Simply redefine the name, parameters, or other attributes as needed, then click Add/Update to save the changes. (For details on the fields, see Table 12-2.)

 


Removing a Logic Plug-In

Warning: Do not remove the BEA-provided logic plug-ins for XOCP or RosettaNet. Removal of these plug-ins will disable the WebLogic Collaborate c-hub. You can add and remove your own, customized logic plug-ins as needed.

To remove a customized logic plug-in:

  1. Click Configuration in the left navigation bar.

  2. Click the Logic Plug-Ins tab to display the Logic Plug-Ins configuration screen.

  3. In the Logic Plug-In Name field, enter the full name of the logic plug-in that you want to remove, and click Remove.

    or

    Click on the logic plug-in you want to remove to display the configuration details for that logic plug-in. On this screen, click Remove.

    A confirmation dialog is displayed. Click OK to remove the specified logic plug-in in. You are returned to the main Logic Plug-Ins configuration screen.

Note: If the object you remove references or is referenced by other objects (for example, if a business protocol is using a logic plug-in you are about to remove), those references will be removed. If the object you remove contains other objects, those objects will be removed. See Table 8-2 for details on relationships and dependencies that can exist among configured c-hub objects.