Search Results create_msg




Overview

The APPS.XNP_T_DUMMY_U package body is a test and reference implementation within the Oracle E-Business Suite XML/Native Messaging (XNP) framework. The XNP layer, part of the broader ETRM (Enterprise Transaction and Reference Model) architecture, provides the messaging backbone that allows applications to construct, transmit, and process XML-based messages between trading partners, internal systems, and workflow components. The _T_DUMMY_U naming convention indicates that this package is a dummy or stub implementation associated with the T_DUMMY message type, used primarily for demonstration, testing, and validation of the messaging infrastructure rather than for production business transactions.

The package serves as a working example of how a message-generating API should be structured. Its header indicates it is classified as an OTHER API owned by APPS and carries a legacy CVS revision header dated 2005, reflecting its long-standing presence across releases including 12.1.1 and 12.2.2.

Key Procedures and Functions

The ETRM 12.2.2 metadata documents five procedures for this package:

  • CREATE_MSG — This is the central routine and the one most relevant to the search term "create_msg". It assembles an outbound message by constructing both the XML message body and the XML message header. The body is built by initializing an XML document, opening a T_DUMMY segment, and writing elements such as DELAY and INTERVAL. Header construction retrieves or adopts a message sequence, assigns message and reference identifiers, and appends header parameters. It returns a message header record, message text, and error code/message outputs, while accepting optional parameters for sender, recipient, version, references, order identifiers, workflow and Fulfillment instances, delay, and interval.
  • PROCESS — The main processing entry point that consumes an inbound message of the dummy type and applies the package's business logic.
  • DEFAULT_PROCESS — Provides the default handling path when no specialized processing is defined, ensuring every message type has a fallback behavior.
  • VALIDATE — Performs structural and content validation on incoming or outgoing payloads prior to processing or dispatch.
  • FIRE — Triggers or dispatches the message through the messaging runtime, initiating delivery or event propagation.

Tables Accessed

The ETRM metadata lists no directly referenced application tables via APPS synonyms for this package. The CREATE_MSG routine depends on the XNP infrastructure toolkit procedures (XNP_XML_UTILS and XNP_MESSAGE) to initialize documents, write elements, obtain sequences, and manage message headers. Persistent data is therefore handled through the XNP runtime rather than through direct table DML in this stub package.

Usage Notes

This package is referenced by one other package within the ETRM ecosystem, and it is typically invoked through the XNP messaging runtime when a T_DUMMY message is created or received. In practice it is used during implementation projects and regression testing to verify that the messaging framework is correctly configured. Developers may call CREATE_MSG from custom code or concurrent programs to emit a sample message and observe header/body generation, while PROCESS, DEFAULT_PROCESS, VALIDATE, and FIRE demonstrate the complete inbound and outbound message lifecycle. Because it is a dummy implementation, it should not be extended for production business logic; instead it serves as a template for building message-type-specific packages.