Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
data_design_ide [2021/02/10 02:00]
admin [EXECUTE]
data_design_ide [2021/02/12 15:28]
admin [DEFINE]
Line 23: Line 23:
   * //Variable Name// - variables must have unique names and preferably legal java variable names   * //Variable Name// - variables must have unique names and preferably legal java variable names
   * //Data Type// - appropriate data type must be selected especially if the variables are referenced by //Derived// variables   * //Data Type// - appropriate data type must be selected especially if the variables are referenced by //Derived// variables
-  * //Domain Values// - a list of discrete values to be used to generate (populate) [[#DataTable]] or groovy/java expression if //Derived// is checked+  * //Domain Values// - a list of discrete values to be used to generate (populate) [[#GENERATE]] or groovy/java expression if //Derived// is checked
   * //Derived// - check this box if the value of the variable depends on values of other variables.  Derived variable usually have static value or expression that evaluates to a value specified in //Domain// attribute.   * //Derived// - check this box if the value of the variable depends on values of other variables.  Derived variable usually have static value or expression that evaluates to a value specified in //Domain// attribute.
   * //Coupling// - used to couple / tie this variable to another variable. For example CreditCardType and CreditCardNumber should be coupled together as CreditCardNumber for VISA must match CreditCardType of VISA. Variables coupled together must have the same number of //Domain// values.   * //Coupling// - used to couple / tie this variable to another variable. For example CreditCardType and CreditCardNumber should be coupled together as CreditCardNumber for VISA must match CreditCardType of VISA. Variables coupled together must have the same number of //Domain// values.
Line 32: Line 32:
 For //Derived// variables, //Domain// must have exactly one value, which can be static value or //groovy// expression. Below is a simple example to calculate the insurance premium credit of $100 given to good student age < 20: For //Derived// variables, //Domain// must have exactly one value, which can be static value or //groovy// expression. Below is a simple example to calculate the insurance premium credit of $100 given to good student age < 20:
  
-   (Age < 20 && GoodStudentStatus = true)?100:0+   (Age < 20 && GoodStudentStatus)?100:0
        
 You may use plugin reference in //Domain// value/expression which will be evaluated during  [[#EXECUTE ]]. For example: You may use plugin reference in //Domain// value/expression which will be evaluated during  [[#EXECUTE ]]. For example:
Line 44: Line 44:
  
 where order1Obj is a groovy/java object that is defined/created in //DATA// [[#SCRIPT]]. where order1Obj is a groovy/java object that is defined/created in //DATA// [[#SCRIPT]].
 +
 +Use [blank] to encode blank string and [null] for null string/object.
  
 === Constraints / Rules === === Constraints / Rules ===
Line 56: Line 58:
  
        
-The //condition// and //assertion// are simple boolean expressions:+The //condition// and //assertion// are simple boolean expressions (NOTE: this is not //groovy expression//):
    [variable name] [operator] [value or [variable name] [&& or ||] ...     [variable name] [operator] [value or [variable name] [&& or ||] ... 
  
Line 113: Line 115:
  
 {{wiki:idescreen:datadesign_generate_mixedstrength.png?200}} {{wiki:idescreen:datadesign_generate_mixedstrength.png?200}}
 +
 +After selecting //Mixed// strength, section //Variable Interaction (Mixed Overall Strength only)// appears.  Click on "+" to add a  custom interaction/strength set, select the desired strength/algorithm and select the variables respectively.
 +
  
 ---- ----