主权项 |
1. A computer system to implement pseudo internal numbering mechanism for unique and continuous numbering of documents generated in a software application, the system comprising:
a memory to store executable instructions; and a processor coupled to the memory to execute the instructions to:
generate an external number range object (NRO) to assign numbers to the documents, wherein each number associated with the external NRO is logically split to a prefix and a body of the external NRO with predefined lengths;define a set of intervals of numbers associate-able with the external NRO, based on possible combination of characters in the prefix of the external NRO;group the set of intervals into subsets of intervals of the external NRO, based on possible combinations of characters in a first part of the prefix of the external NRO;generate an internal NRO corresponding to a subset of the subsets of intervals of the external NRO, wherein each number generated by the internal NRO is logically split to a prefix and a body of the internal NRO with predefined lengths;define a set of intervals of the numbers generate-able by the internal NRO, based on possible combinations of characters in the prefix of the internal NRO;correlate a number associated with the external NRO, within the subset of intervals of the external NRO, with a number generated by the internal NRO, based a value of the prefix of the external NRO and a value of the prefix of the internal NRO; andassign the number associated with the external NRO to a document. |