License Renewal

From LeonWiki!

Jump to: navigation, search

License Renewal Original Algorithm

The algorithm to process the renewal inputs is as follows

  1. From doTask: Gather each record and place in a list
  2. Call compileCompany and create a list that looks like this:
    • [companyName, [complete company input record]] (called nlist)
    • then generate a list of each company name (called uniqueList)
  3. Invoke the type of task (email/text)
  4. Task instance takes each unique company name in for loop and calls getCompanyGroup, sending nlist and the company name
  5. getCompanyGroup goes through each item in nlist and performs these tests
    • tests if the company name passed in matches the company name in nlist
    • tests if the company product matches a product from the list of products
    • tests if the serial number of the company product is not on the exclude list
    • if all tests are true, the record is added to the company group data structure
  6. It then returns the company group which are all the records of one company that contain the products in the product list (nlist item so the structure is [company name, [complete company record]]
  7. If this is an email/text generation createEmail/generateTextFile is called
  8. createEmail and generateTestFile then
    • call retrieveEmailAddress sending in the company name
    • checks to see if this company is a manual email
    • it next generates admin heading
    • then it calls generateBody
    • generateBody calls generateProductListing which organizes network core products and standard products into separate lists
    • finally generates the email or text file
  9. Handle Network Products
    • In gatherData -- determine if there is a core record

License Renewal Modifications

RenewalSoft Help Pages

Personal tools
Alchemy Software, Inc.
Alchemy Software Website