- TIBCO BusinessEvents®
- CEP Pattern
- Pattern
- Manager

# Pattern.Manager.setClosure()

## Signature

`void setClosure(Object patternInstance, Object closure)`

## Domain

ACTION

## Description

Sets a $1closure$1 object that will be delivered in the listener function call to help identify this pattern instance. The value is set only for the given pattern instance.

## Parameters

Name | Type | Description
--- | --- | ---
`patternInstance` | `Object` | The return value (opaque) from the pattern $1instantiate(String)$1 method.
`closure` | `Object` | The Pattern Service will not interpret this object. It can be of any type.

## Returns

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

## Cautions

none