Method for locating a versioned object within a version tree depicting a history of system data and processes for an enterprise
First Claim
1. In a computer system having a user interface, a memory, a repository and a database, a repository program operating in said computer system for accessing said database, said repository program executing a method for locating a versioned object within a version tree depicting a history of objects stored in said repository, when a desired variant and desired version are provided, said method comprising the steps of:
- a. declaring a variable workObject;
b. if the desired variant is equal to the variant of an object on which a requesting step is called, setting said workObject to said object;
c. if said desired variant is not equal to the variant of said object on which said requesting step is called, setting said workObject to a root object;
d. if said workObject is null, pushing a noSuchVariant error onto a notification stack and exiting said method;
e. if said workObject is not null, determining direction for searching said version tree using the desired version and the version of said workObject;
f. if said workObject is visible, returning said workObject as the desired version;
g. if said workObject is not visible and the desired version is equal to zero, determining if said workObject has previous versions;
h if said workObject has no previous versions, returning a null object.
9 Assignments
0 Petitions
Accused Products
Abstract
The method of the present invention is useful in a computer system having a user interface, a memory, a repository and a database. The method is a repository program executed by the computer system for locating a versioned object within a history of objects stored in the repository. The method comprises the steps of declaring a variable workObject; if the desired variant is equal to the variant of object on which the requesting step is called, setting the workObject to said object; if the desired variant is not equal to the variant of object on which the requesting step is called, setting the workObject to a root object; if the workObject variable is null, pushing a noSuchVariant error onto a notification stack and exiting the method; determining direction for searching the version tree using the desired version and the version of workObject; if the workObject is visible, returning said workObject as the desired version; if the workObject is not visible and the desired version is equal to zero, determining if the workObject has previous versions; if the workObject has no previous versions, returning a null object.
-
Citations
16 Claims
-
1. In a computer system having a user interface, a memory, a repository and a database, a repository program operating in said computer system for accessing said database, said repository program executing a method for locating a versioned object within a version tree depicting a history of objects stored in said repository, when a desired variant and desired version are provided, said method comprising the steps of:
-
a. declaring a variable workObject; b. if the desired variant is equal to the variant of an object on which a requesting step is called, setting said workObject to said object; c. if said desired variant is not equal to the variant of said object on which said requesting step is called, setting said workObject to a root object; d. if said workObject is null, pushing a noSuchVariant error onto a notification stack and exiting said method; e. if said workObject is not null, determining direction for searching said version tree using the desired version and the version of said workObject; f. if said workObject is visible, returning said workObject as the desired version; g. if said workObject is not visible and the desired version is equal to zero, determining if said workObject has previous versions; h if said workObject has no previous versions, returning a null object. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
-
12. In a computer system having a user interface, a memory, a repository and a database, a repository program operating in said computer system for accessing said database, said repository program executing a method for locating a versioned object within a version tree depicting a history of objects stored in said repository, when a desired variant and desired version are provided, said method comprising the steps of:
-
a. declaring a variable workObject; b. if the desired variant is equal to the variant of an object on which a requesting step is called, setting said workObject to said object; c. if said desired variant is not equal to the variant of said object on which said requesting step is called, setting said workObject to a root object; d. if said workObject is null, pushing a noSuchVariant error onto a notification stack and exiting said method; e. if said workObject is not null, determining direction for searching said version tree using the desired version and the version of said workObject; f. if said workObject is visible, returning said workObject as the desired version; g. if said workObject is not visible and the desired version is equal to zero, determining if said workObject has previous versions; h. if said workObject has no previous versions, returning a null object; i. if said workObject is not visible and said workObject has previous versions, performing additional steps of; 1) if said variant parameter is not specified, setting said workObject equal to object; 2) determining if said workObject has previous versions, and if so, setting said workObject equal to previous version and repeating this step until said workObject has no previous versions; 3) if said workObject has no previous versions, returning said workObject; 4) if said variant parameter is specified, determining if said desired variant is the current branch; 5) if said variant is the current branch, determining if said object has previous versions, and if not, returning said object as the root object of the current variant branch; 6) if said object has previous versions, setting value of said workObject to object; and 7) if said workObject has no previous versions, returning said workObject as the root object of the variant branch. - View Dependent Claims (13, 14, 15, 16)
-
Specification