You configure a reusable charge that defines the initialization of a shared persistent counter when it is created in a provider contract.
This charge must include:
The declaration of the persistent counter you want to share
A parameter dedicated to the counter initialization
A One-Shot Rate component (*) that configures the initialization of a counter with the parameter value
|
Caution: Do not initialize the same counter twice. |
To create a reusable charge dedicated to the settings initializing the shared counter
Create and set up a reusable charge.
Add a one-shot rate component, a persistent counter, and a parameter to the charge. Note that the parameter enables you to initialize the counter value at provider contract level.
Set the Event Name to Activation in the Definition tab of the One-Shot Rate component.
Add a Counter Operator component to the One-Shot Rate branch tree.
Set the counter to the value of the parameter in this Counter Operator component (*).
(*) See the online Help of logic components for more information about One-Shot Rates and Counter Operators (see help resources).
Next
You can customize this particular charge in a charge plan: Use a charge plan to configure the initialization of a shared counter