- TIBCO BusinessEvents®
- CEP Pattern
- Pattern
- Manager

# Pattern.Manager.setFailureListener()

## Signature

`void setFailureListener(Object patternInstance, String ruleFunctionURI)`

## Domain

ACTION

## Description

Sets the given rule function URI as the listener that will be invoked by the Pattern Service when/if this pattern instance fails due to a wrong event sequence. The value is set only for the given patten instance.

## Parameters

Name | Type | Description
--- | --- | ---
`patternInstance` | `Object` | The return value (opaque) from the pattern $1instantiate(String)$1 method.
`ruleFunctionURI` | `String` | has obeserved so far.

## Returns

Type | Description
--- | ---
`void` |

## Cautions

none