Pattern.Manager.setFailureListener()
Signature
void setFailureListener(Object patternInstance, String ruleFunctionURI)
Parameters
Name | Type | Description |
patternInstance | Object | The return value (opaque) from the pattern "instantiate(String)" method. |
ruleFunctionURI | String | The 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. |