| Previous | Next |  | Contents | Index | Glossary

## Wfevtenq.sql

Use wfevtenq.sql to enqueue an event message on a local queue using an override agent. This script constructs an event message using the event name, event key, event data, From Agent, and To Agent you specify. Then the event message is enqueued on the queue associated with the override agent you specify, which can be different than the From Agent listed inside the event message. If no override agent is specified, the event message is enqueued on the message's From Agent by default.

> Note: This script can only enqueue an event message onto a queue for an agent on the local system.

Use the script as follows:

    sqlplus <user/pwd> @wfevtenq <overrideagent> <overridesystem> <fromagent> <fromsystem> <toagent> <tosystem> <eventname> <eventkey> <message>

Replace the variables with your parameters as follows:

- `<overrideagent>`--The agent on whose queue you want to enqueue the event message

- `<overridesystem>`--The system where the override agent is located

- `<fromagent>`--The From Agent that you want to list in the event message

- `<fromsystem>`--The system where the From Agent is located

- `<toagent>`--The To Agent that receives the event message

- `<tosystem>`--The system where the To Agent is located

- `<eventname>`--The internal name of the event

- `<eventkey>`--The event key that uniquely identifies the instance of the event

- `<message>`--The event data

| Previous | Next |  | Contents | Index | Glossary