Allowance Event Sender Operator

Note: You cannot use this component after an Account Event Refill component in the Refill Logic or after an Event-Based Trigger component in the Allowance Logic.

The Allowance Event Sender Operator allows to send an allowance event to allowances that:

Notes:

  • You can trigger the sending of the event depending on the value of a monitored property.

  • The allowance that sends the event through the Allowance Event Sender Operator does not receive this event.

Use

You can use the Allowance Event Sender Operator for sending events to allowances from the price plan, the refill logic, or the allowance logic.

Example: The allowance event is modified

An operator sets up the Allowance Event Sender Operator in a price plan to consume the allowances related to the duration of a videoconference. The Allowance Event Sender Operator sends an allowance event from the allowance event class "ALLOW_VIDEO_MINUTES” whose property is the duration of the videoconference in minutes.

The operator models the Allowance Logic through the “ALLOW_VIDEO_MINUTES” Allowance Event Class (the type of the Event Allowance):

Example: The allowance event is not modified

An allowance is created through a refill plan. The allowance is valid six months and is part of a group of allowances named 'SAMPLE_GROUP'. The allowances of the group have the same parameter value and extend their validity period each time a new allowance is added to the group.

When an allowance is created for the group, the new allowance must inform the allowances of its group with an event of the type 'NEW_ALLOWANCE_CREATED' including the following fields:

The other allowances of the group can then perform actions when receiving the events.

Identification Area

Name: Type the name of the component (mandatory).

Description: Allows you to type the description of the component (optional).

Definition Tab

Allowance Event Class: Provides the list of allowance event classes. If necessary, click to open the selected allowance event class. Select an allowance event class, set up the values of the properties of the allowance event class, and then define the new output property if necessary:

Stop sending when the monitored property is lower than or equal to 0: Select this option if you want to trigger the sending of the event depending on the value of a monitored property.

Note: The definition of output properties and the control of the sending of the event require that the allowance logic modifies the event.

Selection Tab

This table defines the conditions for selecting the allowances that will receive the allowance event.

: Adds a row to the table

: Deletes a row from the table

Property Name: Select the name of the allowance property, which can be:

Type: Displays the type of the allowance property (Date, Number, or String)

Operator: Provides the list of comparison operators. Select an operator:

Comparison Value: Type a value or select a rating context property (a parameter or a counter).

Notes:

  • You must check that the selection criteria are coherent because you can apply different selection criteria to the same allowance property.

  • By default, 2 selection criteria are available and correspond to the criteria that are used to select non-expired allowances. These 2 criteria cannot be modified or deleted from the table.

Sorting Tab

On the Sorting tab of the Allowance Event Sender Operator component, you define the two-level rules for sorting the allowances:

The criteria are the following:

Notes:

  • If the values of the properties, parameters, or counters of two or more allowances are equal, the sort system uses the unique identifier of the allowances as the sort criterion. For example, if the values of the properties, parameters, and counters of three allowances A, B, and C are equal, the system sorts allowances A, B, and C according to their unique identifier.

  • The criteria cannot be duplicated in the list.

Example

On the Sorting tab of the Allowance Event Sender Operator component, the table represents a set of rules for sorting allowances. Each row of the table represents a rule, and the first column (#) of the table represents the priority order of the rules.

If we consider a set of allowances a1, a2,…, an, and the following rules for sorting the allowances:

#

Name

Type

Order

1

Property 1

number

Descending

2

Property 2

date

Descending

3

Property 3

number

Descending

The set of allowances is sorted according to the order of the following properties:

  1. Property 1: From the greatest number to the smallest number.

  2. Property 2: From the earliest date to the oldest date.

  3. Property 3: From the greatest number to the smallest number.

For example, if we sort the following set of allowances according to the previous rules:

 

Property 1

Property 2

Property 3

Allowance 1

4

26\09\2013

2

Allowance 2

4

26\09\2013

28

Allowance 3

4

26\09\2013

4

The sort result is the following:

 

Property 1

Property 2

Property 3

Allowance 2

4

26\09\2013

28

Allowance 3

4

26\09\2013

4

Allowance 1

4

26\09\2013

2

The system first sorts the allowances according to this order: Property 1, Property 2, and Property 3 (position in the table). But if the values of the properties (Property 1 and Property 2) are equal like in this example, the system sorts the allowances according to the different values of Property 3 (in the descending order of the criterion).

If we keep the same rules as in the previous example and if the set of allowances is the following:

 

Property 1

Property 2

Property 3

Allowance 1

4

26\09\2013

9

Allowance 2

8

26\09\2013

6

Allowance 3

12

26\09\2013

1

The sort result is the following:

 

Property 1

Property 2

Property 3

Allowance 3

12

26\09\2013

1

Allowance 2

8

26\09\2013

6

Allowance 1

4

26\09\2013

9

Because the values of Property 1 are not equal, the system first sorts the allowances according to Property 1 (position in the table) and according to the different values of Property 1 (in the descending order of the criterion). And the system ignores Property 2 and Property 3.

Use of icons

: Adds a row to the table.

: Deletes a row from the table.

: Moves a row up in the table.

: Moves a row down in the table.

#: Displays the sort order of allowances.

Name: Provides the list of properties, parameters, and counters to sort the allowances. Select a property, a parameter, or a counter.

Type: Displays the property, the parameter, or the counter type.

Order: Provides the list of sort orders. Select a sort order: Ascending or Descending.

Scope Tab

Extend the scope to the parent contract allowances: If you select this option, the allowance event is sent to the allowances of the current provider contract and the allowances of the parent provider contract; otherwise, the allowance event is only sent to the allowances of the current provider contract.