Resubmit method: IntBroker class

Syntax

Resubmit({TransactionId, QueueName, DataType, SegmentIndex} | {TransactionIdArray, QueueNameArray, DataTypeArray, SegmentIndexArray})

Description

Use the Resubmit method to programmatically resubmit either a message, or a list of messages, from the message queue, much the same as you can do in the message monitor.

You may want to use this method after an end-user has finished fixing any errors in the message data, and you want to resubmit the message, rerunning the PeopleCode.

This method is only available when the message has one of the following statuses:

  • Canceled

  • Edited

  • Error

  • Timeout

If you are specifying an array of messages to be resubmitted, and any message in the array fails for any reason (for example, you specify a message that doesn't have the correct status) no messages are resubmitted and the method return value is false.

Parameters

Parameter Description

TransactionId | TransactionIdArray

Specify either a single transaction ID as a string, or specify an array of string containing the transaction Ids of the messages you want to resubmit.

QueueName | QueueNameArray

Specify either a single queue name as a string, or specify an array of string containing the queue names that contain the messages you want to resubmit.

DataType | DataTypeArray

Specify either a single data type, or an array of string containing the data types. See below for the valid data type values.

SegmentIndex | SegmentIndexArray

Specify either a specific segment, or an array of integer containing the segment numbers you want to resubmit.

For the DataType or DataTypeArray parameters, the valid data types are:

Constant Value Description

%IntBroker_BRK

Resubmit the message for the web services gateway.

%IntBroker_PUB

Resubmit the message for the publication contract.

%IntBroker_SUB

Resubmit the message for the subscription contract.

Returns

A Boolean value: true if the message or messages are resubmitted successfully, false otherwise.