Академический Документы
Профессиональный Документы
Культура Документы
Operations
Guide
for
Document Number
VA500-55-1015-BR3, V5.00
Disclaimer
Although every effort has been made to ensure the accuracy of the information contained in this
document, ADC Software Systems Ireland Limited makes no warranty, expressed or implied, with
respect to the quality, correctness, reliability, currency, accuracy, or freedom from error of this
document or the products it describes. ADC Software Systems Ireland Limited may make
improvements and/or changes to the products and services described in this document at any time.
ADC Software Systems Ireland Limited disclaims all liability for any direct, indirect, incidental,
consequential, special, or exemplary damages resulting from the use of the information in this
document or from the use of any products described in this document. Mention of any other product
not owned by ADC does not constitute an endorsement of that product by ADC Software Systems
Ireland Limited. Data used in examples and sample data files are intended to be fictional and any
resemblance to real persons or companies is entirely coincidental.
Persons reading this document should rely on their own enquiries in making any decisions touching
on their own interests.
Licence Agreement
The software described in this guide is supplied under a licence agreement and may only be used in
accordance with the terms of that agreement.
Copyright Information
© 2000 ADC Software Systems Ireland Limited. All rights reserved. Apart from any use permitted
under the Copyright Act, no part may be reproduced by any process without the written permission of
ADC Software Systems Ireland Limited, IDA Business Park, Dangan, Galway, Ireland.
The following is a trademark of ADC Software Systems Ireland Limited:
Preface....................................................................................................................................... v
Welcome to Singl.eView Convergent Billing ............................................................................ v
Who Should Read this Guide .................................................................................................... vi
Before Beginning....................................................................................................................... vi
How this Guide is Structured ................................................................................................... vii
Other Singl.eView Convergent Billing Documentation...........................................................vii
Conventions Used in this Guide ..............................................................................................viii
Obtaining Help .......................................................................................................................... ix
The Online Help System ............................................................................................... ix
Form Help ...................................................................................................................... x
Context-sensitive help................................................................................................... xi
Hint text........................................................................................................................xii
Help on Confirm window options................................................................................xii
Help on error messages ...............................................................................................xiii
Chapter 2 – Rating................................................................................................................2-1
Managing Rating Files ............................................................................................................2-1
Running a Rating Task ............................................................................................................2-3
Preparation ..................................................................................................................2-3
Running the rating task ...............................................................................................2-3
Checking the results ....................................................................................................2-4
Index
Before Beginning
This guide assumes that the reader has some experience in using:
• Microsoft Windows
• UNIX
• SQL.
It also assumes a through knowledge of the company's system operation
and billing procedures.
Obtaining Help
The Online Help The Online Help System has been designed to provide information to suit
System the needs of many types of operators. It consists of the following fully
integrated and linked suite of help components, together with a number of
navigational aids that allow movement between and within help topics:
• Task based (procedural) help that provides step-by-step
instructions on how to perform a specific task, with links to
reference information relevant to the task.
• Reference information to assist operators new to Singl.eView
Convergent Billing in obtaining the knowledge required to use
the system effectively and efficiently.
• Full text search and keyword (index) search facilities to locate
information in the help system.
• Examples and video demonstrations, to show by example how to
perform some of the more common procedures.
• Glossary of terms, which defines each of the terms used in
Singl.eView Convergent Billing.
Form Help Forms are used to enter, view, and modify data. A form may contain tabs
and controls such as data entry fields, display only fields, function
buttons, option buttons and check boxes. Several forms can be opened
and displayed on the screen at one time. However, only one form can
have input focus. The form that currently has input focus is referred to as
the active form.
To display help for a specific form:
1. Make the form active.
2. Click the Help button on the toolbar.
Details about the form are displayed in a separate window.
Where a form contains one or more tabs, a link is provided on the Form
Help window to details relevant to that tab. Such information is
displayed in a pop-up window.
For the majority of forms, links are also provided to the task based help in
the Online Help System.
Context- Context-sensitive help is provided for all components (data entry fields,
sensitive help buttons, check box, and option buttons) associated with each form within
Singl.eView Convergent Billing.
To obtain information about a component:
1. Click inside the component (or tab to the component).
2. Press the F1 key.
Information about the component is displayed in a pop-up window.
Sample context-sensitive help for the Query Number field is shown
below.
Hint text Hint text is provided for each form field. Sample hint text for the Family
Name field is shown below.
This part provides details on billing. This part consists of the following
four chapters:
• Chapter 1, Introduction to Rating and Billing
• Chapter 2, Rating
• Chapter 3, Billing
• Chapter 4, Batch Printing
White text
Chapter 1
Introduction to Rating and Billing
Invoice images
Rater Biller
Normalised Invoice
events data
Normalisation Rating Billing Invoicing
Invoices or Statements
Term Definition
Alpha event Event supplied as input to Convergent
Billing for normalisation. Alpha events may
be in these formats:
• Automated Message Accounting
(AMA) records Version 1.0, as
output by the AT&T 5ESS switch.
• Incoming Traffic Accounting Data
(ITAD) records Version 1.0, as
output by the AT&T 5ESS switch.
• Convergent Billing native event
format, consisting of fields in user
definable order, prefixed with a
record length field. V3.03 delimits
each field with the ASCII character
255. V4.00 delimits with an ASCII 0
(null).
• Any format that can be specified in
the subset of ASN.1 supported by
the Convergent Billing Data
Interface Language (DIL)(for more
information, refer to the System
Administration Guide).
Charge Amount billed associated with a specific
event once it has been rated.
Corrupted event Alpha event that the ENM process could
not decode or interpret. Corrupted events
from a file are saved in the ENM error
directory for external reprocessing. If
received from a remote host, corrupted
events are discarded and the sender
informed.
Term Definition
Error event An error event is either a normalisation
error event or a rater error event, as output
by the ERO.
Mediated or pre- Event that has been pre-processed in
normalised event some way before being presented to
Convergent Billing. The event format is
typically implementation specific.
Normalisation Event in which one or more of the
error event normalising expressions could not be
evaluated. Normalisation error events are
not rated.
Normalised event Event that has been converted to a
common format by the Event Normalisation
(ENM) process. Each normalised event is
sent to an Event Rating Output (ERO)
process and normally is also sent to one or
more Event Rating (ERT) processes for
rating.
Rated event Normalised event that has been output by
an ERO process after being rated
successfully by one or more ERT
processes.
Rater error event Event that caused an error in the ERT
during rating, such as incorrect evaluation
of a tariff expression or a reference to an
undefined service. All charges generated
for a rater error event are discarded.
Raw event Event generated by a switch or other
device. The event format is typically device
specific.
Balance Management
trerodb trerate
Shared Memory
Rating Segment (Account,
Engine Customer Node,
Service, and Rating
Subtotal Caches)
Two TRE servers, the trerodb and the trerate, provide functions for
handling events coming in to Convergent Billing. These events may
include, among others, events from carriers and switches, and rental
events.
Once a call is established (or a request for authorisation arrives) in the
Convergent Billing system, balance management can be used to uniquely
identify that event and to make reservations. This process, using a
combination of functions offered by the trerate's biAccount and
biTrerate services, checks a customer's credit limit and reserves a
portion of that credit for the current event. This enables calls to be
refused if the customer's credit is not sufficient.
Once the call is complete, the complete event can be passed on to the
rating engine for normalisation and rating, using functions offered by the
trerodb's biEvent service. Balance management ensures that the event
continues to be uniquely identified in the process by passing its
reservation ID on to the rating engine.
Event Rating
ERB
Event
Rating
Broker
process
Rating Information
(including service,
Shared Memory Segment - product, and tariff
includes inter-process communication details)
Socket
Corrupted and
duplicate events
ENM error
directory Event formats,
decoding expressions
The rating engine runs under the control of the Event Rating Broker
(ERB) process, which in turn is controlled by the Backend Monitor
Process (BMP). The ERB provides services to the other rating processes
and manages the shared memory segments used for caching data from the
database, and for interprocess communication (for more information,
refer to the System Administration Guide).
The three cooperative processes of the rating engine are:
• The Event Normalisation (ENM) process, which converts alpha
events from file or from a remote host into normalised events.
• The Event Rating (ERT) process, which applies tariffs to the
normalised events to generate charges.
• The Event Rating Output (ERO) process, which directs the rated
events from the ENM and the ERT to a remote host, or to the
database. Database loading can be done directly or by means of
intermediate files and the SQL*Loader utility.
A minimum configuration for a single instance of the rating engine is one
each of the ENM, ERT and ERO. Providing memory and processing
power are available, it is often desirable to define extra processes to
improve throughput. An ENM can process multiple event types. In
addition, specially configured ENM and ERO processes are required if
the Real Time Rating Pipeline (RTR) is implemented.
For more information on rating engine optimisation and Real Time
Rating, refer to the System Administration Guide.
Event Rating The Event Rating Broker (ERB) process controls rating under the
Broker (ERB) supervision of the BMP. Multiple broker processes can be configured to
process run on one Singl.eView instance. The other rating processes (ENM,
ERT, and ERO) run as child processes of each individual ERB.
The ERB also creates the shared memory segment used for inter-process
communication, as well as the account, customer node, rating subtotal,
and service caches. Caches speed up performance by providing
immediate information to the rating engine. If the required information is
not in the cache, the rating engine retrieves it from the database and
stores it in the cache for later use. For more information on caches and
cache configuration items, refer to the System Administration Guide.
ERB Processing
The flow of processing in the ERB is as follows:
1. On startup, the broker connects to the database and creates, or
connects to, the caches used by the ERT and trerate processes.
2. If there are ENM, ERT, or ERO processes associated with the
broker, the ERB creates, or attaches to, the shared-memory
segment and starts the ENM, ERT, and ERO processes that have
been configured for that ERB.
Account Cache
The account cache is used for caching database details associated with
accounts and account reservations. Account cache fetches and updates
are primarily performed by rating processes to total all of the unbilled
charges for each account, and to provide a mechanism during rating to
check these unbilled charges and see whether they exceed some pre-
determined limit.
Service Caches
The service caches are used for caching database details associated with
services, currencies, and general ledger (GL) codes. The ERT and the
trerate processes use these caches primarily to retrieve service and tariff
details that are required to rate an event.
There are seven service caches that are supported: Service ID, Service
Name, Derived Attribute, Network Name, Currency, GL Code, and
Product caches.
Tracer Record
An ENM process may successfully decode a record that does not
represent an event to be normalised. This type of record is termed a
tracer record and may include information such as the number of records
in a disk file. It may also include header or footer information for the
file. If the ENM process is reading from a disk file, any detected tracer
records are buffered in memory.
If an error file is created for that disk file, any tracer records buffered up
to that point are written to the error file before any corrupt data is written.
This means that any information stored in the tracer records of the
original disk file is preserved in the tracer records of the resultant error
file in order to assist with subsequent processing.
Count File
If the ENM process is counting events from a file, the ENM performs all
the processing that it normally would for rating, except that the event is
not sent to the ERT and ERO. Count results are appended to the count
file upon completion. The count file is stored in the home directory and
is labeled enm<process number>.cnt, where <process number> is
the number of the ENM process.
Status File
While processing events from a source, the ENM process maintains a
status file in its home directory. The name of this file is enm<process
number>.sts (where <process number> is the number of the ENM
process).
The status file contains pertinent event file information (such as process
dates and times, current and previous file byte offsets, and error counts).
The status file is updated each time the ENM is synchronised with the
ERO. Synchronisation is completed once the ENM's output to the ERO
matches the output by the ERO into the database. The ENM may
synchronise many times during the processing of a large normalised event
file. The number of times an ENM will synchronise depends on the
configuration attributes set up for that particular ENM (SYNC and
SYNC_TIMEOUT).
Event Rating The Event Rating (ERT) process is responsible for generating charge
(ERT) process records for normalised events received by the ERB. It uses methods from
the ERM (Event Rating Module) to access information in caches and rate
normalised events.
Event Rating The Event Rating Output (ERO) process takes normalised events from
Output (ERO) the ENM and charges from the ERT, and sends them to a remote host (for
process Real Time Rating) or to the database. Database updating can be done
directly, or the ERO can write its output to a SQL *Loader file for later
batch updating. ERO output direction depends on the configuration
parameter OUTPUT_METHOD.
Note: For large volumes of data, batch updating from files is likely to be
more efficient than direct updating (for more information, refer to the
System Administration Guide).
During rating, each ENM establishes a link with one ERO (if there are
multiple ENMs or EROs running), and maintains this link for the current
event file only. The ENM selects an ERO that is not currently processing
records, based on the ERO's priority (set up in the process configuration).
The ENM/ERO pair communicate with each other (using the inter-
process communication shared memory segments) to ensure that events
pass successfully through the ENM and one or more ERTs, and that the
ERO remains synchronised with the ENM. Events that are successfully
normalised and rated are passed to the database normalised event and
charge tables, or to the remote host. Normalisation or rater error events
(collectively referred to as error events) are either stored in the database
or are transmitted to the remote host.
Each normalised event file record is associated with a rating stream, and
each normalised event contained in that file shares the same rating
stream.
The ERO process logs all error messages to the following file:
$ATA_DATA_SERVER_LOG/log.out
Database Synchronisation
The ERO is responsible for ensuring that the account and rating subtotal
caches (ACM and RSC) are kept in synchronisation with the database.
Therefore, both caches are updated when the ERO commits records
(normalised event files, normalised events, normalised event errors, and
charges) to the database.
If an error occurs and either of the caches cannot be updated, the ERO
logs an error message and performs a database rollback. The ERO then
rolls back all account and rating subtotal cache updates associated with
the file that it is currently processing.
If the database is successfully committed, but an error occurs in the
cache, the ERO logs an error message and continues processing. If a
cache is corrupted, the rating engine should be restarted.
Rating errors Errors in the rating process can take one of two forms:
1. The alpha event cannot be parsed by the ENM because it does
not conform to the specified input format; these are referred to as
corrupted events. If received from a remote host, corrupted
events are rejected and an error message sent to the originator.
Corrupted events found in files are put in the ENM error
directory in a file with the same name as the source file and a .e
extension. Possible courses of action are to:
• Correct the corrupted events outside of Convergent
Billing, then copy them back to the ENM home
directory, and rate them again; this is appropriate if there
is only a small number of errors.
• To revoke the entire rating run, correct the input files by
some external means, then rate them again; this is
appropriate if there is a large number of errors, perhaps
caused by a software problem at the switch.
2. The event conforms with the specified input format, but contains
data that either cannot be normalised or rated; such events are
known as error events (events are either stored in the database or
are transmitted to the remote host).
3. The event can be normalised, but errors occur when committing
to the database. For more information, refer to Database
Synchronisation earlier in this chapter.
For more information on viewing and correcting corrupted and error
events, refer to Chapter 2, Rating.
Parallel tariffing The rating engine can apply different tariffs to the same normalised event
in one pass. This technique is known as parallel tariffing which makes it
possible to apply simultaneously separate tariffs that calculate charges to
customers, commissions, taxes (such as VAT or GST), general levies,
competitor's tariffs (for bill comparisons), and loyalty points.
Parallel tariffing simplifies rating as each event requires only a single
pass through the rating engine, but it also increases the ERT processing
load. It is often appropriate to provide two or more ERT processes for
each ENM process to avoid processing bottlenecks (for more
information, refer to the System Administration Guide).
Billing
Billing is the stage when the rated events generated by the rating engine
are processed by the billing engine to generate billing data, and
eventually invoices for printing or delivery to the customer by electronic
means. Figure 1–4 shows the architecture of the billing engine.
Product/Facility details
Recurring tariffs
All processes shown in the Figure 1–4, with the exception of the GOP,
are run as TRE servers and are automatically executed with the start-up
of the system. The GOP, used to print the final invoices (or output them
to file), is an independent process that runs as required.
The bill run schedule types provided with the base installation offer the
option of running a range of billing operations, from adjusting rental
events to un-applying invoices. If invoices are generated, they can be
sent to an output device, as well as applied to customer accounts.
Rental The Rental Generation Process is a TRE server (trergp). It can be used
Generation during billing to generate rental events and rental adjustment events
Process (RGP) before invoices or statements are generated. In rental generation mode,
rental refers to any recurring charge, such as a subscription to a service or
a maintenance charge, as well as equipment rental. In most cases, these
recurring charges are paid in advance. The RGP is also able to generate
events for one-off rental charges.
The RGP is able to run in Quality Assurance (QA) mode, which means
that these generated events will not be used to bill a customer.
If called in rental adjustment mode, the RGP is used to make any
corrections required to existing advance rental charges if the details of the
rental have changed since the charge was made. For example, an
adjustment may be required if the service was not available to the
customer during part of the relevant period. The rental adjustment mode
is therefore concerned with adjusting past rental charges, whereas the
rental generation mode is used to generate rental charges in advance.
All events generated by QA calls to the RGP are ignored for the purposes
of retrospective adjustment.
Note: The rating of events that are generated in both modes of the RGP
cannot contribute to aggregations or real-time unbilled account balances.
RGP Processing
Processing for recurring charges in the RGP is as follows:
1. Retrieves product, facility, and service details from the database.
2. Calculates the dates applicable to the rental generation period for
each recurring tariff. These dates are derived from the:
• Bill cycle, giving the effective start date.
• Tariff cycle, which defines the rental period and the
advance period.
• Pro-rating adjustment, which is used to bring the rental
charge into line with the bill cycle.
3. Builds the active time line for the rental generation period; this
line may not be continuous, for example, if the service was not
available for part of the period.
4. Generates rental events for each segment of the time line.
5. Stores information about the rental events for use by a
subsequent Rental Adjustment Process.
6. Writes the events into a specified directory, and instructs a
specified ENM process to rate them.
Bill Generation The BGP is a TRE server (trebgp) and is used to create the invoice detail
Process (BGP) from the charges incurred by a customer node (and by any child nodes for
which this node is specified as the invoicing node), and to calculate totals
and subtotals.
The processing flow through the BGP is as follows:
1. Retrieves all tariffs, subtotals, and derived attributes with context
'Normalised Event', 'Charge', 'Service', 'Customer Node', or
'Customer', and application environment of 'Rating' or 'Billing'.
2. Retrieves customer, service details and product information for
each customer hierarchy in the bill cycle.
3. Aggregates charges as required by the reporting level defined for
the node (invoice, statement, or none).
4. Applies eligible tariffs (normally discount tariffs), subtotals, and
derived attributes and lists depending on configuration.
5. Generates and saves invoice data for invoice generation.
The BGP is similar to the ERT in that it applies tariffs and supports
parallel tariffing, but there are two major differences:
Invoice The IGP is a TRE server (treigp) and creates the invoice image for each
Generation customer, ready for output using the General Output Process (GOP). It
Process (IGP) does this by retrieving invoice data from the database and substituting it
into an invoice template. Current Convergent Billing releases use
templates in ASCII text, but any suitable text based page description
language can be used.
The IGP is also used to generate dunning letters for customers who are
overdue with payment.
The processing flow through the IGP is as follows:
1. Retrieves billing or dunning letter templates from the database.
2. Uses macro substitution to insert data into the appropriate
template for each customer or customer node. Data insertion is
based on Convergent Billing expressions.
3. Evaluates any calls to nested templates, substituting printable
information for template code.
4. Checks the eligibility criteria.
5. Stores the compressed invoice or letter image in the database.
trerodb The read-only server trerodb provides database services that read data
from the database. The purpose of the read-only server is to separate
services that read database information from services that need to commit
data, so that the transaction load is shared across the TRE servers. In
addition, performance is enhanced as fewer servers are required for data
to be committed. For more information refer to Chapter 19, Transaction
Engine Servers and Services, of the System Administrators Guide.
General Output The final stage in billing operations is the production of the invoices or
Process (GOP) statements, either by printing or by generating files for electronic transfer
of accounting information. The procedures for doing this are explained
in Chapter 4, Batch Printing.
Working with Various schedule types allow the configuration of invoices and invoice
invoices images before committing them to customers' accounts. For more
information on billing schedule types, refer to Chapter 3, Billing.
Invoice Invoice templates play a significant part in billing; not only do they
control the appearance of the final bill displayed to the customer, they
templates
also play a significant role in processing the data that is displayed on
them.
For more information on the design and use of invoice templates, refer to
the System Administration Guide and the manual Invoice Design Tool.
This chapter describes the use of the rating engine to process incoming
events in order to generate normalised events and charges. It also
describes methods for checking that events have been correctly
normalised and rated, and for correcting events that contain errors.
Events for normalising and rating come from two sources:
• Files generated by switches or other event sources (including
Convergent Billing internal events).
• A TCP/IP socket connection with a remote host.
This chapter deals only with the normalising and rating of events in files.
For more information about processing events from remote hosts, known
as Real Time Rating, refer to the System Administration Guide. The
System Administration Guide also describes processes that make up the
rating engine, and issues such as defining additional rating processes and
optimising rating engine performance.
Event file names must be unique. A new file that has the same name as
a file already processed cannot be processed. Including the date and
time of creation in the file name ensures that it is unique.
Singl.eView Convergent
Billing instance
home directory
data
server
The ENM can process multiple event types. Among the ENM attributes
are the paths to the input, archive, and error directories (for more
information on creating and configuring ENM processes, refer to the
System Administration Guide).
Each ENM can be configured with a different set of paths; for example,
to create subdirectories for each type of event under
data/server/input to better manage event files. This done by
specifying the path to the correct input directory in each configured
ENM.
This section explains the running of a rating task, including the checks
required both before and after the task is run.
Note: The running of a rating task can consume substantial server
resources and requires frequent database access. Demand for server and
database resources may reduce performance, both for the rating process
itself, and for concurrent Convergent Billing processes. If possible, the
rating task should be run when other system demands are at a minimum.
Running the A rating task is run by defining a schedule or an Immediate Task of type
rating task 'Rate Files'. By using a schedule, a rating task can be run at specified
intervals; an Immediate Task can run a single rating task immediately
(refer to Chapter 6, Scheduling Server Tasks for more information on
scheduling).
A 'Rate Files' schedule takes these parameters:
ENM Process
The ENM process that has been configured to handle the type of event
being rated should be selected; if events of different types are being rated,
it is necessary for each one to have its own ENM and schedule.
File Pattern
Pattern of the files being rated; wild cards are permitted. For example,
evt.*.itad
should be entered to rate all files in the directory with names starting with
the characters evt then contain arbitrary text (perhaps a time stamp), and
have the extension .itad.
Checking the Information on the results of a 'Rate Files' task can be obtained from these
results sources:
• Task Status and Results text on the Task Detail form
• log.out file
• Location of the original files
• Presence of files in the error directory
• Viewing normalised events
• Viewing error events
• Data feed reconciliation report
• Other reports.
Some techniques for correcting errors revealed by these checks are
discussed in Correcting Rating Errors later in this chapter.
Error files
If the ENM detects any corrupted events, it puts them in a file in the error
directory. The file has the same name as the original event file, with a .e
extension. The data/server/error directory should also be checked
for any such corrupted event files.
Other reports
Other reports on rating may have been defined for specific Convergent
Billing installations, for example to detect abnormally high charges (for
more information on these reports, refer to the Reports Guide).
This section outlines techniques that can be used to correct any errors
occurring as a result of a rating task.
The techniques are summarised in the flow chart of Figure 2–2.
Rate File
Determine and
Rating task resolve
No
successful? processing
problems
Yes
Correct records
No
Bulk assign
error events and
reprocess
Normalised error Are events in
Yes Yes
events created? error needed?
Assign single
Reprocess error
events to a file to
events
be reprocessed
Revoke file, or
revoke and move Re-rate file No
No
file
Purge error
events
Make
appropriate Are the charge
tariff/product details correct?
changes
Yes
Revoke file to
remove an entire End
file
Is there a need to
remove successfully
Yes
rated events that have
not been billed?
Purge events to
remove selected End
events
End
Correcting Corrupted events are events that could not be parsed by the ENM, and are
corrupted written to the error directory.
events To deal with corrupted events:
1. Examine the events to determine the cause of the errors.
• Sporadic errors may indicate data transmission problems.
• More consistent and widespread errors may indicate a
problem with the switch or mediation software.
• Complete failure may indicate an incorrect Normalised
Event File type was selected for processing the file.
2. Take whatever measures are necessary to correct the corrupted
events in the error files.
• For smaller numbers, correct by hand.
• For larger numbers, a script might be more efficient.
• In severe cases, it may be necessary to refer the problem
back to the originator of the events.
3. When the corrupted events have been corrected, move the file
containing them to the input directory; it is suggested that the
error file be renamed to reflect its origin and current status.
4. Rate the corrected file, using an ENM of the correct
configuration for the type of event contained in the file.
Correcting error If an event was successfully parsed by the ENM, but an error was
events detected during normalisation or rating, the event is termed an error
event.
To deal with error events:
1. If the event is not required, purge by running a task of type 'Purge
Error Events' (for more information, refer to Rating Schedule
Types later in this chapter).
Correcting If normalised events and charges are created without apparent error, but
wrong charges the charges are consistently wrong:
1. Run a task of type 'Revoke File and move back'; this rolls back
all normalised events, error events, and charges that were
generated by the file. The original event file is re-created (except
for any corrupted events), and placed back in the input directory.
Note: If a task of type 'Revoke Event File' is run, the same
rollback process occurs and the event file is re-created; the
difference is that the file remains in the archive directory.
2. Correct the problem that caused generation of the wrong charges.
3. Run the rating task again on the re-created file.
Revoking a A file that has had one of its original normalised event errors reprocessed
rated and can be revoked in the:
reprocessed file • Reprocessed file, by running the task of schedule type 'Revoke
Event File' and then 'Revoke Reprocessed File'.
• Original file, by running the task of schedule type 'Revoke Event
File'.
Removing If certain events and charges are not needed (for example, because they
unwanted duplicate charges already processed), they can be removed by running a
events and task of schedule type:
charges • 'Revoke Event File', if all the events and charges originated in the
same file.
• 'Purge Events (non Error)' (using selection criteria to restrict the
purge to the unwanted events), if the unwanted events come from
a variety of sources.
Table 2–1 lists the schedule types that are available for rating tasks, with
a brief explanation of the function of each (for more information, refer to
Chapter 7, Schedule Types).
Name Function
Purge Error Events Allows use of selection criteria to purge
selected error events from the database.
Purge Events (non Allows use of selection criteria to purge
Error) selected normalised events and
associated charges from the database.
Purge Files Deletes files that are older than a given
date from a specified directory. This can
be used for housekeeping.
Rate Files Rates the selected files with a specified
ENM.
Re-rate Error Events Rerates error events that have been
assigned to a rerating file.
Name Function
Re-rate Error Events Allows use of selection criteria to rerate
(bulk) selected error events without assigning
them to a file.
Re-rate Events Allows use of selection criteria to rerate
(bulk) events. Any charges for the associated
events are discarded and re-calculated;
any error events in the file are also
rerated.
Re-rate File Rerates the specified file. Any
associated charges are discarded and
re-calculated; any error events in the file
are also rerated.
Reprocess Error Reprocesses error events whose
Events charges are dependent on the value of
rating subtotals.
Reprocess Events Reprocesses normalised events that
have associated rating subtotals.
Revoke Event File Rolls back all normalised events, error
events, and charges for the file, and re-
creates the original event file (except for
corrupted events). The re-created file
remains in the archive directory.
Revoke File and Rolls back all normalised events, error
move back events, and charges for the file, and re-
creates the original event file (except for
corrupted events). The re-created file is
moved to the input directory.
Revoke Rolls back all normalised events, error
Reprocessed File events, and charges for the file, and re-
creates the original rerating file.
Using selection Certain rating schedule types for purging and rerating allow entry of
criteria selection criteria to confine the operation of the resulting task to a subset
of events. The criteria available in each case are taken from those listed
in Table 2–2 (the actual criteria vary from case to case), and may be used
in combination to further refine selection criteria.
Criterion Description
ENM Process ENM process that rated the original
events.
File Process Start Date Dates between which the events were
File Process End Date processed in Convergent Billing.
Base Event File Name Name of the file in which the original
events were provided.
Event Start Date Period in which the events occurred.
Event End Date
Error Message Id Code for the error message attached
to the error events.
Event Source Source from which the events came
(switch or mediator).
Event Type Normalised event type associated with
the events.
File Type Normalised event file type associated
with the events.
File Record Start Nr Start and end positions of events in
File Record End Nr the file.
Event Where Clause SQL Where clause on the
NORMALISED_EVENT or NORMALISED_
EVENT_ERROR table that restricts the
choice of events.
File Where Clause SQL Where clause on the
NORMALISED_EVENT_FILE table that
restricts the choice of events.
Example
A certain tariff, applied to events of a particular type, has been identified
as incorrectly defined during a certain period of time. After correcting
the tariff, rerating all events that used the wrong tariff during that period
is required.
To achieve this, schedule a task of type 'Re-rate Events' using the
following parameters.
File Type
Normalised event file type appropriate to the events; alternatively, if the
ENM process which rated the events is known (provided just one ENM
process had been used to rate all the events in error), that ENM process
could be chosen.
Tariff
Tariff responsible for the incorrect charges generated for the events.
Event Start Date and Event End Date
Period during which the incorrect charges were generated.
This chapter describes the use of bill runs to process normalised events
and charges to produce invoice information and invoice images for
customers and customer nodes. In addition, this chapter describes
methods for checking that invoice data and images are correct, and for
making any corrections that may be required.
For more information on the separate components of the Billing Engine,
refer to Chapter 1, Introduction to Rating and Billing. The output of
invoice images to printers or other output devices using the General
Output Process (GOP) is described in Chapter 4, Batch Printing.
A bill run must be configured with a bill run type, which determines the
set of possible schedule types that can later be executed on this particular
bill run. For more information, refer to Bill Run Types later in this
chapter.
The ability to process multiple customer nodes allows the user to speed
up the bill run process, as well as control the quality of the process. For
example, the user can review initial invoices before the majority of
customer nodes have been processed; if the first invoices contain errors,
the bill run can be stopped. For more information, refer to Processing
operations later in this chapter.
Billing operators also have complete control over how many errors can
occur before the bill run is aborted. If errors do occur, it is only
necessary to revoke the billing operations on the customer nodes that
actually failed (for more information, refer to Correcting Billing Errors
later in this chapter).
In addition to producing invoices for customers, bill runs can also be used
to produce statements, which can be used for quality assurance purposes
or for customer information (for more information, refer to Setting up a
bill run later in this chapter).
Processing All schedule types used for performing billing operations for a set of
billing customers on a bill run have two common parameters that control how
operations the operations will be performed: Customer Batch Size and the Number of
Child Processes.
The graph in Figure 3–1 displays bill run processing with a batch size of
100 and number of child processes set to 3.
Rental Invoice
Invoice Image
h2 Generation Generation
tc s
ba er
er tom
om s
st cu
cu 00)
(1
bill_run_execute customer batch 1
(multi processing) (100) customers Rental Invoice to customer
Invoice Image
bill_run_cust Generation Generation
(single processing)
cu
(1 stom
00
) c er b
us at
to ch
m
er 3 Rental Invoice
s Invoice Image
Generation Generation
Bill run A bill run consists of a set of bill run operations and each bill run
operations operation is performed on a set of customers. The results of each
operation on each customer is recorded and therefore provides a complete
audit trail. Bill run operations can be performed on individual customers
or on a specified group of customers.
Bill run operations can not be deleted or directly updated. The
BILL_RUN_OPERATION reference type defines the operations that
perform and revoke operations on the bill run. The following table lists
the available billing operations:
Tracking the Statistical information for each operation is recorded, including the
status of a bill success or failure of the operation and its duration. For bill runs that
run process batches of customers, the statistical information is recorded for
each operation and summarised for the overall bill run. This statistical
information is displayed on the Auditing Information tab:
Server process Different server processes are responsible for implementing the different
TRE interfaces for each operation. All revoke operations are run by the
EPM trerodb process, except 'Unapply Invoices', which is run by the
trerwdb process. The primary server responsible for each operation is
shown in the following table:
Configuring the The billing configuration specified for each customer determines the set
customer node of functions executed to perform each of the operations configured for a
bill run. Three steps are necessary to configure customer nodes for a bill
runs:
1. The billing configuration must be defined.
The CUSTOMER_BILLING_CONFIGURATION reference type
defines the available billing configurations. There are three types
of billing configurations supplied with Convergent Billing:
'Default', 'High Volume Service', and 'Large Corporate
Hierarchy'.
2. The billing configuration and its operations must be mapped to
TRE functions.
The BillingConfiguration derived attribute table maps each
billing configuration and operation to the TRE function that is to
be called to invoke it. The user can add new configuration
mappings to the BillingConfiguration table. If nothing is
added to this table for the new billing configuration, the
operations defined in the 'Default' configuration will be used.
It is possible to add new TRE operation functions to be used in
the billing configuration. An EPM sample function,
biBillRunTemplateOperation&, is provided with
Convergent Billing as an example of how to write a function to
perform a new billing operation.
3. A billing configuration must be selected for the customer.
A configuration is selected using the Configuration field on the
Billing tab on Customer Detail form. A configuration can only
be selected for a root customer node, and must be null for child
nodes. Selecting the correct billing configuration ensures that the
bill run uses the appropriate functions. For example, for a
corporate customer with a large hierarchy, the corporate billing
configuration can be selected to ensure that the bill run is
efficiently executed using parallel processing.
This section describes how to perform a bill run, including the checks
that are required both before and after the task is run.
Note: Performing a bill run can consume substantial server resources and
requires frequent database access. Demand for server and database
resources may reduce performance, both for the billing processes and for
concurrent users. If possible, the bill run should be run when other
system demands are at a minimum.
Preparation Before scheduling a bill run, ensure that the event files containing events
for inclusion on bills have been successfully rated, and any corrupted or
normalisation error events have been corrected.
Supported task There are two available task types that are supported by the schedule
types types used to perform a bill run:
• Bill Run Operation and
• Bill Run Customer Operation.
Bill Run Operation performs a range of operations for all customers.
Bill Run Customer Operation performs a range of operations for
the specified customer.
Setting up a bill A bill run schedule uses one of the following supported task types:
run • Standard Bill Run, which generates an invoice that is sent out to
customers.
• Quality Assurance Bill Run, which generates a temporary bill
that is not sent to the customer and not paid; this can be used for
quality assurance purposes and quoting.
• Complete Bill Run, which completes a standard bill run, a QA
bill run, or a part thereof for the total bill run.
• Complete Bill Run for Customer, which completes a standard bill
run, a QA bill run, or a part thereof for a specific customer
hierarchy.
By using a schedule, a billing task can be run at specified intervals; a one-
off task runs a single rating task immediately (for more information, refer
to Chapter 6, Scheduling Server Tasks). Several billing schedules for
different customers or groups of customers can be set up.
When defining a bill run schedule, the following are some of the
methods that can be used to specify the date for a monthly schedule:
The RGP adds periods and calculates durations based on the day number
relative to the start of the month. It is therefore strongly recommended
that bill runs including rental generation operations are run on the same
basis, to avoid potentially inconsistent calculation of the day number.
This requires the selection of a Repeat type of 'Month Day' when
defining the bill cycle schedule.
Bill run types Each bill run is configured with a particular bill run type. Bill run types
help to determine the outcome of a bill run schedule and are defined
using the Bill Run Type Definition form.
The bill run type allows the user to specify the following for bill runs
using this specific type:
Bill run Important schedule parameters for new bill runs include:
schedule • Bill Run Type
parameters
Refer to Bill Run Types earlier in this chapter.
• From Operation and To Operation
These two codes specify the range of operations which are to be
executed for the bill run.
• Customer Batch Size, and Number of Child Processes
Refer to Processing Operations earlier in this chapter.
• Error Thresholds
The bill run will fail if the total number of customers with errors
equals or exceeds this parameter.
• Where Clause
Allows a refining of the selection of customers (to be processed)
by specifying a relevant SQL WHERE clause. This clause uses
fields from the CUSTOMER_NODE_TRE_V view. The order or
priority of the customers selected is by
CUSTOMER_NODE_TRE_V.BILLING_PRIORITY and then by
CUSTOMER_NODE_TRE_V BILLING_CONFIGURATION_CODE.
Modifying a bill Once a bill run is set up using the Schedule Definition form, any
run changes required in the schedule itself can be made by searching for and
changing the appropriate form.
A bill run schedule that was set up using the One-off Task Definition
form can be changed using the Task Details form, which is accessed
from the Bill Run Detail form. The task date and times can be changed
and the task re-submitted by clicking the Re-submit… button.
Once a bill run is actually executed, the details cannot be directly
modified. Additional operations can however be performed later (refer to
Performing an operation on a bill run later in this chapter).
Performing an Additional operations can be performed on existing bill runs for either a
operation on a batch of customers or for a single customer:
bill run • To perform an operation on a batch of customers, select the
Perform Operation… button from the Bill Run Detail form to
display the Perform Operation for Bill Run form.
• To perform an operation for a single customer, select the
Perform Operation… button from the Bill Runs for
Customer form to display the Perform Operation for
Customer form.
Both of these forms list the bill run operations that can be subsequently
performed. Selecting the appropriate operations from the list and
pressing the Submit button creates a one-off task that prompts for any
additional details before performing the requested operations.
Stopping a bill A bill run that is in progress can be stopped by entering the appropriate
run expression, including the function biBillRunStop&(), in the
Expression Test form. To stop a bill run:
1. Select the Server Tasks ➩ Bill Runs option. The Bill Run
Search form is displayed.
2. Enter the appropriate search criteria and click the Search…
button. A list of matching bill runs is displayed in the Bill Run
List form.
3. Select the appropriate bill run and click the Details… button.
The Bill Run Details for Bill Run form is displayed.
4. Note the bill run ID, last modified date, and the task ID (this
information is used to stop the bill run).
5. Select the Maintenance ➩ Data Definition ➩ Expression
Test option. The Expression Test form is displayed.
6. Enter biBillRunStop&() in the Function Name field.
7. Enter the appropriate expression to stop the bill run in the
Expression field. For example:
{
var lBillRunId& := 5673;
var lLastModified~ := to_date('13/11/2001
14:04:51','dd/mm/yyyy hh:nn:ss');
var lTaskId& := 12543;
var lReason$ := 'Killed by operator';
return biBillRunStop&(lBillRunId&,
lLastModified~,
lTaskId&,
lReason$);
}
8. Click the Evaluate button. The result of the expression is
displayed in the Results field.
When all processes have stopped, all operations with a status of 'Running'
are changed to a status of 'Error' and the bill run is updated.
For more information on using the Expression Test form, refer to the
manual Variables, Expressions, and Functions.
Revoking a A bill run operation or task, which has already been executed in a
billing task schedule, can be revoked using the schedule type 'Revoke Bill Run'. For
information about this schedule type, refer to Chapter 7, Schedule Types.
Additionally, depending on the bill run type configuration, the Perform
Operations window can be used to revoke individual operations. For
more information, refer to Performing an operation on a bill run earlier
in this chapter.
Checking the Information on the results of a bill run is displayed on the Bill Run Detail
results form for that particular bill run. The form summarises the results of the
bill run, as well as displaying errors for both the bill run (if it failed) or
any individual operations on the bill run that failed.
Results for an individual customer node can be viewed by clicking the
Bill Run Details… button (Billing tab) on the Customer Detail form.
Techniques for correcting bill run errors are provided in Correcting
Billing Errors later in this chapter.
This section describes the techniques used to correct any errors that may
arise as the result of bill runs.
When creating bill runs, the number of errors permitted before the bill
run is stopped can be specified on the Schedule Definition or the One-
off Task Definition form in the Error Threshold parameter. If a bill run
results in the specified amount of errors, the errors can be fixed, the
particular operation can be revoked if necessary, and the bill run
performed again with only the outstanding operations performed. If a
particular operation failed the first time, the operation is automatically
revoked and performed again.
Once errors are generated, or a bill run schedule has failed, the following
must be done:
1. View the Bill Run Detail form for the particular bill run and
determine which operation or operations failed. Failed
customers can be investigated using the Failed Customers…
button.
2. If no operations failed, but the bill run results are in error,
determine at which point in the operations the error occurred.
3. Revoke any operations that succeeded that were in error.
4. Correct the problem.
5. Complete the bill run.
The flow chart in Figure 3–2 summarises the process of correcting any
errors that are generated by executing a schedule of type 'Standard Bill
Run'. This type of bill run performs, by default, all standard billing
operations from 'Rental adjustment event generation' to 'Print Invoices'.
The flow chart can also be used for any subset of this range of operations.
Although it is possible to use individual tasks and schedules to correct
errors (revoke and re-do operations), it is highly recommended that the
user use the bill run process for this task. An individual bill run ties
separate billing operations together in one process and ensures that the
operations are completed in the correct order with the correct
prerequisites.
Run a Standard
Bill Run schedule
No Check schedule
parameters and correct
if necessary
End
Rated
charges
Correct tariffs and
Billed charges Reason for incorrect incorrect
re-rate appropriate
incorrect details
events
Table 3–1 lists the schedule types that are available for billing tasks, for
an entire bill run, with a brief explanation of each.
Name Function
Apply & Allocate Applies invoices to the appropriate
Invoices customer accounts for a specific bill run
and allocates credit payments and
adjustments.
Apply Invoices Applies invoices to the appropriate
customer accounts for a specific bill run.
Complete Bill Run Completes a standard bill run, QA run, or
part thereof that has previously been
interrupted, failed, or revoked.
Generate Invoice Generates invoice images for a specific
Images bill run.
Print Invoices Prints invoices for a specific bill run.
Revoke Bill Run Revokes a standard bill run, QA run, or
part thereof.
Revoke Invoice Rolls back invoice images in the database.
Images
Revoke Invoice Print Revokes the ‘Printed’ flag, so that the
Settings batch can be printed again.
Revoke Invoices Rolls back all invoice data and images
associated with the specified billing task.
Revoke Invoices Revokes invoices and images, but keeps
(keep Rentals) rental events, for a specific bill run.
Revoke Rental Revokes rental events.
Events
Un-apply & De- Un-applies invoices and de-allocates any
allocate Invoices credit payment and adjustment amounts.
Un-apply Invoices Un-applies invoices.
Table 3–2 lists the schedule types that are available for billing tasks, for
individual customers, with a brief explanation of each.
Name Function
Apply & Allocate Applies invoices for a specific customer
Invoices for and allocates credit payments and
Customer adjustments.
Apply Invoices for Applies invoices for a specific customer.
Customer
Complete Bill Run Completes a standard bill run, QA run, or
for Customer part thereof that has previously been
interrupted, failed, or revoked.
Generate Invoice Generates invoice images for a specific
Images for customer.
Customer
Print Invoices for Prints an invoice for a specific customer.
Customer
Revoke Bill Run for Revokes a bill run for a specific customer.
Customer
Revoke Invoice Revokes invoice images for a specific
Images for customer.
Customer
Revoke Invoice Print Clears the print settings for a specific
Settings for customer.
Customer
Revoke Invoices Revokes invoices and images, but keeps
(keep Rentals) for rental events, for a specific customer.
Customer
Revoke Invoices for Revokes invoice images, invoice details,
Customer and rental events for a specific customer.
Revoke Rental Revokes rental events for a specific
Events for Customer customer.
Unapply & De- Un-applies invoices and de-allocates any
allocate Invoices for credit payment and adjustment amount for
Customer a specific customer.
Unapply Invoices for Un-applies invoices for a specific
Customer customer.
Table 3–3 lists the schedule types that are available for related billing
tasks with a brief explanation of each.
Name Function
Apply Transactions Applies future dated payments and
adjustments.
Billing Suppress Suppresses invoice generation for
customer hierarchies, causing these
hierarchies to be skipped by schedules
running types such as 'Standard Bill Run'.
Billing Unsuppress Halts suppression of invoice generation.
Dunning Letter Allows creation of dunning letters for
Generation customers with overdue accounts. The
letters are printed using the GOP.
General Bulk Output Runs the General Bulk Output Process for
by Task a specific task.
General Bulk Output Allows invoice or letter images to output to
Process a printer or other output device. Refer to
Chapter 4, Batch Printing.
Invoice Reprint Generates new invoice images for
Generation invoices that have been flagged for
reprinting.
Invoice View Image Used internally by Convergent Billing for
viewing invoice images on request.
Quality Assurance Creates and executes a QA bill run for a
Bill Run set of customers associated with a given
schedule.
Revoke Rental Revokes rental events.
Events
Standard Bill Run Creates and executes a standard bill run.
Loans Investments
This chapter describes the General Output Process (GOP) and how it
performs the task of printing bulk information, such as dunning letters or
invoices, using tasks on the scheduler or information from previous
billing operations.
It also describes dunning letters (with its configuration) and how to set up
a printing configuration. Printing configuration is based on the following
elements:
Scheduler
• Output Device, which defines the commands used by the server
to direct the output to the required printer or other device.
• Output Method Type, which defines the location in the database
of the query view and the document image; it also specifies any
table update required (for example, to flag a dunning letter as
having been printed).
• Output Method, which consists of an Output Method Type and
one or more Output Devices. If the data is split over two or more
output devices; it can also select output order (for example,
dunning letter output might be ordered by state or province, or by
postal code).
Bill Run
• Configuration item type INVOICE_PRINT.
Knowledge of UNIX, SQL, and the Convergent Billing database structure
is required to carry out some of the tasks described in this chapter.
Access to a server terminal to issue UNIX commands may also be
needed.
The following schedule types can be used for the output of invoices or
dunning letters using a schedule or an immediate task:
• General Bulk Output Process
Generates bulk output for a previous schedule (bill run, dunning
generation, or invoice re-print).
• General Bulk Output By Task
Runs the General Bulk Output Process by task ID.
• Dunning Letter Generation
Generates dunning letters for particular customers. Dunning
letters are used to remind customers about unpaid accounts.
By using a schedule, a task can be run at specified intervals; an
immediate task can run a single task immediately (for more information,
refer to Chapter 6, Scheduling Server Tasks).
GOP schedule The GOP requires these schedule parameters for the schedule types
configuration 'General Bulk Output Process' and 'General Bulk Output by Task':
parameters • Schedule to output (General Bulk Output Process)
Schedule producing the images for processing. The images
generated by the most recent task with 'Success' status are used
for input to the GOP.
• Task (General Bulk Output by Task)
Task ID producing the images for output.
• Output Method
Defines the processing that the images receive; the components
and configuration of the output method are described later in this
chapter.
• Directory for temporary data
Must exist when the task is run.
The following schedule parameters are required for the schedule type
'Dunning Letter Generation':
• Dunning Template
Select to generate the dunning letter (for more information, refer
to the System Administration Guide).
GOP schedule The GOP retrieves all the document images stored in the database by the
processing specified schedule's most recent task, then outputs them as instructed by
the output method. Images can be divided into as many batches as
necessary and each batch separately ordered and sent to a different output
device. The general flow of processing in the GOP is as follows:
1. The schedule ID parameter is used to identify the most recently
completed task for that schedule; only data produced during the
execution of that task is considered for output.
2. The output method type defined in the output method is used to
identify the database tables and views used to retrieve the data
required, including the document images; it can also define an
update performed on the database when an image has been
processed (for example, to flag that a dunning letter has been
printed).
3. The output method is associated with a table of output criteria.
This table may contain zero or more rows, and the criteria
retrieved include:
• The output device, which defines where the selected
document images are sent.
• An SQL WHERE clause, used to select which of the
retrieved images use this output device.
• An SQL ORDER BY clause, used to specify the output
ordering.
4. For each row in the criteria table, the GOP outputs the selected
data to the specified output device, using the appropriate
selection and sorting criteria.
5. Any images that remain after all the rows in the criteria table
have been processed are then sent to a default output device,
using a default ordering.
If the criteria table is empty (that is, if the output is treated as a single
batch), then the default output method and ordering apply to the whole
batch.
Bill run The execution of the 'Print Invoices' operation requires a configuration
configuration item of type INVOICE_PRINT. This configuration item must be created
parameters prior to printing invoices. By default, the operation will look for the first
item in the list of configuration items of type INVOICE_PRINT.
For more information on creating configuration items, refer to the System
Administration Guide.
The following parameters are required for setting up the
INVOICE_PRINT item:
OUTPUT_METHOD
Defines the processing that the images receive; the components and
configuration, of the output method, are described later in this chapter.
TMP_DIR
Directory for holding temporary files used by the GOP.
ERROR_THRESHOLD
Maximum number of non-fatal errors that can occur before the GOP
terminates.
MAX_CHILD_PROCESSES
Maximum number of child processes for the GOP to use for the parallel
output of images. If this parameter is greater than '1', the GOP is run in
multi-process mode. Setting a maximum number of child processes
controls the number of simultaneous GOP processes and therefore system
performance. If parallel processing is used, the order in which invoice
images are output may not match the order in which they were input.
This parameter is ignored for a batch if the selected output device is
configured to concatenate images.
Setting up a bill Bill runs are set up using the Scheduler. Several billing schedules for
run to print different customers or groups of customers can be set up.
invoices or A new bill run schedule (that is, not completing an earlier run) uses one
statements of the following supported schedule types:
• Standard Bill Run, which generates an invoice that is sent out to
customers.
Note: The Customer Batch Size (a bill run parameter) controls
the number of customers that are passed to each bill run operation
in turn. Setting this number will determine how many customer
invoices are produced at a time. For more information, refer to
Chapter 3, Billing.
• Quality Assurance Bill Run, which generates a temporary bill
that is not sent to the customer and not paid; this can be used for
quality assurance purposes and quoting. This bill run does not
execute the 'Print Invoices' operation by default.
To ensure that the schedule actually prints invoices, the 'Print Invoices'
operation must be selected in the schedule parameters.
For more information on setting up schedules, refer to Chapter 6,
Scheduling Server Tasks.
Printing In order to print bulk invoices from a bill run that has already been
invoices on a completed, the following steps must be performed:
previously- 1. Select the Server Tasks ➩ Bill Runs option.
completed bill
run 2. Use the Bill Run Search form to select the correct bill run.
3. Once the Bill Run Detail form is open, click the Perform
Operation… button. The resulting window displays details of
the last operation and a list of available operations that can be
executed on the bill run.
4. Select 'Print Invoices' from the list of available operations.
5. Click the Submit button. The One-off Task form is displayed
with the appropriate task already filled out for that particular bill
run.
6. Ensure that the Customer Batch Size parameter is
appropriately set. This parameter determines the number of
customers that are processed at a time.
Single invoice In order to print invoices for a single customer (from a bill run that is
printing complete), the following steps must be performed:
1. Open the Customer Detail form for the specified customer.
2. Click the Bill Run Details… button on the Billing tab.
3. Select the correct bill run, and click the Perform Operation…
button.
4. Select 'Print Invoices' from the list of available operations.
5. Click the Submit button. The One-off Task form is displayed
with the appropriate task filled out for that particular bill run.
This section describes the steps required to prepare for printing and
checking the output.
Preparation for The following conditions should be met before billing output can begin
printing (each site may have additional requirements):
• The number of documents awaiting output is established. This
information can be obtained from the Results tab of the Task
Detail form for the task that generated the document images.
• Required reports are produced and analysed, and any problems
rectified.
• Any required legal or financial procedures are performed.
• Printers are configured, online, and containing sufficient and
correctly loaded stationery.
• Other forms of output device, such as disk or tape, are online,
ready, and contain sufficient storage for data volume. Factors
that affect storage include:
− Number of documents
− Average number of pages in each
− File format used
− Presence of bitmaps or other large elements in the
document
− Average level of compression achieved on files of this
type.
• Special arrangements made for subsequent processing of
documents (folding, putting in envelopes, posting, and so on).
An unsuccessful billing output run can be expensive; it can cause delays
in the billing process and subsequent collection of payments from
customers.
Checking the The following quality checks should be made before printed dunning
output letters can be accepted (each site may have extra requirements):
• Have all the expected documents been printed? ]
• Is the output quality acceptable? Are the documents clean,
legible, and is the print properly aligned on the paper?
• Is the static information shown on the documents, such as the
company logo and address, correct?
Output method The output method type defines the source of the data that is printed. It
type can also update a database table, for example to set a flag showing that an
invoice has been printed. All types can be configured with an image type
of .spf, .tex, .txt, or .xml. Each of these (excluding .spf) can also
be compressed using the .gz or the .Z format.
The options provided with Convergent Billing are shown in Table 4–1
Name Description
Print Print invoices from an invoice run.
invoices Updates the INVOICE table.
Print Print dunning or promotional letters.
dunning Updates the
letters CUSTOMER_NODE_CORRESPOND table.
Reprint Reprint flagged invoices. Updates the
invoices CUSTOMER_NODE_CORRESPOND table.
Output device The output device defines the UNIX command used to send the output to
the required device. A knowledge of UNIX, the Convergent Billing
environment, and device configuration are required in order to work with
output devices.
The output device includes the following information:
• The Output Image Type, which defines the format of the image
stored in the database.
• A Start Command, which is an optional UNIX command that is
executed before a batch of images is output. The Start command
can be used, for example, to instruct the printer to select the
correct stationery.
• An optional Stop Command, which is an optional UNIX
command that is executed once each batch is completed.
The Stop command can be used, for example, to advise an
operator that the batch print has finished. The Stop command can
also be used to track the batch number, or where in the entire run
a particular batch happens to be.
• A Run Command. The two options Pipe images to run
command? and Concatenate Images? are processed in
conjunction with this option. The possible outcomes are
specified in Table 4–2.
Scripts for Two shell scripts are available for printing control:
output • print_inv <texfile> <output_file>
This script takes an uncompressed TEX file containing a
document and generates a PostScript output file. If the TEX input
file is specified as - the script reads TEX source from the
standard input. If the output file is specified as - the script sends
the PostScript to the standard output. If an output filename is not
given, it is generated from the TEX file name by replacing .tex
with .ps.
• smb_lpr [-P <printer>] <file1> <file2> ...
This script sends files to a printer using the smb protocol. If the
printer is not named, the environment variable $PRINTER is
used. If this variable is not set, the script exits with a failure. If
no files are named on the command line, the standard input is
copied to the printer.
The script uses the two environment variables SMBHOST and
SMBCLIENT to name the printer host and path to the smbclient
executable respectively. Default values are supplied for each.
The GNU Samba suite must be installed on the server for this
command to work.
Note: Samba may not be available on site.
The Run Command is executed after each image has been output to the
default file ($file). The image is decompressed by zcat, converted to
Postscript by print_inv and printed using the smb protocol on the
network printer named local_printer.
The text output of all images sent to the GOP is concatenated in the
default output file ($file), which is then copied as file concat_file;
this might be useful if a single text file is transmitted to another location.
Note: The only Convergent Billing output file format that can be
concatenated is .txt.
Images are piped to the cat command, which is redirected to the null
device. This may be used if all images are not being printed out.
Output method An output method is an object that brings together the various elements
definition required for printing. It allows selection of the order in which the output
is printed; for example, invoices printed by state and by postal code can
be chosen for ease of posting. Different output devices for different sets
of invoices can be selected; for example, a different printer for each state
or region can be used.
The output method is a GOP parameter that needs defining when
scheduling printing tasks.
Output method This example output method shows how the fields can be used:
example
2nd tier:
Configuration Configuration/
Business Logic
TRE
Transaction
Engine
Server
Services
Processes
3rd tier:
Core Engine
ORACLE
Database
4th tier:
Data Repository
TRE functions are used when writing functions and expressions (for more
information, refer to the System Administration Guide).
Most server tasks in Convergent Billing are run automatically, under the
control of the Scheduled Task Dispatcher (STD) process and the Task
Launch and Monitor (TLM) process. The client workstation's scheduling
features are used to control these processes, collectively referred to as the
Scheduler.
The Scheduler is used to set up tasks that run regularly at pre-defined
intervals, or tasks that run only once, either immediately or at a date and
time chosen. Once set up, these tasks run automatically at the chosen
time without further intervention, and then notify the user on completion.
When setting up a schedule, an instance of Convergent Billing can be
specified to run the schedule. If an instance is not specified, the schedule
is run on the default instance defined for the Scheduler. (The default
instance is defined in the STD Configuration Item.)
This chapter describes how to define and modify schedules, and to
monitor the tasks created by the schedules.
Scheduling Overview
A schedule specifies:
• When a task is run for the first time.
• The instance on which the task is run.
• How often the task should be repeated, and at what intervals.
• What program the task runs to perform its function, and what
parameters are passed to it.
When a schedule is defined and submitted, Convergent Billing creates
one or more tasks that are queued until the date and time specified, when
they run automatically. On completion of each task, a message is sent so
the user can verify that the task executed successfully.
Figure 6–1 shows a schedule and its tasks in diagrammatic form.
Time
Schedule Now
Effective date
Effective date
Effective date
Last date
Terms used in The following terms are used when defining a schedule:
scheduling Schedule Name
Each schedule has its own schedule name.
Description
A schedule may optionally be given a textual description.
Schedule Type
Every schedule is assigned a schedule type which defines the type of task
to create, the program that the schedule tasks runs, what parameters are
required, and similar information (for more information, refer to Chapter
7, Schedule Types).
Instance Name
A schedule can optionally be given an instance name. By specifying an
instance name, tasks associated with the schedule can be run on a specific
instance of Convergent Billing. If an instance is not specified, the task is
run on the default instance defined for the Scheduler. The default
instance is defined in the STD Configuration Item. The Instance Name
field will be enabled only if the reference type ATA_INSTANCE
contains more than 2 rows.
Email Address
A schedule may optionally be given an email address that is notified
when tasks associated with the schedule are completed.
Schedule Status
A schedule can be either 'Active' or 'Complete'. An active schedule
creates tasks as required; a complete schedule is effectively turned off,
and cannot create tasks.
Preschedule Count
Defines the number of advance tasks that the scheduler maintains; for
example, if the schedule calls for a task at monthly intervals with a pre-
schedule count of five, then five tasks are created when the schedule is
submitted. A new task is generated whenever the earliest one completes,
keeping the number of advance tasks at five, until the last date is reached.
First Date
Start date and time for the first task; if this is earlier than the date and
time on which the schedule is submitted, then the first task runs
immediately.
Last Date
Last date for which a task is created; the schedule's status then changes to
'Complete'. If the last date is not defined, the schedule continues
indefinitely.
Effective Date
Effective date is the date and time used by some tasks to retrieve
information from the database; for example, a billing task may be
required to run in early September, but using the data for August. In this
case, the effective date would be set to 31st August.
Repeat Units
Multiplier to use in conjunction with the repeat type; for example, a
repeat type of Month Day and a repeat unit of 2 means that tasks are
scheduled every two months.
Repeat Type
Repeat interval for creating future tasks, such as day, week, or month;
this is used in conjunction with the defined repeat unit (n in the following
examples). The repeat types available are:
• Second – every n seconds.
• Minute – every n minutes.
• Hour – every n hours.
• Day – every nth day at the start time.
• Week – every nth week.
• Month Day – every nth month, on the same day of the month as
the start date.
• Month End Day – every nth month, using the same number of
days from the end of the month as the start date.
• Month Start – every nth month, on the same day of the same
week as the start date.
• Month End – every nth month, on the same day of the same week
as the start date, calculated back from the end of the month.
Task Start Date
Date and time at which a task is started. For the first task in the schedule,
this is the same as the first date (unless the first date has already passed
when the schedule is submitted, when the task starts immediately);
thereafter, the first date and the repeat factors control the start date.
Task Effective Date
Date and time that may be used by the task to retrieve data from the
database, depending on the processing required by the task. For the first
task in the schedule, this is the same as the schedule's effective date;
thereafter, the task effective date is controlled by the schedule's effective
date and the repeat factors.
The following sections describe how to work with schedules. The topics
covered are:
• Submitting a schedule
• Re-submitting a task
• Changing the frequency of a schedule
• Deleting a schedule.
The schedules required may have been defined when Convergent Billing
was installed. Before a new schedule is defined, check whether there is
an existing schedule or one that can be modified to fit requirements.
Re-submitting a A task with a 'Completed' status can be resubmitted by clicking the Re-
task submit button on the Task Detail form. A pop-up message asks for
confirmation.
This action sets the task status back to 'Pending' without changing the
start date. When the STD receives the re-submitted task, it finds that the
start date is in the past, and therefore schedules the new task immediately.
A task for execution at some future time can also be resubmitted by using
the Update button on the toolbar to modify the information on the
Details tab, including the Start Date and Effective Date entries.
Changing the Changing frequency can cause complications if a large number of tasks
frequency of a are pending for the old frequency. To minimise the number of pending
schedule tasks and prevent complications, use a preschedule count of 1 when
defining schedules.
Deleting a A schedule that is no longer required can be deleted, but any pending
schedule tasks will also be deleted. All tasks must be completed before deleting
the schedule.
A schedule task uses the schedule type to determine what program to run
and how to run it. The schedule type also defines the parameters that the
user needs to provide when a schedule of this type is defined.
This chapter describes the schedule types provided with the Convergent
Billing base installation, including the server command that the task
executes, and any parameters required. It also provides information on
defining new schedule types.
To define a schedule type, it is necessary to have:
• Appropriate access privileges in Convergent Billing.
• A good understanding of the working of the program that the
schedule type runs, including:
− Any required command line options.
− Any parameters the user needs to pass.
• An understanding of reference types, attribute types, and entity
validation, required for the definition of user parameters (for
more information, refer to the Customer Care Configuration
Guide).
Note: The server commands are included for reference information only.
For more information about the server command parameters, refer to the
manual System Administration Guide.
Table 7–1 lists the schedule types supplied with the Convergent Billing
base installation; report schedule types are not included (for more
information on these, refer to the Reports Guide).
Apply & Allocate This schedule type applies invoices for a specific bill run and allocates
Invoices any credit payments and adjustments.
Server command
bill_run_wrapper –c 50 60 40
Apply & Allocate This schedule type applies invoices for a specific customer on a bill run,
Invoices for and allocates any credit payments and adjustments.
Customer
Server command
bill_run_cust_wrapper -c 50 60
Apply Invoices This schedule type applies invoices for the last bill run on the specified
bill cycle schedule.
Server command
bill_run_wrapper –c 50 50 40
Apply Invoices This schedule type applies invoices for a specific customer on a bill run;
for Customer invoice allocation is not performed.
Server command
bill_run_cust_wrapper –c 50 50
Apply This schedule type applies future-dated payments and adjustments, and is
Transactions able to re-calculate multi-currency transactions using current exchange
rates.
Server command
apply_transactions
Notes
If multi-currency transactions are newly calculated and re-inserted, the
invoice and RT allocations are performed automatically. Multi-currency
payment transactions having associated payment items are NOT re-
inserted under these conditions.
Archive This schedule type archives selected tables and other data.
Server command
client_archive
Billing Suppress This schedule type suppresses invoice generation for the specified
customer hierarchies, causing these hierarchies to be skipped by
schedules using types such as 'Standard Bill Run', 'Quality Assurance
Bill Run', and 'Complete Bill Run'.
Server command
billing_suppress
Notes
Only one of the two parameters, 'Suppress Until Issue Date' or 'Suppress
Bill Cycle Count', should be specified, in order to determine when
invoice generation should recommence. If both parameters are entered
and they do not match, the date parameter will be taken as default.
Billing This schedule type removes any 'suppressions' of invoice generation for
Unsuppress the specified customer hierarchies.
Server command
billing_suppress -r -v
Complete Bill This schedule type completes a standard bill run, quality assurance run,
Run or part thereof that has previously been interrupted, failed, or revoked.
Server command
bill_run_execute -c
Complete Bill This schedule type completes a standard bill run, quality assurance run,
Run for or part thereof that has previously been interrupted, failed, or revoked for
Customer a specific customer on a bill run.
Server command
bill_run_cust -c
Contract This schedule type cancels expired contracts and/or generates expiry
Cancel/Notify warnings.
Server command
update_contracts
Notes
• All the parameters, other than -d <debugLevel>, are mandatory;
however, they are allowed to be empty.
• At least one of the Cancel Expired Contracts?, Re-negotiate
Notification Function, or Expiry Notification Function
parameters must be specified.
• The Cancellation Notification Function parameter can only be
passed if Cancel Expired Contracts? is set to 'Yes'.
• The functions specified by the Cancellation Notification
Function parameter, Renegotiate Notification Function
parameter, and Expiry Notification Function parameter must be
remote functions with an application environment of 'Any', a
context of 'Any', and take the following parameters:
– TaskQueueId&
– EffectiveDate~
– ContractId&.
• The default remote functions to generate cancellation
notifications, re-negotiation reminder, and expiry warnings are
biContractCancelNotice&(), biContractReneg&(), and
biContractExpiry&().
• All date checks and updates are done according to the effective
date passed to the script. The exception is setting of the reminder
dates and determining if a re-reminder is necessary, these are
done using the current date and time. When updating a contract
to cancel, the status is set to 'Cancelled' and the
EFFECTIVE_START_DATE is set to the effective date and time
passed.
Create Partitions This schedule type creates a set of partitions in the CHARGE,
NORMALISED_EVENT, or SUBTOTAL_RATING VALUE table.
Server command
create_partitions
Notes
For the partitions to be created, or recreated in the database, dbsync
must be executed from the command line. If there is a significant
quantity of data already in <base_table>, then this data should be
exported and <base_table> truncated prior to running dbsync. The
<base table> can then be imported into the newly created set of
partitions.
Sizing and tablespace information for these partitions and their associated
indexes is specified in $ATA_DATA_SERVER_CONFIG/ata_create.db.
This script is mainly designed for use on new database installations,
where partitioning is being used for the first time, or installations where it
has been decided to make major changes in the partitioning strategy (for
example, changing the duration and quantity of the number of partitions
in a table). For regular partition maintenance operations (dropping,
adding, and archiving partitions), the update_partitions script
should be used.
The last partition is deliberately not given an end date of the end of time
to allow for the efficient rotation of partitions. The end date of the last
partition should be some time in the future to minimise the risk of
receiving events for which there is no valid partition.
DIL Validation This schedule type validates Data Interface Language (DIL) definitions.
The script is run internally by Convergent Billing when saving a modified
DIL definition, and should not be run at any other time.
Server command
dil
Dunning Letter This schedule type generates letters for customers with overdue invoice
Generation payments, but does not print the letters. Printing should be done by a
schedule of the 'General Bulk Output Process' or 'General Bulk Output by
Task' type.
Server command
dunning
Server command
ecp_cmd
Explain BGP This schedule type generates an explanation of the customer hierarchy
Hierarchy passes the BGP performs on the specified customer.
Passes
Server command
bgp_explain
Full Database This schedule type runs the full database validation process.
Validation
Server command
dvp
General Bulk This schedule type runs the General Bulk Output Process for a given task.
Output By Task For example, this type can be used to print invoice images marked for
reprinting or letters generated by the dunning process.
Server command
gop -q
General Bulk This schedule type generates output for a given previous schedule (bill
Output Process run, dunning generation, or invoice reprint).
Server command
gop
Generate This schedule type generates invoice images for a specific bill run.
Invoice Images
Server command
bill_run_wrapper –c 40 40 40
Generate This schedule type generates invoice images for a specific customer on a
Invoice Images bill run.
for Customer
Server command
bill_run_cust_wrapper –c 40 40
Invoice This schedule type generates the invoice image for a single invoice.
Generate Image
Server command
generate_image
Invoice Print This schedule type prints or reprints the image of a single invoice.
Image
Server command
print_image
Invoice Reprint This schedule type generates the data required to reprint a set of invoices,
Generation using the original output method. The GOP must be run on a separate
schedule to reprint the invoices.
Server command
dunning -r
Invoice View This schedule type generates the viewing image file in any supported
Image format for the source file specified by the Invoice ID. This schedule type
is only used internally by Convergent Billing.
Server command
ivp
Partition This schedule type runs the Table Partition Maintenance schedule.
Maintenance
Server command
update_partitions
Caveats
Oracle's import command can output numerous warnings during an
import of a partition. All warnings about entities already existing can be
ignored.
The update_partitions script uses the exit code from the import
command to check for success or failure; therefore, it is possible that data
may not have been imported successfully, but the update_partitions
script continues processing. For this reason, it is recommended that
archives of data be performed prior to changes that require the data to be
exported and re-imported.
Print Invoices This schedule type prints invoices for a specific bill run.
Server command
bill_run_wrapper –c 70 70 40
Print Invoices This schedule type prints invoices for a specific customer on the bill run.
for Customer
Server command
bill_run_cust_wrapper –c 70 70
Purge Error This schedule type purges normalisation error events, using selection
Events criteria.
Server command
reprocess_bulk_assign –p
Purge Events This schedule type purges normalised events using selection criteria.
(non Error)
Server command
reprocess_bulk_assign –n –p
Purge Files This schedule type deletes specified files older than the task's effective
date from a given directory.
Server command
purge_files
Quality This schedule type creates and executes a quality assurance bill run for a
Assurance Bill set of customers associated with a given schedule.
Run
Server command
bill_run_execute -q
Rate Files This schedule type rates files in an ENM's data directory that are older
than the task effective date.
Server command
rate_files
Re-analyze This schedule type recomputes optimiser statistics for all tables.
tables
Server command
dbanalyze
Re-rate Error This schedule type re-rates a set of error events that have been assigned
Events to a file for re-rating.
Server command
reprocess_file_events -r
Re-rate Error This schedule type re-rates normalisation error events, using selection
Events (bulk) criteria.
Server command
reprocess_bulk_assign
Re-rate Events This schedule type re-rates normalised events and normalised error
(bulk) events, using selection criteria. All charges are regenerated.
Server command
reprocess_bulk_assign –n
Re-rate File This schedule type re-rates the set of events from a normalised event file
that were successfully rated.
Server command
reprocess_file_events –n
Reconfigure This schedule type regenerates triggers based on the specification of all
Auditing AUDIT_TABLE configuration items.
Server command
dbtrigger
Report This schedule type examines the current entity validation configuration
Reference Type and generates derived information about it into a number of other tables.
(RRRT) This derived information is used to display summary of change details
about CSR entities, and by certain reports such as the Call Detail Display
Report (CDDR).
This schedule type should be run as a one-off task whenever changes are
made to the entity validation configuration.
Server command
run_sqr_script rrrt
Reprocess Error This schedule type reprocesses error events associated with real-time
Events rating feeds that use rating subtotals.
Server command
error_event_reprocess
Reprocess This schedule type re-rates normalised events that have rating subtotals
Event associated with them.
Server command
event_reprocess
Revoke Bill Run This schedule type revokes a standard bill run, a quality assurance run, or
a part thereof. The Revoke Bill Run schedule type allows the operator to
specify which operations within the specified bill run need to be revoked.
For example, the From Operation parameter could be set to 'Rental
Adjustment' and the To Operation parameter could be set to 'Apply
Invoices'. This would mean that the operations 'Rental event generation
(RGP)', 'Invoice/Statement generation (BGP)', and 'Invoice/Statement
Image generation (IGP)' would also be revoked.
Server command
bill_run_execute -r
Notes
The bill run is revoked if the schedule associated with the Bill Run ID is
the same as the customer’s schedule and the customers have:
Revoke Bill Run This schedule type revokes a standard bill run, a quality assurance run, or
for Customer a part thereof, for a specific customer on a bill run. The Revoke Bill Run
for Customer schedule type allows the operator to specify a specific
customer, in addition to the operations within the specified bill run need
to be revoked.
For example, the From Operation parameter could be set to 'Rental
Adjustment' and the To Operation parameter could be set to 'Apply
Invoices'. This would mean that the operations 'Rental event generation
(RGP)', 'Invoice/Statement generation (BGP)', and 'Invoice/Statement
Image generation (IGP)' would also be revoked.
Server command
bill_run_cust -r
Revoke Event This schedule type revokes all normalised events, normalised error
File events, and charges associated with the file. The file remains in the
archive directory, and the unbilled amount of any accounts associated
with the revokes changes is the updated.
Server command
revoke_file
Revoke File and This schedule type revokes all normalised events, normalised error
move back events, and charges associated with the file. The file is moved to the data
directory.
Server command
revoke_file -f
Revoke Invoice This schedule type revokes invoice image settings; for example, deletes
Images all invoice images for the last bill run in the specified bill cycle schedule.
Server command
bill_run_wrapper 40 40 40
Revoke Invoice This schedule type revokes invoice images for a specific customer on a
Images for bill run.
Customer
Server command
bill_run_cust_wrapper –r 40 40
Revoke Invoice This schedule type revokes invoice print settings and allows for a bulk re-
Print Settings print.
Server command
bill_run_wrapper 70 70 70
Revoke Invoice This schedule type revokes invoice print settings. For example, it clears
Print Settings the print setting for all invoices on the specified schedule so that the
for Customer entire bill run can be printed again.
Server command
bill_run_cust_wrapper –r 70 70
Revoke Invoices This schedule type revokes invoice settings. For example, it deletes all
invoices generated in the last bill run in the specified bill cycle schedule.
The Revoke Invoice schedule type automatically carries out the following
operations:
• Revoke Invoice/Statement Images
• Revoke Invoices/Statements
• Revoke Rental Adjustments
• Revoke Rental Events.
If this schedule type is used, it could mean that separate schedules would
need to be run as well (for example, Unapplying Invoices). The
advantage of using the Revoke Invoices schedule type is that all revoke
operations are specified in one step.
Server command
bill_run_wrapper –r 10 40 10
Revoke Invoices This schedule type revokes invoices and images, but keeps rental events
(keep Rentals) (and adjustments), for a specific bill run.
Server command
bill_run_wrapper –r 30 40 10
Revoke Invoices This schedule type revokes invoices and images, but keeps rental events
(keep Rentals) (and adjustments), for a specific customer.
for Customer
Server command
bill_run_cust_wrapper –r 30 40
Revoke Invoices This schedule type revokes invoice images, invoice details, rental events,
for Customer and rental adjustments, for a specific customer on a bill run. For
example, it deletes all invoices generated in the last bill run in the
specified bill cycle schedule for the specified customer.
The Revoke Invoice for Customer schedule type automatically carries out
the following operations for the specified customer:
• Revoke Invoice/Statement Images
• Revoke Invoices/Statements
• Revoke Rental Adjustments
• Revoke Rental Events.
If this schedule type is used, it could mean that separate schedules would
need to be run as well (for example, Unapplying Invoices). The
advantage of using the Revoke Invoices for Customer schedule type is
that all revoke operations are specified in one step.
Server command
bill_run_cust_wrapper –r 10 40
Revoke Rental This schedule type revokes rental events and adjustments for a specific
Events bill run.
Server command
bill_run_wrapper –r 10 10 10
Revoke Rental This schedule type revokes rental events and adjustments for a specific
Events for customer on a bill run.
Customer
Server command
bill_run_cust_wrapper -r 10 10
Revoke This schedule type revokes all normalised events, normalisation error
Reprocessed events and charges, and recreates the original event file.
File
Server command
revoke_file –r
Rotate Partitions This schedule type updates partitions to archive old data, and allocates
partitions for new data.
Server command
rotate_partitions
This script rotates a set of existing entries in the partition definition for
the specified <Table to partition>. The script’s three major
tasks are:
1. Find any partitions associated with the <Table to
partition> which:
• are not dropped, and
• have a TO_CHARGE_START_DATE which is less than the
<effective_date> (date when script is run) minus
<Drop partitions older than> <Units>.
Notes
All updates are performed as part of a single transaction. If an error
occurs, all changes are rolled back.
If there are insufficient dropped partitions available to get a partition that
covers <effective_date>, then an error is output and all changes are
rolled back.
For efficient loading into new partitions, the indexes should be marked as
unusable during the load. This should be performed automatically by
SQL*Loader when run in direct mode. It can also be performed manually
for a partition by using the Partition Maintenance form to update the
status of a partition. This improves performance if the import command
(imp) is used to import data into a new partition. If an import is applied
across multiple partitions (or the entire table), then the ata_dropcit
command can be used to drop all indexes on the table prior to importing
the data. In this case, dbsync should be used to recreate the indexes.
Standard Bill This schedule type creates and executes a standard bill run.
Run
Server command
bill_run_execute
Switch Files This schedule type renames all files that match the given file pattern in
the specified directory to <filename> YYYYMMDD where YYYYMMDD is
the task's effective date.
Server command
switch_files
UnApply & This schedule type de-allocates any credit payment and adjustment
Deallocate amounts for a specific bill run.
Invoices
Server command
bill_run_wrapper –r 50 60 50
UnApply & This schedule type de-allocates any credit payment and adjustment
Deallocate amounts, and un-applies them, for a specific customer on a bill run.
Invoices for
Customer Server command
bill_run_wrapper –c 50 60 40
UnApply Invoices This schedule type un-applies invoices for a specific bill run; the invoices
must already be de-allocated.
Server command
bill_run_wrapper –c 50 60 40
UnApply Invoices This schedule type un-applies invoices for a specific customer on a bill
for Customer run; the invoices must already be de-allocated.
Server command
bill_run_wrapper –c 50 60 40
Unarchive This schedule type unarchives selected tables and other data.
Server command
client_unarchive
Update Account This schedule type validates and updates the unbilled amount of an
Unbilled account.
Note: This script should only be run when there is no rating activity on
the system; otherwise, the account may be updated incorrectly.
Server command
update_unbilled_account
Notes
If an account is specified, then the unbilled amount of that account is
validated and updated. Otherwise, the unbilled amounts of all accounts
are validated and updated.
Validation of an account involves examining all charges that reference
the account and adding together all the charge amounts (converted into
the currency of the account) where the charge has a tariff with an
account_aggregate_ind_code = 1. This summed charge total is
then compared to the account unbilled amount. If the amounts differ then
the account unbilled amount is updated by that difference.
After the database changes have been committed, all updated accounts
are purged from the account cache.
Update Charge This schedule type generates new charge categories for any services or
Categories customer nodes that need them. This schedule only needs to be run if
new charge categories are assigned to products that are in use.
Server command
update_cc
Update Invoice This schedule type validates and updates the unbilled amount of an
Unbilled invoice.
Server command
update_unbilled_invoice
Notes
If an invoice is specified in the invoice number parameter then the
unbilled amount of that invoice is validated. If the unbilled amount is not
correct it is updated. Otherwise the unbilled amounts of all invoices are
validated and updated.
Validation of an invoice involves examining all charges that reference
that invoice and adding together all the charge amounts (converted into
the currency of the invoice's account) where the charge has a tariff with
an account_aggregate_ind_code = 1. This summed charge total is
then compared to the invoice unbilled amount. If the amounts differ then
the invoice unbilled amount must be updated by that difference.
account_aggregate_ind_code maintains a running total of all
unbilled charges for an account. These charges will not include billing
discounts or any billing specific charges but can be used to give an
indication of the customer's unbilled amount.
When the invoice is applied to the account, the unbilled amount in the
account table is decremented by the unbilled amount in the invoice table.
This script only needs to be run if the charge has a tariff with the Add
Charges to Account in Real-time? check box selected. If this script is
used, it can be run at any predetermined time and does not have to
correlate with bill cycles because the unbilled amount is maintained
independently of the invoiced amount. If used, this script should also be
run after a rating engine crash.
Update Lists This schedule type generates new empty derived attribute arrays for any
services or customer nodes that need them. This schedule only needs to
be run if new derived attributes are assigned to products, service types, or
customer node types that are in use.
Server command
update_list
Notes
A check is done in three parts.
1. A check is done for each product; all customers, customer nodes,
and any services associated with the product to ensure they have
the derived attributes required by the product.
2. All customers and customer nodes are checked to ensure they
have all the derived attributes required by their customer type.
3. All services are checked to ensure they have all the derived
attributes required by their service type.
Verify Charge This type verifies that the UNINVOICED_IND_CODE (indicating whether
Partition uninvoiced charges exist in the CHARGE table) is correct in the
ATLANTA_TABLE_PARTITION table for all charge table partitions within
a calculated date range.
The calculated starting date is the schedule's effective date minus the
specified <No of Units><Units>. The end date is equal to the effective
date.
If there are no longer any uninvoiced changes left in the partition, the
UNINVOICED_IND_CODE is cleared. Because the biller automatically
uses this code (no flags need to be set) to check which charge table
partitions need to be scanned for unbilled charges, clearing the code for
unnecessary scanning improves performance.
Frequency of usage for this schedule type depends on the bill cycle and
partition range. For example, for daily partitions with monthly bill
cycles, once per week should be sufficient.
Server command
update_partitions_uninvoiced -n
Notes
For each partition found, this function:
• Checks the CHARGE partition for any uninvoiced charges
• Updates the
ATLANTA_TABLE_PARTITION.UNINVOICED_IND_CODE as
required
• Outputs a message to advise the date and time of completion of
the task, with notification of any uninvoiced charges.
Verify Charge This type verifies that the UNINVOICED_IND_CODE (indicating whether
Partition Range uninvoiced charges exist in the CHARGE table) is correct in the
ATLANTA_TABLE_PARTITION table for all charge table partitions within
the specified start and end dates.
If there are no longer any uninvoiced changes left in the partition, the
UNINVOICED_IND_CODE is cleared. Because the biller automatically
uses this code (no flags need to be set) to check which charge table
partitions need to be scanned for unbilled charges, clearing the code for
unnecessary scanning improves performance.
Frequency of usage for this schedule type depends on the bill cycle and
partition range. For example, for daily partitions with monthly bill
cycles, once per week should be sufficient.
Server command
update_partitions_uninvoiced
Notes
For each partition found, this function:
• Checks the CHARGE partition for any uninvoiced charges
• Updates the
ATLANTA_TABLE_PARTITION.UNINVOICED_IND_CODE as
required
• Outputs a message to advise the date and time of completion of
the task, with notification of any uninvoiced charges.
Rating Re-rate
architecture 1-7 error events 7-47
archive directory 2-2 error events (bulk) 7-48
correcting errors 2-8 event file 7-52
directory structure 2-2 events (bulk) 7-50
errors 1-12 Re-rate File
managing files 2-1 assigning error events 2-11
overview 2-1 creating 2-11
schedule types 2-12 Revoke
Rating and Billing bill run 7-59
overview 1-1 billing task 3-13
Rating Processes customer bill run 7-61
Event Normalisation (ENM) 1-9 event file 7-62
Event Rating (ERT) 1-10 file and move back 7-63
Event Rating Broker (ERB) 1-7 invoice image settings 7-64
Event Rating Output (ERO) 1-11 invoice images for customer 7-65
trerate 1-5 invoice print settings 7-66
trerodb 1-5 invoice print settings for customer 7-67
Rating Subtotal cache 1-8 invoice settings 7-68
Rating Task invoices (keep Rentals) 7-69
checking results 2-4 invoices (keep rentals) for customer 7-70
data feed reconciliation report 2-7 invoices for customer 7-71
description 2-3 rental events 7-72
error files 2-5 rental events for customer 7-73
log-out file 2-5 reprocessed file 7-74
notifying completion 2-4 Rotate
original file location 2-5 partitions 7-75
parameters 2-3 RRRT See Report Reference Type (RRRT)
preparation 2-3 Schedule Types
running 2-3 Apply Invoices 7-10
status and result 2-5 Apply Invoices for Customer 7-11
unsuccessful 2-9 Apply Transactions 7-12
view error events 2-6 Apply&Allocate Invoices 7-8
view normalised files and events 2-6 Apply&Allocate Invoices for Customer 7-9
Re-analyse Tables 7-46 Archive 7-13
Reconfigure Auditing 7-53 Billing Suppress 7-14
Rental Generation Program (RGP) Billing Unsuppress 7-16
description 1-15 Complete Bill Run 7-17
generating charges 1-13 Complete Bill Run for Customer 7-18
processing 1-15 Contract Cancel/Notify 7-19
quality assurance mode 1-15 Create Partitions 7-21
rental adjustment mode 1-15, 1-16 description 7-1
steps in billing 1-15 details 7-7
Report Reference Type (RRRT) 7-54 DIL validation 7-23
Reporting Levels Dunning Letter Generation 7-24
billing 3-20 ECP Command 7-25
Reprocess Explain BGP hierarchy passes 7-26
error event 7-55 for bill runs 3-17
event 7-57 for individual customers 3-18, 3-19
Requirements Full Database Validation 7-27
for use of the document vii General Bulk Output By Task 7-28
UnApply
invoices 7-80, 7-82
invoices for customer 7-81, 7-83
Unarchive
selected tables 7-84
Update
account unbilled 7-85
charge categories 7-86
invoice unbilled 7-87
lists 7-88
Update Partitions 7-36, 7-37
Update Partitions Uninvoiced 7-89
Verify Charge Partition 7-89
Verify Charge Partition Range 7-89, 7-90
View
error events 2-6, 2-10
invoice data 3-13