| Previous | Next |  | Contents | Index | Glossary

## Receive

PL/SQL Syntax

`function Receive`

        (p_subscription_guid in raw,

         p_event in out wf_event_t) return varchar2;

Description

Receives Business Event System object definitions during subscription processing and loads the definitions into the appropriate Business Event System tables. This function completes the replication of the objects from one system to another.

WF_EVENT_FUNCTIONS_PKG.Receive() is defined according the the standard API for an event subscription rule function. Oracle Workflow uses WF_EVENT_FUNCTIONS_PKG.Receive() as the rule function for two predefined subscriptions, one that is triggered when the System Signup event is raised locally, and one that is triggered when any of the events in the Seed event group is received from an external source.

The Seed event group includes the following events:

- oracle.apps.wf.event.event.create

- oracle.apps.wf.event.event.update

- oracle.apps.wf.event.event.delete

- oracle.apps.wf.event.group.create

- oracle.apps.wf.event.group.update

- oracle.apps.wf.event.group.delete

- oracle.apps.wf.event.system.create

- oracle.apps.wf.event.system.update

- oracle.apps.wf.event.system.delete

- oracle.apps.wf.event.agent.create

- oracle.apps.wf.event.agent.update

- oracle.apps.wf.event.agent.delete

- oracle.apps.wf.event.subscription.create

- oracle.apps.wf.event.subscription.update

- oracle.apps.wf.event.subscription.delete

- oracle.apps.wf.event.all.sync

WF_EVENT_FUNCTIONS_PKG.Receive() parses the event data XML document from the event message that was received and then loads the Business Event System object definitions into the appropriate tables.

> Note: For the event, event group, system, agent, and subscription definition events, WF_EVENT_FUNCTIONS_PKG.Receive() calls the Receive APIs associated with the corresponding tables to parse the XML document and load the definition into the table.

Arguments (input) | p_subscription_ guidThe globally unique identifier of the subscription.
p_event | The event message.

### See Also

WF_EVENTS_PKG.Receive

WF_EVENT_GROUPS_PKG.Receive

WF_SYSTEMS_PKG.Receive

WF_AGENTS_PKG.Receive

WF_EVENT_SUBSCRIPTIONS_PKG.Receive

Predefined Workflow Events

| Previous | Next |  | Contents | Index | Glossary