function Default_Generate (p_event_name in varchar2, p_event_key in varchar2, p_parameter_list in wf_parameter_list_t) return clob;
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="">
The BUSINESSEVENT tag is the opening tag for the XML structure. The event-name attribute stores the event name, and the key attribute stores the event key.
The GENERATETIME tag stores the date and time when the XML document was generated. The mask attribute defines the date format mask. The XML documents generated by this API always use the date format mask "mm-dd-rr hh:mi:ss".
The PARAMETERS tag stores the parameter list for the event. The count attribute defines the number of parameters in the list. The PARAMETERS tag is included in the XML document only if the number of parameters is greater than zero.
The PARAMETER tag stores a parameter value for the event. The parameter-name attribute defines the parameter name. The data for the parameter value is included in a CDATA structure to avoid issues with reserved XML characters.
<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>
| 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. |