Previous  Next          Contents  Index  Glossary

Error_Rule

PL/SQL Syntax

function Error_Rule

    (p_subscription_guid in raw, 
p_event in out wf_event_t) return varchar2;

Description

Performs the same subscription processing as Default_Rule(), including:

However, if either of these operations encounters an exception, Error_Rule() reraises the exception so that the event is not placed back onto the WF_ERROR queue. Otherwise, Error_Rule() returns the status code SUCCESS.

Error_Rule() is used as the rule function for the predefined subscription to the Any event with the Error source type, which is triggered whenever any event is dequeued from the WF_ERROR queue. The predefined subscription specifies that the event should be sent to the Default Event Error process in the System: Error item type.

You can also use this rule function with your own error subscriptions. Enter WF_RULE.Error as the rule function for your error subscription and specify the workflow item type and process that you want the subscription to launch.

Arguments (input)

p_subscription_ guidThe globally unique identifier of the subscription.
p_event The event message.

See Also

Any Event


         Previous  Next          Contents  Index  Glossary