Apama Capital Markets Foundation Documentation : Capital Markets Foundation : Order Management : Risk firewall : Setting up risk firewall evaluation rules : Modifying rule instances
Modifying rule instances
You can modify a rule class instance that you previously added to a risk firewall. A risk firewall instance provides two actions for modifying a rule class instance. You can call these actions on a local risk firewall but not on a connected remote risk firewall.
*RiskFirewall.modifyRuleInstance() takes two arguments:
*instanceId identifies the rule class instance you want to modify. Specify the integer identifier that was returned when you added the rule class instance to the risk firewall.
*config is a com.apama.utils.Params object that specifies all the configuration parameter(s) for the rule class instance you are modifying. This includes the parameters you are changing and the parameters that remain the same.
*RiskFirewall.modifyRuleInstanceCb() takes the same two arguments and also a third argument that specifies a callback. The risk firewall executes this callback after successfully modifying 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 changed.
If there is an error while trying to modify 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.
The risk firewall uses the modified rule class instance for all subsequently received orders. You modify a rule class instance in the same way that you add a rule class instance. See Sample code for registering rule class and adding rule class instances.
Copyright © 2013-2017 Software AG, Darmstadt, Germany. (Innovation Release)

Product LogoContact Support   |   Community   |   Feedback