Best Effort Resequencer Resequencing Order

22-8 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite

22.3 Configuring the Resequencer

You can configure the resequencer using Oracle JDeveloper. This section describes how to configure the resequencer in Oracle JDeveloper.

22.3.1 How to Specify the Resequencing Level

You can define resequencing at either the service component level or the operation level. For Oracle Mediator service components with only one operation, configuring resequencing at the operation or service component level results in the same behavior. For Oracle Mediator service components having multiple operations, specifying the resequencing at the service component level applies the same resequencing rules to all the operations, and messages arriving at any operation are resequenced. By default, the resequencing level is operations. To specify the resequencing level: 1. On the Mediator Editor, select the resequencing level from the Resequence Level dropdown list, as shown in Figure 22–2 . Figure 22–2 Mediator Editor with Resequence Level Field If you choose component, the Resequence field under each operation no longer appears and the Resequence Mode field appears under the Resequence Level field so you can set the resequencing mode for the service component. By default, the resequencing mode is set to off. When you select a resequencing mode, the Resequence Options box appears under the service component or operation, as shown in Figure 22–3 . If the Resequence Mode field for an operation is set to off, the Resequence Options box disappears. Note: In the above example, the resequencer identified the maximum sequence ID for the time window as 13 from message 7. Message 13 arrived within the buffer time, but has a sequence ID of 14. It is not processed with the original group, but instead begins a new time window at its arrival time of 2:10:50. Message 14 arrived too late and is included in the second time window. Resequencing in Oracle Mediator 22-9 Figure 22–3 Mediator Editor with Resequence Options Section The options in the Resequence Options section change depending on the resequencing mode you select.

22.3.2 How to Configure the Resequencing Strategy

This section provides instructions on how to configure the three different types of resequencing strategies. To configure a standard resequencer: 1. Set the resequence level as described in Section 22.3.1, How to Specify the Resequencing Level . 2. On the Mediator Editor under either the Oracle Mediator component or the operation you want to configure, select Standard from the Resequence Mode dropdown list. The Resequence Options box appears and includes the options for the standard resequencer, as shown in Figure 22–4 . Figure 22–4 Oracle Mediator with Resequence Mode set to Standard 3. Fill in the fields listed in Table 22–6 . Note: You can either enter the XPath expressions directly in the Group and ID fields or you can click Invoke Expression Builder to the right of each field. This launches the Expression Builder, which provides graphical assistance in creating field expressions and adding functions. 22-10 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite To configure a FIFO resequencer: 1. Set the resequence level as described in Section 22.3.1, How to Specify the Resequencing Level . 2. On the Mediator Editor under either the Oracle Mediator component or the operation you want to configure, select FIFO from the Resequence Mode dropdown list. The Resequence Options box appears and includes the option for the standard resequencer, as shown in Table 22–5 . Figure 22–5 Oracle Mediator with Resequence Mode set to FIFO

3. In the Group field, enter the XPath expression pointing to the field in the incoming

message on which grouping is performed. Table 22–6 Standard Resequencing Options Field Name Description Default Value Mandatory Group The XPath that points to the field in the incoming message on which grouping is done. If you are editing the MPLAN file directly, the corresponding element is named groupIDExpression. NA N ID The XPath that points to the field in the incoming message on which resequencing is done. If you are editing the MPLAN file directly, the corresponding element is named sequenceIDExpression. NA Y Timeout The time period in seconds to wait for an expected message. The resequencer locks the group as timed-out if a time out occurs. If you are editing the MPLAN file directly, the corresponding element is named timeOutDuration. 1 1 This default value means that the timeout never happens for a group by default. N Start The starting number of the ID sequence. If you are editing the MPLAN file directly, the corresponding element is named sequenceStart. 1 N Increment The increment of the ID sequence. If you are editing the MPLAN file directly, the corresponding element is named sequenceIncrement. 1 N Notes: If you are modifying the MPLAN file directly, the name of the XML element is groupIDExpression. There is no default value, and the field is not mandatory. Resequencing in Oracle Mediator 22-11 To configure a best effort resequencer: 1. Set the resequence level as described in Section 22.3.1, How to Specify the Resequencing Level . 2. On the Mediator Editor under either the Oracle Mediator component or the operation you want to configure, select Best Effort from the Resequence Mode dropdown list. The Resequence Options box appears and includes the option for the standard resequencer, as shown in Figure 22–6 . Figure 22–6 Oracle Mediator with Resequence Mode set to Best Effort 3. Fill in the fields listed in Table 22–7 to configure the best effort resequencer. 4. If needed, you can change the percent of the time window that is added as a buffer. You configure the buffer using the Oracle Enterprise Manager Fusion Middleware Control. For instructions, see “Configuring Resequenced Messages” in the Oracle Fusion Middleware Administrators Guide for Oracle SOA Suite and Oracle BPM Suite. Tip: You can specify either a maximum number of rows to process at one time or a time window for the messages. You cannot specify both. Table 22–7 Best Effort Resequencing Options Field Name Description Default Value Mandatory Group The XPath that points to the field in the incoming message on which grouping is performed. If you are editing the MPLAN file directly, the corresponding element is named groupIDExpression. NA N ID The XPath that points to the field in the incoming message that contains the ID on which resequencing is performed. If you are editing the MPLAN file directly, the corresponding element is named sequenceIDExpression. NA Y Datatype The data type of the sequence ID. The ordering process is based on the data type. Supported values are datetime and numeric. If you are editing the MPLAN file directly, the corresponding element is named sequenceIDDataType. Numeric Y