Pattern.Manager.setFailureListener()

Signature

void setFailureListener(Object patternInstance, String ruleFunctionURI)

Domain

action

Parameters

NameTypeDescription
patternInstanceObjectThe return value (opaque) from the pattern "instantiate(String)" method.
ruleFunctionURIStringThe URI of a RuleFunction whose parameter signature is as described:

(String patternDefURI, String patternInstanceName, Object correlationId, Object closure, Object advancedOpaque).

Or, with one less parameter: (String patternDefURI, String patternInstanceName, Object correlationId, Object closure)

correlationId is the value of the correlation fields that were specified in the pattern string: "... with order.customerId and shipment.customerId .."

closure is the object that is optionally set during the pattern's deployment.

advancedOpaque may be used to access the "Pattern.Manager.Advanced" functions. For example, to retrieve the matching Ids and ExtIds of the events that the pattern instance has obeserved so far.

Returns

None.

Cautions

none