Beruflich Dokumente
Kultur Dokumente
Usage Subscription
CIS
Usage Transaction
Periodic Push
Process
US Id: 123910119192
UT Id: 12391011919232
US Id: 123910119192
UT Id: 12391011919232
Usage
Calculation
Engine
9-2
Usage Transaction
Usage
kWh / On peak
1200.1 kWh
401.2 kWh
kWh / Shoulder
654.8 kWh
Usage Transaction
Periodic Push
Process
CIS
UT Id: 12391011919232
Start Date/Time: 29-Dec-09 12am
For scalar-oriented
usage rules
For interval-oriented
usage rules
9-3
Usage Rule
10
9-4
US Id: 123910119192
UT Id: 12391011919232
Start Date/Time: 1-Jan-10 3:00pm
End Date/Time: 30-Jan-10 12:00am
UOM / TOU
Usage
kWh / On peak
1200.1 kWh
401.2 kWh
kWh / Shoulder
654.8 kWh
Eligibility Criteria
Just like VEE rules, a usage rule may optionally have eligibility criteria
to control if the rule is applied
This feature can reduce the number of usage groups required by
an implementation because it allows a single usage group to
have conditional rules (rather than requiring a distinct usage
group for every combination of usage rules)
Usage Group: Residential TOU
Seq
10
20
9-5
Usage Rule
Apply Solar TOU map to kWh channel
Criteria: Apply if customer has solar power
Usage Rule
Apply Solar TOU map to kWh channel
Criteria: Apply if customer has solar power
9-6
Seq
Usage Rule
10
20
Effective Dates
Unlike VEE rules, usage rules do not have individual effective dates
Rather a usage subscription can have different usage groups over time
In MDM 2.0.0, the system uses the group effective at the start of the usage
transaction period
In MDM 2.0.1, the system calculates separate bill determinants for each group
effective in the usage period
In other words, the entire usage group is effective-dated rather than the individual rules
US ID: 1234123112
Usage Rule
Retrieve start / end readings
Start Date
Usage Rule
10
9-7
Residential TOU
1-Jan-2010
15-Nov-2010
End Date
Usage
Calculation
Engine
9-8
Usage Transaction
US Id: 123910119192
UT Id: 12391011919232
Start Date/Time: 1-Jan-10 3:00pm
Date/Time Range:
1-Jan-10 12:00am to 20-Jan-10 12:00am
UOM / TOU
Usage
kWh / On peak
1200.1 kWh
401.2 kWh
Usage Period
kWh / Shoulder
654.8 kWh
Date/Time Range:
20-Jan-10 12:00am to 31-Jan-10 12:00am
UOM / TOU
Usage
kWh / On peak
865.5 kWh
221.2 kWh
kWh / Shoulder
356.3 kWh
Usage
Usage
Group / Rule
TOU Map
SP
MC
kWh / On peak
1200.1 kWh
Commercial
TOU /
Apply simple
TOU map
1239219876
(Bakery)
39191912312
(18 Main St)
8382821921
(kWh
channel)
401.2 kWh
Commercial
TOU /
Apply simple
TOU map
1239219876
(Bakery)
39191912312
(18 Main St)
8382821921
(kWh
channel)
kWh / Shoulder
654.8 kWh
Commercial
TOU /
Apply simple
TOU map
1239219876
(Bakery)
39191912312
(18 Main St)
8382821921
(kWh
channel)
9-9
Date/Time Range:
1-Jan-10 12:00am to 31-Jan-10 12:00am
UOM / TOU / SQI
Usage
Usage Group /
Rule
kWh
1200.1 kWh
Commercial /
Retrieve kWh
intervals
401.2 kWh
Commercial /
Apply simple
TOU map
kWh / Shoulder
654.8 kWh
Commercial /
Apply simple
TOU map
9 - 10
TOU Map
SP
MC
39191912312
(18 Main St)
8382821921
(kWh
channel)
1239219876
(Bakery)
39191912312
(18 Main St)
8382821921
(kWh
channel)
1239219876
(Bakery)
39191912312
(18 Main St)
8382821921
(kWh
Performance
note: the
channel)
Intervals
Usage
BTU
505 BTU
Scalar Details
9 - 11
Final
Usage
Usage Group /
Rule
Measured Usage
UOM / TOU / SQI
SP
MC
Start
Measurement
End
Measurement
202 BTU
Residential /
Retrieve Scalar
200 CCF
39191912312
(18 Main St)
8382821921
(CCF register)
1-Jan-10 3pm
10000
15-Jan-10 6pm
10200
303 BTU
Residential /
Retrieve Scalar
300 CCF
39191912312
(18 Main St)
8382821921
(CCF register)
15-Jan-10 6pm
10200
30-Jan-10 4pm
10500
Usage Group /
Rule
Measured Usage
UOM / TOU / SQI
SP
MC
Start
Measurement
End
Measurement
202 BTU
Residential /
Retrieve Scalar
200 CCF
39191912312
(18 Main St)
8382821921
(CCF register)
1-Jan-10 3pm
10000
15-Jan-10 6pm
10200
303 BTU
Residential /
Retrieve Scalar
300 CCF
39191912312
(18 Main St)
8382821921
(CCF register)
15-Jan-10 6pm
10200
30-Jan-10 4pm
10500
Usage Period
Date/Time Range:
1-Jan-10 12:00am to 31-Jan-10 12:00am
UOM / TOU / SQI
Usage
Usage
Group / Rule
BTU
505
Residential /
Retrieve
Scalar
9 - 12
TOU Map
SP
MC
39191912312
(18 Main St)
8382821921
(CCF
register)
Usage
Calculation
Engine
Usage
kWh / On peak
1200.1 kWh
0 kWh
kWh / Shoulder
0 kWh
Exception
Exception: There is no off peak kWh
9 - 13
Exception
Exception: There is no shoulder kWh
Exception Category: Issue
US Id: 123910119192
UT Id: 12391011919232
Start Date/Time: 1-Jan-10 3:00pm
End Date/Time: 30-Jan-10 12:00am
Cutoff Date/Time Range:
29-Jan-10 12:00am to 31-Jan-10 12:00am
Usage
Calculation
Engine
UOM / TOU
Usage
kWh / On peak
1,101 kWh
201 kWh
kWh / Shoulder
678 kWh
Exception
9 - 14
Exception
Exception: There is no KW but there is kWh
Exception Category: Terminate
Usage
Calculation
Engine
"Info" exceptions
may exist
MDM
After correcting the cause of the
issues, a user can recalculate a UT
Transition UT to the
Exception state
Transition UT to the
Discarded state
9 - 15
Usage Transaction
US Id: 123910119192
UT Id: 12391011919232
CIS
Usage Transaction
US Id: 123910119192
UT Id: 12391011919232
Usage
Calculation
Engine
9 - 16
Batch Process
CCB
Billing
Bill Segment
Consumption
Request
BD's Requested
In Progress
JMS Queue
Outbound Consumption Requests
<request>19291010</request>
<start>2010-03-14 12:00AM</start>
<cutoff>2010-04-14 12:00AM</cutoff>
<saID>12929192919</saId>
<dateBreaks>
<dateBreak>2010-04-01</breakDate>
</dateBreaks>
JMS Queue
Inbound Bill Determinant Requests
<request>19291010</request>
<start>2010-03-14 12:00AM</start>
<cutoff>2010-04-14 12:00AM</cutoff>
<saID>12929192919</saId>
<dateBreaks>
<dateBreak>2010-04-01</breakDate>
</dateBreaks>
MDM
BPEL
9 - 18
MDM
<request>19291010</request>
<start>2010-03-14 12:00AM</start>
<cutoff>2010-04-14 12:00AM</cutoff>
<saID>12929192919</saId>
<dateBreaks>
<dateBreak>2010-04-01</breakDate>
</dateBreaks>
Usage Transaction
Usage Transaction
Pending
Sent
Usage
Calculation
Engine
or
Usage Transaction
JMS Queue
JMS Queue
<request>19291010</request>
<start>2010-03-14 12:00AM</start>
<cutoff>2010-04-14 12:00AM</cutoff>
<saID>12929192919</saId>
<usagePeriodsList>
<start><2010-03-14 12:00AM</start>
<end>2010-04-01 12:00AM</cutoff>
<serviceQuantity>
<spId>19209102</spId>
<uom>KWH</uom>
<tou>PEAK</tou>
<quantity>1000</quantity>
</serviceQuantity>
</usagePeriodsList>
<usagePeriodsList>
<start><2010-04-01 12:00AM</start>
<end>2010-04-14 12:00AM</cutoff>
<serviceQuantity>
<spId>19209102</spId>
<uom>KWH</uom>
<tou>PEAK</tou>
<quantity>2151</quantity>
</serviceQuantity>
</usagePeriodsList>
<request>19291010</request>
<start>2010-03-14 12:00AM</start>
<cutoff>2010-04-14 12:00AM</cutoff>
<saID>12929192919</saId>
<consumptionPeriod>
<start><2010-03-14 12:00AM</start>
<end>2010-04-01 12:00AM</cutoff>
<serviceQuantity>
<spId>19209102</spId>
<uom>KWH</uom>
<tou>PEAK</tou>
<quantity>1000</quantity>
</serviceQuantity>
</consumptionPeriod>
<consumptionPeriod>
<start><2010-04-01 12:00AM</start>
<end>2010-04-14 12:00AM</cutoff>
<serviceQuantity>
<spId>19209102</spId>
<uom>KWH</uom>
<tou>PEAK</tou>
<quantity>2151</quantity>
</serviceQuantity>
</consumptionPeriod>
JMS Queue
Outbound Bill Determinant Responses
Discarded
9 - 19
<request>19291010</request>
<errorNumber>12910</errorNumber>
BPEL
CCB
<request>19291010</request>
<start>2010-03-14 12:00AM</start>
<cutoff>2010-04-14 12:00AM</cutoff>
<rate>E1</rate>
<consumptionPeriod>
<start><2010-03-14 12:00AM</start>
<end>2010-04-01 12:00AM</cutoff>
<serviceQuantity>
<spId>19209102</spId>
<uom>KWH</uom>
<tou>PEAK</tou>
<quantity>1000</quantity>
</serviceQuantity>
</consumptionPeriod>
<consumptionPeriod>
<start><2010-04-01 12:00AM</start>
<end>2010-04-14 12:00AM</cutoff>
<serviceQuantity>
<spId>19209102</spId>
<uom>KWH</uom>
<tou>PEAK</tou>
<quantity>2151</quantity>
</serviceQuantity>
</consumptionPeriod>
CCB
Consumption
Request
Bill Segment
Complete
Frozen
Bill
Complete
JMS Queue
<request>19291010</request>
<errorNumber>12910</errorNumber>
<errorComment>SP 19209102 cannot
be found</errorComment>
CCB
Bill Segment
Error
Error
9 - 20
Usage Group
CH, X
Subscript.
Type
Fallback (edate)
US Type /
Usage
Group
Valid Device
Configuration
Type
Usage
Subscript.
Override (edate)
US / Usage
Group
A usage group
has rules
Category
Usage Rule
CH, X
For audit
purposes
A usage rule
may execute a
different usage
group's rules
Eligibility
Criteria
CH, X
Usage
Relationship
Type
Usage
Transaction
ST, CH, X
Usage Period
X
Legend
Scalar Detail
X
UOM
UOM
Trans. Data
Admin Data
SQ
X
SP ID
TOU
Only populated
by scalar rules
Master Data
FW Data
SQI
MO Boundary
TOU
SQI
Factor
Usage Rule
MC ID
Related Usage
Transaction
MC ID
Measurement Route
Schedule
SP ID
TOU Map
Described
elsewhere
ST - Status
CH - Characteristics
X - CLOB
BO Definition
BO Definition
Usage
Group
Usage Rule
Business
Object
Eligibility
Criteria
Business
Object
Usage
Transaction
9 - 24
Legend
Tran. Data
Admin Data
Master Data
FW Data
Usage Transaction BO
9 - 26
9 - 27
9 - 28
9 - 29
9 - 31
9 - 32
9 - 34
9 - 35
9 - 36
9 - 37
Recall that soft parameters are used for configuration options that have a high
probability of being the same for every instance of the rule (and can therefore be
shipped with the base-package)
9 - 38
You could use a rule that retrieves the individual measurements for the
usage transaction period and then creates a service quantity for the total
You could use a rule that uses a SQL statement to apply a TOU map to
the individual measurements and return the total
If all you needed was the total, this would be wasteful (and very slow)
You could use a rule that uses a SQL statement to select the sum of
measurements
There is no faster way to add up / find the maximum value from thousands
of measurements than to let the database do it
Usage
Subscription
Service Point
US/SP
This rule uses SQL to join the TOU map's data to the
MC(s) final measurements (using the respective
measurement column that corresponds to the UOM /
SQI on the rule). The database returns a separate
row for each TOU code in the calculation period.
Please note that a separate entry will be placed in
the usage transaction's SQsList for each MC and
TOU combination. This means that if there are
multiple MCs linked to the US, multiple entries will
exist for every UOM / TOU combination. If you want
another entry in the SQsList with the grand total of
each UOM / TOU combination, add a subsequent
Service Quantity Math rule (described later).
9 - 41
Device Config.
Install Event
MC Type
MC
Measurement
UOM/TOU/SQI
Measurement
Usage Rule
TOU Map
TOU Data
XML
TOU
UOM
SQI
9 - 42
9 - 43
This means that a SQL MAX function will be used against the kWh measurements. The
result will be converted to KW. It should be noted that the logic takes into account
disparate SPIs on the MCs.
This configuration returns the total kWh from all MCs that measure KW. It should be
noted that the logic takes into account disparate SPIs on the MCs.
This means that a SQL SUM function will be used against the KW measurements. The
result will be converted to kWh. It should be noted that the logic takes into account
disparate SPIs on the MCs.
9 - 44
9 - 45
9 - 46
9 - 47
Vector Math
In the VEE - Part II section, the Apply Formula service was described. Recall that
this service is used to apply a formula to one or more vectors to create a final value
vector (the service can also apply a final formula to the values in the final value
vector to create a scalar quantity)
The Vector Math rule is simply a front-end to this service that is used to derive an
interval curve from other curves (the resultant curve is placed in the SQsList)
If this rule is executed for large volumes, performance issues could ensue
Note - this rule exists in demo (a productized version is coming in 2.0.1)
Interval
IV1
kVARh
IV2
kWh
10:00 AM
1.2
0.23
0.188240
11:00 AM
1.234
1.321
0.730760
12:00 PM
2.0121
2.12
0.725323
1:00 PM
1.456
1.12
0.609710
2:00 PM
1.2345
0.12
0.096749
3:00 PM
1.0012
2.1212
0.904328
4:00 PM
0.012
2.65
0.999989
5:00 PM
0.121
0.121
0.707106
Final
Value
9 - 48
FV
COS(ATAN(IV1/IV2))
0.999989
Ditto
9 - 50
It is very important that usage rules be written as efficiently as possible as the impact of
inefficient logic could cause usage calculation to run slowly
Use the base-package services to do the "heavy lifting" when possible as they are
efficient
The upcoming section will explain several of these services
However, even these services can be slow if supplied with "wide" date ranges
If a rule is used by the mass market, you should prototype it in scripting and determine
if it performs adequately. If not, it should be rewritten in Java
If you develop a new rule using scripting / xpath2, it is far better to move group nodes
rather than move individual elements
9 - 52
It is much better to invoke base-package service that use the database to calculate
sums / averages / maximums from final measurements
If you do not require xpath2 functions, xpath1 is faster
Copyright 2010, Oracle. All rights reserved.
9 - 53
9 - 54
9 - 55
Usage Rule
Retrieve the sum of cubic meters from
the SPs linked to the US and multiply it
by the territory-based KJ conversion
factor
Southern territory
Eastern territory
Western territory
9 - 57
Effective Date
15-Jan-2010
1.23921
16-Feb-2010
1.32910
23-Apr-2010
1.28191
Factor
Factor Override
9 - 58
A "flow factor" (a percentage) is assigned to such customers whose value is dependent on the
amount of water usage that's used for gardening.
The total water usage is multiplied by this flow factor when the waste water bill determinants are
calculated
The subscribing system would like three values: the total consumed, the flow factor used, and
the resultant value (total * flow factor)
In this practice, you will:
Create a usage calc group / rule(s) for the water usage subscriptions that calculates the grand
total of liters for the entire usage period
Create a usage calc group / rule(s) for the waste water usage subscriptions that calculates the
amount for waste water
Add an IMD for several days of consumption for your residential water meter
Create usage transactions for the water and waste water usage subscriptions
The next slide provides a summary of the data that will be set up
9 - 59
Subscript. Type
Fallback (edate)
Usage Group
Device Config
Type
US Type /
Usage Group
Valid Device
Configuration
Type
1
Usage
Subscript.
Factor
3
7
Category
US / Factor
Override
Factor / Char
Value
Usage Rule
2
Usage
Transaction
Factor Value
MC
Usage Period
UOM
Initial Meas.
Data (IMD)
SQ
8
Legend
TOU
Trans. Data
Admin Data
SQI
Master Data
FW Data
Factor
Usage Rule
MC ID
SP ID
TOU Map
Measurement
MO Boundary
Described
elsewhere
ST - Status
CH - Characteristics
X - CLOB
9 - 60
9-1 Solution
Add A Factor
Navigate to Admin / F / + Factor to add a Factor that holds
the flow factor (prefixed with your initials)
Factor
Description
Identifying BO
RW-FF
RW - Flow Factor
Factor Number
9 - 61
9-1 Solution
Add The Default Factor Value
Click the Add icon to define the value for this
characteristic
9 - 62
9-1 Solution
Update Your Waste Water US
3
9 - 63
9-1 Solution
Add Usage Groups
Navigate to Admin / U / + Usage Group to add these Usage
Groups (prefixing each with your initials)
Usage Group
Description
Identifying BO
RW-W-RES
Usage Group
RW-WW-RES
Usage Group
9 - 64
9-1 Solution
Update Your US Types
5
US Type
RW-W-RES
RW-WW-RES
9 - 65
9-1 Solution
Add SQIs
6
SQI
Description
Identifying BO
RW-FFADJ
Service Quantity
Identifier
RW-FF
RW - Flow Factor
Service Quantity
Identifier
9 - 66
Navigate to Admin / S / +
Service Quantity Identifier to
add SQIs for:
- The flow factor adjusted water
consumption on the waste water
usage transactions
- The flow factor service quantity
used on the waste water usage
transactions
(prefixed with your initials)
9-1 Solution
Add Water Usage Rule
Usage Rule
Description
Identifying BO
RW-RTL
Apply Math
(Interval Data)
7.1
This is the UOM / TOU / SQI that will be placed in the SQsList
for the total water consumption (use your Liters UOM)
This rule just needs the grand total of all MCs with a given
UOM therefore (i.e., a single variable), therefore you can
use the Single Value Calculation Type
9 - 67
Specify the UOM on your water MC type (all MCs linked to the
US with a final measurement with this UOM will be aggregated)
Copyright 2010, Oracle. All rights reserved.
Specify Sum to
get the grand total
9-1 Solution
Add The First Waste Water Usage Rule (Retrieve Total
Liters) Add the first of three usage rules to your waste
Usage Rule
Description
Identifying BO
RW-RTL
Apply Math
(Interval Data)
7.2
9 - 68
9-1 Solution
Add Retrieve Flow Factor Usage Rule
7.3
Usage Rule
Description
Identifying BO
RW-RFF
RW - Retrieve Flow
Factor
Apply Math
(Interval Data)
9 - 69
9-1 Solution
Add Adjust Consumption Using Flow Factor Usage Rule
7.4
Usage Rule
Description
Identifying BO
RW-ADJFF
RW - Adjust Consumption
Using Flow Factor
Service Quantity
Math
The UOM / TOU / SQI that will be placed in the SQsList for
this rule (specify your Flow Factor Adjusted SQI, you can
optionally define a UOM of Liters)
Specify the UOM / TOU / SQI of the
entry added to the SQsList in the
first rule (the total liters)
Multiply
9 - 70
9-1 Solution
Create Usage Transactions
9.1
9 - 72
9-1 Solution
Create The Waste Water Usage Transaction
9.2
9 - 73
9-1 Solution
Create Usage Transactions
9.3
9 - 74
If the SP has any type of solar installed, the solar usage group will be
invoked; it returns the following bill determinants:
Return TOU mapped consumption from the generated channel using the demo
TOU map (Year round schedule, 15 minute interval)
Return the peak KW from the generated channel
Return TOU mapped consumption from the consumed channel using the demo
TOU map
Return the peak KW from the consumed channel
Return a curve representing the difference between the consumed - generated
channel (as the CIS wants it)
Otherwise, the regular electric usage group will be invoked; it returns the
following bill determinants:
Return TOU mapped consumption from the kWh channel using the demo TOU
map (Year round schedule, 15 minute interval)
Return the peak KW from the kWh channel
The next slide provides a summary of the data that will be set up
9 - 75
Subscript. Type
Fallback (edate)
Usage Group
Device Config
Type
US Type /
Usage Group
Valid Device
Configuration
Type
7
5
2
Category
Usage
Subscript.
Usage Rule
8
6
4
Algorithm
Usage
Transaction
Eligibility Criteria
Usage Period
UOM
SQ
Legend
TOU
Trans. Data
Admin Data
SQI
Master Data
FW Data
Factor
Usage Rule
MC ID
SP ID
TOU Map
MO Boundary
Described
elsewhere
ST - Status
CH - Characteristics
X - CLOB
9 - 76
9-2 Solution
Add Usage Groups
1
Usage Group
Description
Identifying BO
RW-E-RES
Usage Group
RW-E-RES-SOLAR
Usage Group
9 - 77
9-2 Solution
Add A Usage Rule - TOU Generated
Usage Rule
Description
Identifying BO
RW-TOUGEN
RW - TOU Map
Generated
2.1
9 - 78
9-2 Solution
Add A Usage Rule - Peak KW Generated
Usage Rule
Description
Identifying BO
RW-KWGEN
RW - KW From
Generated
Apply Math
(Interval Data)
2.2
9 - 79
9-2 Solution
Add A Usage Rule - TOU Consumed
Usage Rule
Description
Identifying BO
RW-TOUCON
RW - TOU Map
Consumed
2.3
9 - 80
9-2 Solution
Add A Usage Rule - Peak KW Consumed
Usage Rule
Description
Identifying BO
RW-KWCON
RW - KW From
Consumed
Apply Math
(Interval Data)
2.4
9 - 81
9-2 Solution
Add A Usage Rule - Consumed minus Generated Vector
2.5
Usage Rule
Description
Identifying
BO
RW-KWCONGEN
RW - Create Vector Of
Consumed minus
Generated
Vector Math
The final value in the SQsList is the sum of the final value vector
9-1 Solution
Add SQI - Net Consumption
3
SQI
Description
Identifying BO
RW-NETCON
RW - Net Consumption
Service Quantity
Identifier
9 - 83
9-2 Solution
Add A Usage Rule Eligibility Criteria Field Algorithm
Algorithm
Description
RW-GETSOLAR
9 - 84
9-2 Solution
Add A Usage Rule
5
Usage Rule
Description
Identifying BO
RWEXECSOLAR
RW - Execute Solar If
Solar Installed
Execute Usage
Group
9 - 85
9-2 Solution
Add Eligibility Criteria For The Usage Rule
6
Eligibility
Sequence
Description
Identifying BO
10
9 - 86
9-2 Solution
Update Your US Type
7
US Type
RW-E-RES
9 - 87
9-2 Solution
Create Usage Transaction
8
Add a usage transaction for your electric usage subscription. The easiest way to
do this is as follows:
Find the electric usage subscription using 360 Search
Click the Usage Subscription context menu and then select + Usage
Transaction
When prompted,
enter the following
9 - 88
9-2 Solution
Update Your UOM
9.1
You will be transferred to the usage transaction portal after the UT is created.
9 - 89
9-2 Solution
Recalculate The UT
9.2
9 - 90
9-2 Solution
Examine The Other Zones
9.3
9 - 91
Review Questions
9 - 92