Abstract:
A symmetrical accounting method and apparatus uses a DSA agent within each node of a computer network. The agents monitor their respective nodes for outgoing and incoming transactions and transparently generate accounting data upon detecting the transactions. The accounting data is temporarily cached for later downloading to an accounting database. The method and apparatus is adaptable to a variety of accounting information through the use of verb sets and user modifiable extension records. The method and apparatus is symmetrical because accounting information is collected on both sides of a transactional conversation or object method to object method call.

Description:
BACKGROUND OF THE INVENTION  
         [0001]    1. Field of the Invention  
           [0002]    The invention pertains to the art of general accounting mechanisms for use in transaction and object-based systems and, more particularly, to automated middleware that transparently generates a symmetrical database of transactions in a system. The information is symmetrical because accounting information is collected on both sides of a transactional conversation or object method to object method call.  
           [0003]    2. Description Of Related Art  
           [0004]    Businesses that make large capital outlays for equipment often desire to track the usage of that equipment. The reasons for tracking usage are as varied as business itself, but among the more typical rationales for engaging in this type of accounting are 1) to assess the profitability of the purchase or lease, 2) to charge equipment use to various divisions or clients by actual usage, or 3) to reallocate a usage schedule for the equipment on a desired basis (e.g. fairness, efficiency, profitability etc.).  
           [0005]    An early known method of tracking usage involved time intensive manual bookkeeping. When a user operated the equipment, the user made an entry in a logbook to document use of the device. Unfortunately, this manual method suffered from several inefficiencies. First, the logbook method is time consuming. At times the accounting effort exceeded the device use. This undesirably made the accounting “cost” more than the equipment use. Secondly, the logbook method is only as accurate as the users are diligent in their accounting. This undesirably made the logbook an imperfect mirror of equipment usage, defeating the purpose of accounting. Thirdly, the logbook method is asymmetrical in that the log itself dictates where the information is accumulated. This undesirably limits the usefulness and the analysis potentially available. The asymmetry also causes inaccuracies in that one “task” may be divided into several sub-tasks. For example, a task may originate on a computer terminal for composing, then move to a superior for editing, and finally onto a printer and a copier for distribution. Fourthly, the logbook system becomes unwieldy as the number of items to account for increases. As organizations push to become ever more efficient, a need exists to account for as many resources as possible, including not only main frame computers, but also other computer peripherals and perhaps even personnel.  
           [0006]    Thus, a system is sought that overcomes these shortcomings. The advent of computer monitoring has somewhat helped to alleviate the administrative burden. For example a system in which a printer tracks accounting information is disclosed in U.S. Pat. No. 5,699,493 to Davidson, Jr. et al. and is incorporated here by reference. The Davidson system places the printer in the role of data collector. Previous systems typically accounted for print jobs only on the requesting computer (if accounts were kept at all). That is, the previous system was unilateral vis-a-vis the requesting computer. Davidson, essentially turns the previous system around by having the printer accumulate accounting data, resulting in a unilateral system vis-a-vis the printer.  
           [0007]    Another accounting system for a document processing system which executes potentially several jobs over multiple processing facilities is described in U.S. Pat. No. 5,659,845 to Krist et al., incorporated herein by reference. A unique identifier is assigned to a job which remains associated although the job is reduced to several smaller jobs. An accounting log manager correlates the accounting information and saves the result in a file. While the Krist method is easier than the manual system described above, it is not symmetric in that it only tracks the use of the document processing system.  
         BRIEF SUMMARY OF THE INVENTION  
         [0008]    The present invention contemplates a new, efficient method of implicitly generating a symmetrical accounting database regarding transactions on a computer network that overcomes the above-referenced problems and others.  
           [0009]    In accordance with the present invention, there is provided a transaction accounting system supporting a system and/or network containing two or more principals. Principals are defined as users (programmatic or human) of the system and/or network. The principals are in communication with each other and thus are capable of requesting and performing transactions and/or methods. Further included in the system are means for recognizing the transactions between principals and means for generating an accounting record after recognizing the transaction or method. Lastly, means for later forwarding the accounting record to a database are also included.  
           [0010]    In accordance with another aspect of the present invention, the means for recognizing, generating, and forwarding is one of a plurality of software agents, each principal having such an agent.  
           [0011]    In accordance with another aspect of the present invention, a globally unique transaction identifier used for a root transaction is used for all other accounting records generated after the root transaction.  
           [0012]    In accordance with another aspect of the present invention, the accounting record includes at least a time stamp, a globally unique transaction identifier, a locally generated conversation identifier, the name of the principal (program or human) originating the transaction or call, the name of the transaction or method in use at the time, the name of the principal receiving the transaction or call, and the name of the transaction or method being invoked.  
           [0013]    In accordance with another aspect of the present invention, the agent further selectively generates and appends an extension record to the accounting record. The extension record includes the locally generated conversation identifier and the globally unique transaction identifier. Also added are an extension length indicator and an extension type indicator, along with a billable indicator. Additionally, a plurality of extra data fields supplied by the application in use when the transaction was made are provided.  
           [0014]    In accordance with another embodiment of the present invention, a method of generating an accounting database of transactions on a computer network having a plurality of nodes is shown. The method consists of monitoring each node for either an outgoing or an incoming transaction. The method further generates an accounting record on detecting the transaction and caches the accounting record temporarily. Periodically the accounting record is downloaded to the accounting database. These steps are repeated continuously during network operation.  
           [0015]    In accordance with another aspect of the present invention, the steps above occur transparently to a user.  
           [0016]    In accordance with another aspect of the present invention, the accounting record comprises an extension record. The extension record consists of additional data fields provided by the application in use.  
           [0017]    In accordance with another embodiment of the present invention, an automated symmetrical data collection apparatus for generating and storing a plurality of accounting records on a network of computing nodes is shown. The data collection apparatus includes a middleware agent in each node. Every agent monitors their node for a transaction between an operating system and any user interface applications loaded onto the node. When a transaction is noted, the agent generates an accounting record. The data collection apparatus also includes a temporary storage device, addressable by the agent, capable of receiving and holding the accounting record. Additionally, a database is included for receiving and storing the accounting record from the temporary storage device.  
           [0018]    In accordance with another aspect of the present invention, the same globally unique transaction identifier is propagated down a transaction tree constructed by subsequent transactions. The globally unique transaction identifier is then used to correlate a set of (possibly nested) transactions performed by independent nodes.  
           [0019]    One benefit obtained by use of the present invention is that the accounting information is collected automatically, that is, without requiring user action. This saves the user from a programming task and improves compliance with accounting procedures providing a more robust database.  
           [0020]    Another benefit obtained by use of the present invention is that the accounting information is collected, thus analyzable on both the sending and receiving ends of the transaction. That is, the information collected is symmetrical and able to be cross-referenced.  
           [0021]    Other benefits and advantages of the subject new method will become apparent to those skilled in the art upon a reading and understanding of this specification. 
       
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS  
       [0022]    The invention may take physical form in certain parts and steps and arrangements of parts and steps, the preferred embodiments of which will be described in detail in the specification and illustrated in the accompanying drawings which form a part hereof and wherein:  
         [0023]    [0023]FIG. 1 is a simplified block diagram of a system according to the present invention;  
         [0024]    [0024]FIG. 2 is a general flowchart of the method of the present invention;  
         [0025]    [0025]FIG. 3A is one component of the accounting information collected by the present invention;  
         [0026]    [0026]FIG. 3B is another component of the accounting information collected by the present invention;  
         [0027]    [0027]FIG. 3C is yet another component of the accounting information collected by the present invention;  
         [0028]    [0028]FIG. 3D is a representation of the combined accounting record of the present invention;  
         [0029]    [0029]FIG. 4 is a flowcharted example of the present invention; and  
         [0030]    [0030]FIG. 5 is an example transaction tree capable of being accounted for by the present invention. 
     
    
     DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT  
       [0031]    Turning now to the drawings, wherein the showings are for purposes of illustrating the preferred embodiments of the invention, and not for purposes of limiting same, an example system according to the present invention is shown generally designated  10 . For ease of comprehension, FIG. 1 shows a three-node network with a database although any larger number of nodes and/or databases are possible. A principal  12  (Tom) is a user of a computer system  14 . A principal is a named registered collection of transaction methods and the agent that represents the collection. For instance, computer programs, people, equipment, or other network service providers can be principals. In this example, Tom  12  is a human user of the network  10 . Tom&#39;s computer  14  can be thought of as three general components, namely, applications  14   a , an operating system  14   c , and middleware  14   b  which lies in between the applications and the operating system. Middleware is used to describe software that is located on top of an operating system and connects otherwise separate applications between the user interface and the operating system of the computer. The present invention lies in middieware and is referred to as Tom&#39;s agent in this example. The middleware agent  14   b  is a program which assumes the identity of the person or other principal it is representing. The middleware agent  14   b  is a ‘spokes-program’ for principal Tom  12 .  
         [0032]    The middleware agent&#39;s tasks can be appreciated by referring to FIG. 2 where the accounting middleware is generally designated  26 . Starting at decision block  28  the middleware  26  determines if an outgoing transaction is being exchanged between the operating system and an application. An outgoing transaction is most commonly a communication with another node on the network (e.g. a print request), but could also be an accessing of information or a program within a node. If there is no outgoing transaction, the method proceeds to decision block  30  where the presence of an incoming transaction is detected. An incoming transaction is the corollary to the outgoing transaction. If there is neither an outgoing nor an incoming transaction, a decision is made on the propriety of downloading any cache memory in decision block  32 . The contents of the cache are forwarded to the accounting database when the cache becomes full, when the accounting service requests forwarding, or on some periodic basis determined by the implementers of the cache. Regardless, if the result out of block  32  is no, then the process returns to block  28 .  
         [0033]    On the other hand, from block  28 , if an outgoing transaction occurs, the method executes block  34  where an accounting record is constructed. The accounting record comprises data available to the node without additional user input as will be more fully discussed below. Following construction in block  34 , the accounting record is placed into the cache memory in block  36 . After depositing the record in the cache  36 , the flowchart cycles back to decide if further transactions await. If an incoming transaction is present, decision block  30  will detect it and then construct an accounting record in block  34 . Before cycling back to await further transactions, the accounting record is deposited in cache memory in block  36 .  
         [0034]    If in block  32 , the decision to download the cache is yes, the middleware deposits the cache into an accounting database in step  38 . The present invention can be used with any type semi-permanent device to store the cache. For instance, hard drives, floppy disks, magnetic tape systems and ROM&#39;s. It is to be appreciated that the program loop structure and sequencing are but one suitable embodiment, and that the functions can be invoked asynchronously and/or in a different order with no loss of functionality.  
         [0035]    [0035]FIG. 3A shows the embodiment of an account header generated by the middleware agent in step  34 . The preferred account header consists of a septuple  40 , a set of account length and type indicators  42 , and a billing indicator  44 . The septuple  40  consists of:  
         [0036]    [0036] 40   a  A time stamp—being the time the record was created.  
         [0037]    [0037] 40   b  A globally unique transaction identifier—being an identifier for a transaction method tree instance. The identifier is produced by the root transaction method (or the transaction service supporting it), and is propagated down the transaction tree constructed by subsequent invocations. The identifier may be used to correlate all arcs and nodes involved in a distributed, (possibly nested) set of transaction method instances.  
         [0038]    [0038] 40   c  A locally generated conversation identifier.  
         [0039]    [0039] 40   d  The name of the proximal principal.  
         [0040]    [0040] 40   e  A transaction name—being the name of a program in use when the transaction was made.  
         [0041]    [0041] 40   f  The name of the distal principal.  
         [0042]    [0042] 40   g  The name of the proximal transaction.  
         [0043]    Two key benefits of the seven items described above are that each principal can be described using the above data, and that all the data is implicitly available within the system. That is, the user need not provide additional information beyond initiating the transaction. Also, while the data has been shown in order above, the present invention recognizes that it may be formatted in any order without loss of function.  
         [0044]    [0044]FIG. 3B shows that optionally, an application may be written or modified to provide additional accounting data.  
         [0045]    The present invention also envisions inclusion of additional accounting items called ‘extension records.’ The application provides the extension record, which is generated, cached and stored like the accounting data above. An extension record to consists of an extension header  46  and as many extension vectors  48  as necessary as shown in FIG. 3B.  
         [0046]    Referring now to FIG. 3C, the last component of the accounting record is shown. When any transaction is completed, the trailer record is generated by the agent. By comparing FIGS. 3A, 3B, and  3 C it is apparent that the all three parts of the accounting record contain some common fields. Importantly, the globally unique transaction method identifier connects the individual parts of the accounting record in addition to associating separate but related accounting records generated down a transaction tree (see FIG. 5) through successive invocations.  
         [0047]    If a transaction starts and ends while in cache, a “roll-up” procedure combines the components of the accounting record into a single record as shown for example in FIG. 3D. A hypothetical example cross referencing FIGS.  1 - 3 D is illustrative. Tom  12 , for example, commands his computer  14  (FIG. 1) to print the document he is working on.  
         [0048]    This initial request is called a “root transaction.” The agent  14   b  recognizes this as an outgoing transaction (refer to decision block  28  in FIG. 2), generates an accounting record (refer to process block  34 ), and places the accounting record in cache (refer to process block  36 ). Again, the accounting record comprises a set of items the agent  14   b  ‘knows’ about the environment, thus requiring no additional information from the principal  12  or specific software package in use at the time.  
         [0049]    While the agent  14   b  (FIG. 1) prepares the accounting record, Tom&#39;s computer  14  routes the print signal to the printer node  16 . The printer  16  also has an agent  16   b  that recognizes the print signal as an incoming transaction. Similarly, the printer&#39;s agent  16   b  generates an accounting record and saves it for later deposit in the database  20 . Meanwhile, the printer operating system  16   c  processes the print job. At a later time, each agent  14   b ,  16   b  downloads their respective cache memories into the database  20  for later interpretation by an account record organization program (not shown). Also recall, that the root transaction and the accounting record generated by the printer&#39;s agent will have the same globally unique transaction method identifier to facilitate the analysis.  
         [0050]    To summarize:  
         [0051]    1. “Tom”  12  makes a request to print a certain document.  
         [0052]    2. Tom&#39;s middleware agent  14   b  constructs the account header containing the septuple (FIG. 3A):  
         [0053]    A time stamp  40   a    
         [0054]    A globally unique transaction identifier  40   b    
         [0055]    A locally generated conversation identifier  40   c    
         [0056]    The user&#39;s name (e.g. “Tom”)  40   d    
         [0057]    The name of the application transaction method Tom was using when he made the request, (e.g. the “ViewCard” method in the CardCatalogLookup application)  40   e    
         [0058]    The name of the identified service (e.g. “PrintService”)  40   f    
         [0059]    The work transaction name (e.g.  
         [0060]    “PrintDocument”)  40   g    
         [0061]    3. Tom&#39;s middleware agent  14   b  also constructs any extension records from other information specified by the application CardCatalogLookup.  
         [0062]    4. The account header and extension record are cached by Tom&#39;s agent  14   b  until it is convenient to forward them to the accounting database  20  system. The CardCatalogLookup application may continue adding additional accounting information, extension records, until it terminates.  
         [0063]    5. When PrintService receives Tom&#39;s work transaction, its agent  16   b  creates a similar account header, containing the same globally unique transaction identifier, the invoker&#39;s user and application method name, the PrintService&#39;s own name and invoked application method name, a current time stamp, and any further accounting information to be recorded by PrintDocument.  
         [0064]    6. When both Tom&#39;s CardCatalogLookup application method (ViewCard) and the PrintService application (PrintDocument) have completed, any accumulated accounting information not already sent to the accounting database system  20  will be transmitted to it.  
         [0065]    The transmission of accounting information to an accounting service uses a simple, low cost protocol known generally in the art, and is independent of the execution of the requested or requesting functions, users or services, or their agents.  
         [0066]    7. A billing service may extract the accounting information at a later time, based on any of the field types contained in the septuples, or on application specific information contained in extension records. For example, the two accounting records generated above may be correlated using the common globally unique transaction identifier.  
         [0067]    Cross-referencing FIGS. 1 and 4, a three node transaction is flowcharted. Assume for example, Tom  12  (FIG. 1) needs a print-out of last month&#39;s budget summary in preparation for a meeting. Tom first commands an application to print last month&#39;s budget summary  50  (FIG. 4). In response, Tom&#39;s operating system (O/S)  14   c  formats a query to the budget manager to prepare a summary of last month&#39;s budget  52 . Tom&#39;s O/S  14   c  passes the formatted transaction as an outgoing transaction directed to the budget manager  18 . The budget manager  18  is a corresponding principal, and can thus be a person or merely another computer system on the network. Tom&#39;s middleware agent  14   b  detects the outgoing transaction and generates an accounting record in step  54 .  
         [0068]    The budget manager receives the transaction and the budget manager&#39;s middleware agent  18   b  detects the incoming transaction and generates an accounting record in step  56 . The budget manager&#39;s application  18   a  prepares the budget summary and adds to the accounting data in step  58 .  
         [0069]    Tom&#39;s application  14   a  receives the budget summary report from the budget application in step  60 . Tom&#39;s application formats the budget summary report as a print job and forwards it to Tom&#39;s printer application as an outgoing print transaction in step  62 . Tom&#39;s middleware agent detects the outgoing print transaction and again generates an accounting record in step  64 .  
         [0070]    The printer  16  receives the print job while the printer&#39;s middleware agent  16   b  detects the incoming print job and generates an accounting record in step  66 . Meanwhile, the printer prints the job, generates a “job complete” message, adds to the accounting data and ends the print transaction in step  68 . The printer&#39;s middleware agent  16   b  detects the end of transaction, adds a trailer and flushes accounting data to accounting service  20  in step  70 .  
         [0071]    Tom&#39;s application  14   a  receives the incoming job completion message, adds to the accounting data and ends the print and summary transactions  72 . Tom&#39;s agent  14   b  detects the ending transactions, adds appropriate trailers and flushes accounting data to the accounting service  74 .  
         [0072]    Significantly, the only items in the sequence of which Tom is aware are his initial command  50  and the completion message  72 . The points in between including all the accounting data are collected transparently. Moreover, all accounting information associated with Tom&#39;s transaction is categorized under the original Global Identifier (GUTMID) established when the first query went out. One skilled in the art can now appreciate that a transaction tree may be generated by progressively more complicated queries calling on a greater number of nodes in larger networks. Such a tree is shown in FIG. 5 as an example. As a cursory example, Principal Tom  80  initiates a request for inventory of an office in the company&#39;s US Southwest branch  82 . As is now evident, Tom  80  makes a request which is responded to by a principal in the Southwest branch  82 . As above, Tom  80  only observes his own request, and the response. However, principals along the network or system have also accounted and documented the transaction, e.g. US principal  84 , West principal  86 , in addition to South principal  82  and Tom  80  himself.  
         [0073]    The symmetrical nature of the information gathered by the present invention enables systems to account for usage in distributed, shared systems. Such accounting includes determining:  
         [0074]    how much of a particular service was used by a particular department;  
         [0075]    how much of a department&#39;s total use was for a specific service;  
         [0076]    how much of a department&#39;s use of a service was for a particular work request (or requests); or  
         [0077]    how much of a department&#39;s total use is attributable to one principal.  
         [0078]    The above are just a few examples of the myriad of automated accounting data available through use of the present invention. Importantly, by recording the globally unique transaction identifier, time stamps, the requesting user&#39;s (or service&#39;s) name, the requested user&#39;s (or service&#39;s) names, the requesting function (transaction) name and the requested function name, the proposed system contains the information needed to derive such accounting data as detailed above.  
         [0079]    Equally significant is that the information contained in the accounting data (preferably the septuple described) is gathered by agents automatically, without intervention by users, services or their objects/transaction programs. Programs may also be modified to supply additional accounting information to be stored along with the accounting data. This additional information appended to the accounting record is called an extension record. Preferably, any extension records will be added on a network wide basis for symmetry by a network administrator. Moreover, it is envisioned that new or modified programs will supply the extension records via an accounting verb language such as the one described below.  
         [0080]    Accounting Verb Sets  
         [0081]    The following verbs are functions exported by the agents:  
         [0082]    Account_Open_Record  
         [0083]    Account_Open_Record creates an accumulation space within the agent and writes an account record header containing the principal names (issuing and partner), their transaction method names, the conversation id, a time stamp and a globally unique identifier.  
         [0084]    Account_Append_Record  
         [0085]    Account_Append_Record adds an extension vector to an account record.  
         [0086]    Account_Close_Record  
         [0087]    Account_Close_Record closes an account record by generating a trailer record to indicate the closing time-stamp of the conversation and marks the record eligible for movement to an account service.  
         [0088]    Account_Flush_Record  
         [0089]    Account_Flush_Record requests the agent to forward accumulated account records to an accounting service.  
         [0090]    The following verbs are functions provided by the accounting service:  
         [0091]    Account_Forward  
         [0092]    Account_Forward copies account records from the specified accounting base to another accounting service.  
         [0093]    Account_Retrieve  
         [0094]    Account_Retrieve requests an agent to send its records to a particular accounting service. This is the “pull” corollary of the “Account_Flush_Record”.  
         [0095]    Account_Delete_On_Attributes  
         [0096]    Account_Delete_On_Attributes removes accounting records from a specified account base, based on attribute types and values. Depending on the attributes specified, Account_Delete_On_Attributes can be used to erase records, entries, journals, or other organized collections.  
         [0097]    Function Description  
         [0098]    The following functions support the accounting verbs defined in the previous section.  
         [0099]    Function OPEN-ACCOUNT-RECORD  
         [0100]    This function creates an accumulation space within the agent of a principal and writes an account record header information containing the following fields:  
         [0101]    —Account-length: The total length of the accounting record including the extension-vector(s) and the trailer record.  
         [0102]    Account-type: The type of the record, in this case, it is an account-header.  
         [0103]    P-1: The name of the invoking principal.  
         [0104]    P-2: The name of the invoked principal.  
         [0105]    TM-1: The name of the transaction method executing within the invoking principal.  
         [0106]    TM-2: The name of the invoked transaction method executing within the invoked principal.  
         [0107]    CID: The conversation id.  
         [0108]    Account-GUTMID: The globally unique identifier of a transaction method tree instance.  
         [0109]    Account-Time-Stamp: The starting time of the conversation.  
         [0110]    Account-Billable?: The billable indicator.  
         [0111]    For each conversation, the agent will generate one account header, zero to many extension vectors, and one trailer record.  
         [0112]    Function APPEND-ACCOUNT-RECORD  
         [0113]    This function adds an extension vector to an account record. Account_Append_Record is the agent verb with which a principal concatenates principal-specific accounting information to an account record.  
         [0114]    An Extension-header has the following fields:  
         [0115]    Ext-cid: Conversation id, as assigned in the account-header.  
         [0116]    Ext-gutmid: As assigned in the account-header.  
         [0117]    Ext-length: The total length of the extension vector(s).  
         [0118]    Ext-type: The type of “extension-record”.  
         [0119]    Ext-Billable?: Billable indicator.  
         [0120]    An Extension vector has the following fields:  
         [0121]    Acct-Value-Length: The length of the extension vector generated by this application.  
         [0122]    Acct-Value-Type: The user definable extension vector type. It can denote anything the user wants to collect accounting information about e.g., location, number of pages, etc.  
         [0123]    Acct-Value: Application specific data e.g., movie name.  
         [0124]    The user accounting information the “Acct-value” field is undefined. The acct-value-length and acct-value-type are used to specify the length and type of the “acct-value” field. The acct-value-type is an integer. It is application specific. A set of application types can be predefined, e.g. Acct-value-type=43=Location. Acct-value-type could be used to record the starting and ending time for a series of extensions.  
         [0125]    Function CLOSE-ACCOUNT-RECORD  
         [0126]    This function will create a trailer record when the conversation is terminated. The trailer record indicates the closing time-stamp of the conversation, and marks the record eligible for movement to an accounting service. The links to the account header, extension record and trailer record are the “GUTMID” and “CID”.  
         [0127]    A Trailer record has the following fields:  
         [0128]    Trailer-Type: The type of “trailer-record”.  
         [0129]    Trailer-Cid: As assigned in account header.  
         [0130]    Trailer-GUTMID: As assigned in account header.  
         [0131]    Status: Status of the conversation termination.  
         [0132]    Trailer-Time-Stamp: Ending time of the conversation.  
         [0133]    Function FLUSH-ACCOUNT-RECORD  
         [0134]    This function requests an agent to move accumulated records to an accounting service. The request is from the agent side. The “Retrieve-Account-Record” function is a request from the accounting service side.  
         [0135]    This function can be called at any time, not necessarily at the end of the conversation. If the buffer is flushed during the conversation, the buffer is retained. The buffer will be de-allocated when the conversation is terminated.  
         [0136]    Function FORWARD-ACCOUNT-RECORD  
         [0137]    This function copies account records from the specified account base, keyed by attribute types and values and sends them to another accounting service. Like the Extract-Account-On-Attributes function, this function provides the capability to forward account record(s) keyed by a single attribute type and value or on any combinations. In other words, the function will forward the account record(s) based on the values of the attributes supplied. The forwarding can be performed on any of the following attribute value and/or any combinations:  
         [0138]    P1  
         [0139]    P2  
         [0140]    TM-1  
         [0141]    TM-2  
         [0142]    Time-Stamp  
         [0143]    Starting  
         [0144]    Ending  
         [0145]    GUTMID  
         [0146]    CID  
         [0147]    Status  
         [0148]    Billable-Indicator  
         [0149]    Account-Value  
         [0150]    Account-Value-Type  
         [0151]    Function RETRIEVE-ACCOUNT-RECORD  
         [0152]    This function requests an agent to send account records to an accounting service. This is the “pull” corollary of the “Account_Flush_Record”. Unlike the “Account_Flush_Record”, this request is from the accounting service side to the agent.  
         [0153]    Function DELETE-ACCOUNT-RECORD-ON-ATTRIBUTES  
         [0154]    This function deletes account records from the specified account base, based on attribute types and values. Like Account-Extract-On-Attributes, this function can delete account record(s) keyed by a single attribute type and value or on any combinations. In other words, the function will delete the account record(s) on the values of attributes supplied. The deletions can be performed on any of the following attribute value and/or any combinations:  
         [0155]    P-1  
         [0156]    P-2  
         [0157]    TM-1  
         [0158]    TM-2  
         [0159]    Time-Stamp  
         [0160]    Starting  
         [0161]    Ending  
         [0162]    GUTMID  
         [0163]    CID  
         [0164]    Status  
         [0165]    Billable-Indicator  
         [0166]    Account-Value  
         [0167]    Account-Value-Type  
         [0168]    This function can be used to delete records that have been organized after a roll-up from the account-base.  
         [0169]    Function EXTRACT-ACCOUNT-RECORD-ON-ATTRIBUTES  
         [0170]    This function returns account records based on attribute types and values. Depending on the attributes specified, this function can be used to retrieve records, entries, journals, or other organized collections.  
         [0171]    We designed a very powerful function here by providing the capability to extract account record(s) keyed by a single attribute value or on any combinations. In other words, the function will extract the account record(s) on the values of attribute supplied. The extractions can be performed on any of the following attribute value and/or any combinations:  
         [0172]    P-1  
         [0173]    P-2  
         [0174]    TM-1  
         [0175]    TM-2  
         [0176]    Time-Stamp  
         [0177]    Starting  
         [0178]    Ending  
         [0179]    GUTMID  
         [0180]    CID  
         [0181]    Status  
         [0182]    Billable-Indicator  
         [0183]    Account-Value  
         [0184]    Account-Value-Type  
         [0185]    This function will be used to re-organize the account records in the account-base, e.g. during roll-up time, records need to be organized and rolled-up based on GUTMID, and then moved out of the account-base. The account header, the extension record and trailer record are separate records until roll-up time. The organized records will be deleted after being rolled-up.  
         [0186]    Definition of Terms  
         [0187]    Account-Base: An unordered set of zero or more account records.  
         [0188]    Account-Entry: A set of account records containing a common, unique GUTMID, i.e. generated by a single transaction method tree instance.  
         [0189]    Account-Journal: A collection of account records generated by a given principal.  
         [0190]    Account Record: A set of account header, extension vector(s) and trailer record containing a common CID and GUTMID.  
         [0191]    Account Header: A header information record for the account record contains the 7 tuples plus a billable indicator.  
         [0192]    Agent: A DSA agent assumes the identity of the person or other principal it is representing. An agent is a “spokes-program” for a principal.  
         [0193]    CID: Conversation Identifier.  
         [0194]    Extension-Header: A header information for an extension record, consists of CID, GUTMID, length and type information and billable indicator, used to link the extension vector with the account header.  
         [0195]    Extension Vector: A sub-set of Account Record which consists a principal defined collection of {LENGTHITYPEIVALUE} attributes.  
         [0196]    Extension Record: A combination of extension header and extension vector.  
         [0197]    GUTMID: A globally unique identifier for a transaction method tree instance. The GUTMID is produced by the root transaction method (the transaction method instantiated by BSOM, not by receipt of a C-Begin request), and is propagated down the transaction tree constructed by subsequent invocations. The GUTMID may be used to correlate all arcs and nodes involved in a distributed, nested set of transaction method instances.  
         [0198]    Principal: A DSA principal is a named collection of transaction methods. Documents, people and applications are principals.  
                                                     Account Record and its Associated Fields:                    Extension-   Extension-               Account-Header   Header   Vector   Trailer-Record                       Length   CID   Length   CID           Type   GUTMID   Type   GUTMID           P-1   Length   Value   Time-Stamp           TM-1   Type       Status           P-2   Billable?       Trailer-Type           TM-2           CID           GUTMID           Billable?           Time-Stamp                      
 
         [0199]    The invention has been described with reference to the preferred embodiments. Potential modifications and alterations will occur to others upon a reading and understanding of the specification. It is our intention to include all such modifications and alterations insofar as they come within the scope of the appended claims, or the equivalents thereof.