Lesson Summary

This lesson will include detailed steps in the process of changing or modifying Attribute Generators for the GrantHistory Domain.


Lesson Steps

Step 1 - Modify the GrantHistory Domain

  • On the Project Dashboard, go to the Domains panel and click on the 'GrantHistory' Domain link.


Step 2 - Go to the creditCard Attribute

  • Click the Remove Generator button in the generator form on the left side OR click the delete Generator icon in the Linked Generators table 
  • Click the Yes button in the Delete Attribute Generator Dialog 
  • Wait for the Add Generator Dialog to pop up
  • Enter, randomc, in the dialog Filter input field, in the top right of the dialog 
  • Click the + icon to select the RandomCreditCardGen Generator


  • Change the cardName parameter to masterCard
  • Change the cardPrefix parameter to 51
  • Click the Save Generator button


Step 3 - Go to the cardType Attribute

  • The CreditCardNameGen.reference parameter needs to reference a creditCard.
  • Click on the 'cardType' Attribute
  • Double click in the textfield of the 'reference' parameter


  • Click the creditCard link or the + icon to reference the creditCard Attribute.


  • Click Save
  • The reference parameter will reference the credit card with the reference syntax - #{GrantHistory.creditCard}
  • You should now have the following result


Step 4 - Go to the status Attribute

  • Click the Remove Generator button in the generator form 
  • Click the Yes button in the Delete Attribute Generator Dialog 
  • Wait for the Add Generator Dialog to pop up
  • Enter, multiweight, in the dialog Filter input field, in the top right of the dialog 
  • Click the + icon to select the MultiWeightGen Generator
  • Click the video icon to learn about the MultiWeightGen Generator (Optional)
  • Enter the following three values into the valueList input field and for each one press the return key or the "+ Add" button on the right to add it to the list
    • Pending
    • Accepted
    • Denied
  • Enter the following three values into the percentList input field
    • 15
    • 80
    • 5


Step 5 - Go to the grantDate Attribute

  • Open the Generator replacement dropdown


  • Enter, flex, in the filter input field 
  • Select the FlexibleDateRangeGen
  • Click the Replace button


  • Change the startDate parameter to 2017-01-01
  • Change the endRange parameter to 900
  • Change the nextBy parameter to Day
  • Click the Save button


Step 6 - Go to the grantAmount Attribute

  • Click the Remove Generator button on the Generator parameters form
  • Click the Yes button in the Delete Attribute Generator Dialog 
  • Wait for the Add Generator Dialog to pop up
  • Enter, listgen, in the dialog Filter input field, in the top right of the dialog 
  • Click the + icon to select the ListGen Generator
  • Click the video icon to learn about the ListGen Generator (Optional)
  • Change the random parameter to True
  • Enter the following five values into the list input field
    • 1000
    • 2500
    • 5000
    • 10000
    • 25000


Step 7 - Go to the firstName Attribute

  • Change the nameType parameter to firstName
  • Change the sortOrder parameter to random
  • Click the Save Generator button



Step 8 - Go to the lastName Attribute

  • Change the sortOrder parameter to random
  • Click the Save Generator button


Step 9 - Change the granterId Attribute's Generator

  • Click the Remove Generator button on the Generator parameters form
  • Click the Yes button in the Delete Attribute Generator Dialog 
  • Wait for the Add Generator Dialog to pop up
  • In the filter input field enter, uuid
  • Click the UUIDGen or its + icon


  • You should see the following Generator Parameter form.


Step 10 - Preview the GrantHistory Domain output

  • Click on the GrantHistory bread crumb


  • You should see a preview of the GrantHistory Domain output similar to the following:


Move onto the next lesson >