Minimize Insertable Substitution Strings

To minimize the Insertable substitution strings use the –I command line option of the ReElDor utility. It walks through the specified model, and analyses each insertable and the methods that inserts the insertable, and updates the insertable substitution strings based on some of the following rules:

  1. Remove all the substitution strings that are exactly same in every Insert statement.

    Example

    // Before Refactor Insert statements
    Insert IGLG (_DA1 = ABC.DA1 & _DA2 = ABC.DA2)
    Insert IGLG (_DA1 = ABC.DA1 & _DA2 = XYZ.DA2)
    // Before Refactor Insertable IGLG logic
    Move "X" _DA1
    Move "Y" _DA2
    
    // After Refactor Insert statements
    Insert IGLG (_DA2 = ABC.DA2)
    Insert IGLG (_DA2 = XYZ.DA2)
    // After Refactor Insertable IGLG logic
    Move "X" ABC.DA1
    Move "Y" _DA2
  2. Remove common qualifiers from qualified names in substitution strings.

    Example

    //// Before Refactor Insert statements
    Insert IGLG (_DA1 = GRPA.GRPB.DA1 & _DA2 = GRPA.GRPB.DA2 & _DA3 = GRPA.GRPB.DA3)
    Insert IGLG (_DA1 = GRPX.GRPY.DA1 & _DA2 = GRPX.GRPY.DA2 & _DA3 = GRPX.GRPY.DA3)
    // Before Refactor Insertable IGLG logic
       Move 1 _DA1
       Move 2 _DA2
       Move 3 _DA3
       // After Refactor Insert statements
       Insert IGLG (_PARAM1 = GRPA.GRPB)
       Insert IGLG (_PARAM1 = GRPX.GRPY)
       // After Refactor Insertable IGLG logic
       Move 1 _PARAM1.DA1
       Move 2 _PARAM1.DA2
       Move 3 _PARAM1.DA3