Adding and Configuring Publish Table Actions in Message Flows

Use a publish table action to publish a message to zero or more statically specified services.

Before you begin

Display the message flow for the desired proxy service. See Constructing Proxy Service Message Flows.

To add a publish table action

  1. In the Message Flow Design Palette, open the Stage Actions > Communication list, if it is not already open.
  2. Drag the publish table action to the desired location in the message flow.

To configure the publish table action

  1. In the Message Flow Editor, click the publish table action, if it is not already selected.
  2. On the Publish Table Action Properties page, click <Expression> to display the XQuery/XSLT Expression Editor. Create an XQuery expression, which at run time returns the value upon which the routing decision will be made.
  3. In the Message Flow Editor, select a case action.
  4. From the Operator list on the Publish Table Action Properties page, select a comparison operator. Then, in the Value field, enter a value against which the value returned from the XQuery expression will be evaluated.
  5. In the Message Flow Editor, click one of the publish table's publish actions to select it.
  6. On the Publish Action Properties page, click Browse to select a service. Select the service to which messages are to be published if the expression evaluates true for the value you specified. The Select a Service Resource dialog is displayed.
  7. Select a service from the list, then click OK. This is the target service for the message.
  8. If the service has operations defined, you can specify the operation to be invoked by selecting it from the invoking list.
  9. If you want the outbound operation to be the same as the inbound operation, select the Use inbound operation for outbound check box.
  10. In the Request Actions field, to configure how the message is packaged and sent to the service, click Add an Action, then select one or more actions that you want to associate with the service. To learn more about the type of action you want to add, see Adding and Editing Actions in Message Flows on page 18-1.
Note: There is a nesting limit of four cumulative levels in the stage editor. If you attempt to add a fifth level, nesting action is not displayed. Cumulative levels include all branching actions: if... then... conditions, publish tables, and route tables. For example, you can have 2 levels of conditionals, then a publish table with a route table inside of it, bringing the total to 4 levels. If you attempt to add another conditional (to the last publish table), the conditional is not displayed.
  1. To insert a new case, click the  Case icon, then select Insert New Case.
  2. Repeat steps 4-8 for the new case.
  3. Add additional cases as dictated by your business logic.
  4. Click the  Case icon of the last case you define in the sequence, then select Insert Default Case to add a default case at the end.
  5. Configure the default case-the configuration of this case specifies the routing behavior in the event that none of the preceding cases is satisfied.