Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To help readability, we have the following options:

Aliases

All to offen persons uses a kind of "not really human readable" language when defining names for classes, methods and variables.Those "not really human readable names" can be mapped to a more meaningful name of classes, methods and variables.

A second point is that persons tends to use its native language for defining names which mostly causes conflicts with the convention of coding in english. It is easier to write down the executable table in your native language and map it with english named classes, methods and variables.

You can use the annotation @Alias to specify additional name-definitions.

 

An example with aliases
rule forcalculator
a numberresult of square?
Code Block
languagejava
public class Calculator {
    @Alias({"a number"})
    public double num;
    
    @Alias({"result of square"})
    public double square(){
        return Math.pow(num, 2);
    }
}

Import tables

Import tables are special tables at the beginning of the document.

...