Patent ID: 7694275

Claim:
A computer-implemented method for controlling the scope of code in a script library, comprising: a specific programmed processor creating, in a script library, a plurality of common blocks of code including code fragments defined by IF/THEN statements; packaging collections of parameters, each of said collections of parameters forming a data type including a scope parameter, wherein said scope parameter defines how often a script from said script library is scheduled for execution, and wherein the IF/THEN statements decode the scope parameter and control a scope of processing of scripts from said script library; providing, in a database application, a plurality of first agents, each said first agent packaging an instantiation of a data type including said scope parameter, wherein each of the plurality of first agents is exclusively associated with a particular type of script in the script library that is to be executed according to a time schedule set by said scope parameter; providing in a secondary application a plurality of second agents for scheduling execution of said first agents, wherein each of said plurality of second agents issues calls to multiple said first agents in said database application, wherein said calls are to scripts in said script library; responsive to a second agent scheduling execution of at least one first agent, executing said first agent to issue a call including said scope parameter to said script library; and executing said code fragments and script from said script library responsive to said scope parameters.