businessDayPublish

The business day publish request causes the Transaction Server to create a business day publish event, which is used to send Messaging API messages to any number of target applications. The business day ID and the topic are required for the business day publish request.

For a target application to receive the Messaging API messages when a topic is published, it must have an event handler for that topic configured in the Scheduler.xml file. For more information about using the business day publish event handler, see BusinessDayPublishEventHandler.

The following table shows the fields that are needed to create a business day publish request.
Table 1. businessDayPublish Request
Field Description
Message Type The message type text for this message. The strings that can be used for the message type are:
  • AppBridgeConstants.MSGTYPE_BUSINESS_DAY_PUBLISH
  • businessDayPublish
Using the string that is defined in the AppBridgeConstants interface is the preferred method for setting the message type.
Unit of Work Business day identifier. It is a long value and must be capable of being parsed as a long.
Payload A single string that contains the name of the topic being published for the business day.

Example payload

The following example shows how to construct a unit of work and the payload for publishing a business day topic. In this example, the business day ID is 26 and the topic is autoDecisionExceptions.
UOW uow = new UOW (UOW.UOW_TYPE_BUSINESS_DAY_ID, "26");
send ("businessDayPublish", uow, "autoDecisionExceptions");