Weighted priority calculation

To determine the priority of a raised event, the aggregate object weighting and aggregate event weighting must be calculated. The weighting values are then used to determine the amount of influence that the following priorities have on calculating the actual priority of the event.
TechPriority
The priority of the object that is raising the event.
EventPriority
The priority of the type of the event.
The equations that are used to calculate the aggregate weighting values and the actual priority of the event are shown in the following example.

AggregateObjectWeighting = (ObjectWeighting / 
                            (ObjectWeighting + EventWeighting))

AggregateEventWeighting  = (EventWeighting  / 
                            (ObjectWeighting + EventWeighting))

ActualEventPriority      = (TechPriority * AggregateObjectWeighting) 
                            + (EventPriority * AggregateEventWeighting)

Calculation example

This example uses the following weighting values:

ObjectWeighting = 75
EventWeighting  = 25
These weighting values produce the following aggregate weighting values:

AggregateObjectWeighting = 75 / (75 + 25)
                         = 75 / 100
                         = 0.75

AggregateEventWeighting  = 25 / (75 + 25)
                         = 25 / 100
                         = 0.25
The following example shows how to calculate the CommonBaseEvent priority for an event that was raised by an object with a priority of 70. The event has a priority of 50.

ActualEventPriority = (70 * 0.75) + (50 * 0.25)
                    = 52.5 + 12.5
                    = 65

After the CommonBaseEvent priority is calculated, it is stored in the priority attribute of the event. The IBM® MQ priority is determined from the CommonBaseEvent priority ranges in the following table. In this example, the CommonBaseEvent priority is 65, which is in the 60 - 69 range. The IBM MQ priority to use is 6.

Mapping the CommonBaseEvent priority to the IBM MQ priority

The following table is used to map the calculated CommonBaseEvent priority to a IBM MQ priority.
CommonBaseEvent priority range IBM MQ priority
90 - 100 9
80 - 89 8
70 - 79 7
60 - 69 6
50 - 59 5
40 - 49 4
30 - 39 3
20 - 29 2
10 - 19 1
0 - 9 0