Symbols |
![]() ![]() ![]() |
An MScript symbol may point to different entities depending on how and where it is used. Syntax: [[data-type specifier] [source/target specifier]:]symbol-name data-type specifier The data types of the symbols are expressed with data-type specifiers which take place before ':' character. 'n' : data type is numeric 'b' : data type is boolean
If no data-type specifier is defined for a MScript symbol then its data type is string. Examples: n:Count Numeric symbol b:Retired Boolean symbol Descr String symbol source/target specifier source/target specifiers specify either the source or the target depending on the function the symbol is used.
Examples: @vof(i:Name) @set(f:invalid,'true');
If a source specifier is omitted the MScript engine searches the sources in the following order to find a
If a target specifier is omitted the MScript engine searches the targets in the following order to find a
Data-type specifiers and source/target specifiers can be used together before the ':' character: Examples: ni:Count Numeric Input Field bf:Retired Boolean Process Record Field
Focusing to Process Record Fields and Template Call Parameters From within a child process, it is possible to access to the fields of the outer process records. Each '.' character (except the first one) used before the f: specifier stands for one level outer process record.
Examples: [ID:1, NAME:'Products', DISCOUNT:20] * Two level outer Record [ID:12, CAT:5] * One level outer Record [ID:121, NAME:'A4 Laser Printer'] [ID:122, NAME:'A3 Color Printer'] * Current Process Record
Similarly from within inner process templates it is possible to access to the parameters of the outer template calls. <processTemplate name="T1"> |