Default_Generate

PL/SQL Syntax

function Default_Generate
  (p_event_name in varchar2, 
   p_event_key in varchar2,
   p_parameter_list in wf_parameter_list_t) return clob;

Description

Generates a simple set of event data from the specified event name, event key, and parameter list. You can assign this standard generate function to events for demonstration and testing purposes.

Default_Generate() generates the event data as an XML document in the following structure:

<BUSINESSEVENT event-name="" key="">
   <GENERATETIME mask="">
   <PARAMETERS count="">
      <PARAMETER parameter-name="">
Sample Event Data XML Document
<BUSINESSEVENT event-name="oracle.my.event" key="123">
   <GENERATETIME mask="mm-dd-rr hh:mi:ss">04-24-06 09:05:23</GENERATETIME>
   <PARAMETERS count="1">
      <PARAMETER parameter-name="NOTE"><![CDATA[This is a sample note]]>
      </PARAMETER>
   </PARAMETERS>
</BUSINESSEVENT>

Arguments (input)

p_event_name The internal name of the event.
p_event_key A string generated when the event occurs within a program or application. The event key uniquely identifies a specific instance of the event.
p_parameter_list A list of additional parameter name and value pairs for the event.