Apama Capital Markets Foundation Documentation : Capital Markets Foundation : Order Management : Risk firewall : Setting up risk firewall evaluation rules : Removing rule instances
Removing rule instances
You can remove a rule class instance that you previously added to a risk firewall. A risk firewall instance provides two actions for removing a rule class instance. You can call these actions on a local risk firewall but not on a connected remote risk firewall.
*RiskFirewall.removeRuleInstance() takes one argument, instanceId, which identifies the rule class instance you want to remove. Specify the integer identifier that was returned when you added the rule class instance to the risk firewall.
*RiskFirewall.removeRuleInstanceCb() takes two arguments:
*instanceId identifies the rule class instance you want to remove. Specify the integer identifier that was returned when you added the rule class instance to the risk firewall.
*cbCompleted is a callback that the risk firewall executes after successfully removing the rule class instance. The callback takes three arguments: the risk firewall object, the rule class name, and the rule class instance identifier.
Call this action when your application requires notification that the rule class instance has been removed.
If there is an error while trying to remove the rule class instance, the risk firewall calls any error callbacks you added or it calls the default error callback if you did not add any error callbacks.
Copyright © 2013-2017 Software AG, Darmstadt, Germany. (Innovation Release)

Product LogoContact Support   |   Community   |   Feedback