You are here: Configuration Overview > Configuration Standards > General Structure and Best Practices

General Structure & Best Practices

 

General sequence of the transaction elements should be as follows:

  1. EffectiveDate

  2. Allocations (if applicable)

  3. Suspense

  4. Withholding

  5. Valuation (if applicable)

  6. Fields

  7. Events

  8. MultiFields

  9. Validation

  10. Math  

  11. Assignments (if applicable)

  12. ActivityAmounts (if applicable)

  13. Spawns  

Syntax standards according to the General Structure

  1. EffectiveDate

    The EffectiveDate element should be the first tag in a transaction.

    The EffectiveDate of spawned transactions, when that spawned activity is only ever SYSTEM generated, should be Disabled.Tssdfsadfasdfasdf

  2. Allocation order of elements should be:

  3. Allocations (if applicable)

    Use the OVERRIDABLE attribute to allow users to bypass suspense requirements.

  4. Suspense
  5. Withholding

    When withholding is needed, use the <Withholding> </Withholding> tags instead of creating fields for withholding.

  6. Valuation

    Do not include the <Valuation> tag in a transaction, if valuation is not necessary.

  7. Fields

    1. The order of field tags is:

      <Name>

      <Display>

      <ToolTip>

      <DataType>

      <Query>

      <Calculated>

      <DefaultValue>

      <RoleAssignments>

      <Tag>

      <Disabled>

      <Hidden>

    2. The <DefaultValue> tag and the <Calculated> tag may not be present at the same time. Use one or the other. 

    3. If a field is hidden, do not include a <Disabled> tag.

    4. If a field is not hidden, do not include <Hidden> tag.

    5. If a field is not disabled, do not include <Disabled> tag.

    6. Hidden fields that are independent of other fields should be placed at the end of the <Fields> section.  

      Note: An exception would be when the value of a hidden field is needed in a following field.  

    7. Suggestions for field names are listed below. This applies to MathVariable names as well.

    8. Do not use spaces or underscores.

      Example: DateOfBirth not Date_of_Birth.

    9. Do not abbreviate unless the resulting word is extremely long. In that case, abbreviate but retain the meaning of word.  

      Examples: PolicyAnniversary not PolAnniv. NextMonRemainIssueChg for NextMonthaversaryRemainingIssueCharge.  

    10. Add abbreviated words to the Data Dictionary so that the meaning remains clear.

    11. Field name and display value should be the same if possible.

      Example: <Name>IssueDate</Name>, <Display>Issue Date</Display> not <Display>Date of Issue</Display>

    12. Filler fields should be blank for the display and DataType.

    13. Combo boxes and radio buttons:

  8. Events

  9. Multifields

    1. Casts the parameter as an array of text values.

    2. Throws an error if the object cannot be cast properly.  

  10. Validations

  11. Math

    1. General Math best practices

    2. When defining the TYPE for a math variable use:

    3. XPATHs should always use the fully qualified path.  

      Example: /Valuation/Policy/FundList/Fund[FundGUID='$$$LoanCreditFundGUID1$$$']/CashValue not //FundList/Fund[FundGUID=’$$$LoanCreditFundGUID1$$$’]/CashValue

    4. When using TYPE=”FUNCTION”, do not use double quotes around the fields.

    5. Quotes aren’t needed if a MathIF is used when comparing numbers.

      Example: ActiveSegmentCode=01 

    6. The use of Blank is not needed when blank is a previously defined field. Instead use two single quotes.

    7. Use Data Dictionary defined field names for consistency across products.

    8. Don’t define math variables that aren’t used anywhere.

    9. Use Valuation:Policy to retrieve values from valuation when possible.

      When trying to retrieve CashValue from PolicyValues use TYPE=”FIELD” Valuation:Policy:CashValue.

    10. Capitalize the words AND and OR when writing SQL. Use sentence case And and Or when configuring anything other then SQL statements. 

    11. A math variable should define its VARIABLENAME and TYPE attributes prior to any other attribute.

      Example: <MathVariable VARIABLENAME=”Example” TYPE=”SQL” DEFAULT =”01”>

    12. Only use ROUND when there is a reason.

    13. Consolidate logic into a single math variable where appropriate.

      Example: Where an intermediate calculation value is not needed, don’t break the calculation into many steps.

    14. Suggestions for when to use MathIF versus TYPE="IIF":

      Use MathIF when the value(s) of one or more math variables is conditional. That is; if the condition is not met, the math variables do not need to be defined.   

      MathIF also helps avoid multiple IIF’s when the desired result is one value.  

      Use IIF if this specific math variable always needs to be evaluated but the resulting value is conditional between two values.

  12. Assignments (if applicable)
  13. ActivityAmounts (if applicable)
  14. Spawns
    1. Pass spawn fields in the same sequence as configured in the transaction that is being spawned.

    2. Any GUID fields passed as spawn fields should be disabled in the spawned transaction.

    3. Spawned transactions should use SPAWNCODE=”01” when the spawned transaction is effective on the same day as the spawning transaction.  

    4. See AsCode for other spawn code values.

    5. DataTypes in spawn fields must match data types in receiving fields.

Copyright © 2009, 2011, Oracle and/or its affiliates. All rights reserved. Legal Notices