SourceDerivation

VBA

ide.<ProgrammingLanguage>.SourceDerivation = ...

By default, the functions for generating program code are only offered in LF‑ET if at least one source element is stored in the decision table.

This key defines how LF‑ET automatically derives mis­sing source elements from the decision table du­ring program generation.

This key is usually used together with the ide.Default key.

Source​Derivation = Type1

At present, a first source derivation Type1 has been implemented for VBA:

Entry in an LFET.Project.ini-file:
ide.Java.SourceDerivation = Type1
Entry in an LFET.Project.yaml-file:
ide.VBA:
  Enabled: true

  Source:
    Derivation: Type1
Prolog:
  • Beginning of the method with the name of the decision table

Logical arguments for condition values:
  • in brackets

  • if the condition value symbol starts with a relational operator, such as >, >=, =, <=, <, Like, And, AndAlso, Or, OrElse, Xor, Is or IsNot, then the condition title is compared with the symbol using the relational operator

  • if the symbol does NOT start with any relational operator, the logical expression is formed by combining the condition title, the equality sign (=), and the symbol.

  • if the symbol is an interval, then the condition title is compared with the limits of the interval

Statements for action values:
  • if the action title is filled, then the symbol is assigned to the action title

  • if the action title is NOT filled, then only the symbol is ge­ne­ra­ted, see also key EmptyActionTitlesAllowed

Epilog:
  • End of the method