Writing Free Form Rules

The Free Form rule editor is an advanced feature that requires knowledge of SRL and rule behavior to write rules.

Note: Although all rule text can be entered manually, it is recommended that you use the Free Form editor lists to avoid typing mistakes that will render your rule invalid.
  1. Add a new rule to a ruleset or check out an existing rule, and click the Edit icon on the toolbar if it is not already in edit mode.
  2. Select or retain Free Form Editing in the editing menu.
    Note: The Free Form Editor rule editor is case-sensitive.
  3. Type if and a space.
  4. Press Ctrl-Spacebar to open a list of items which include a data feed, custom UDFs, ScoreRecord, UDVs, and functions.
    All Custom UDFs for the current project begin with the prefix CUSTOM_.
  5. Select an item in the list (data feed name, custom UDF, ScoreRecord, or UDV).
    You can type one or more initial characters to display just those items beginning with that character or characters.
  6. If the item is a data feed, type a period (.) and wait approximately one second for another list to appear or you can press Ctrl-Space.
    You do not have to press Ctrl-Space after typing the period.
  7. Select an item (field name) in the list.
  8. Type a space, and press Ctrl-Space to open a list of operators, such as is greater than or is different from.
  9. Select the appropriate operator.
  10. Add arithmetic symbol operators (such as >=, =, <=) if needed.
  11. When the 'if' condition is complete, use the same techniques to write a "then" statement and (optionally) an "else" statement.
    Note: Nested statements should be used sparingly. There are limits to the number of statements you can nest, and although it might be convenient to nest statements, the trade-off is that deeply nested statements can be more difficult to read, maintain, and extend.
  12. Click the Save icon to save the new rule to the workspace as part of the ruleset.
  13. Click the Check In icon to add the rule (or updated rule) to the repository.
  14. Validate the ruleset according to your organization's needs.
  15. Submit the rule and the ruleset change for approval. Both the rule and the ruleset change must be approved before the rule can be deployed.
  • www.fico.com