Patent ID: 7447700

Claim:
A method for generating code comprising the computer-implemented steps of: receiving input that specifies criteria associated with territories, wherein the criteria comprises one or more combinations of one or more conditions based on qualifiers of the territories; receiving input that specifies values for attributes of territorial assignees; a code generator automatically generating, based on the criteria associated with the territories, code which, when executed, causes generation of a mapping between the territories and the territorial assignees; wherein said generation of the mapping by execution of said code is based on the criteria associated with the territories and the values for the attributes of the territorial assignees; wherein the step of generating the code includes generating code which when executed iterates through the territories and while processing each of the territories determines the territorial assignees that match the criteria associated with each of the territories; wherein the criteria associated with the territories includes rankings of the territories; and wherein said code comprises computer executable instructions that conform to a computer language.