Calls a function written in Basic, using function calls to System Architect that are included in what is referred to as SA Basic.
The component scripts are used for ListOf and ExpressionOf lists. The action taken by the script works against each item in the list. For example, the syntax COMPONENT_SCRIPT fmtomtattr returns all attributes and their corresponding C- storage types, separated by a colon (:).
By convention, the function itself is named with one of the following prefixes:
fmtxxx
The function itself is in hard code and cannot be modified. Most functions in SAPROPS.CFG are this way. Hard-coding the function makes System Architect’s response faster.
_fmtxxx
Exists in the fmtscript.bas file in System Architect’s main executable directory.
To create your own script, see the SCRIPT keyword.
Explanation of existing scripts
fmtUMLAttr returns all attributes and their corresponding types, separated by a colon.
fmtOMTOperation returns all operations and their corresponding C-storage types, enclosed in parentheses (type).
FmtOMTObjInstAttr returns all attributes for the class that an object instantiates.
FmtOMTActivity returns the script do: and the name of the activity for all activities listed in a state definition.
FmtOMTStateActions returns the name of the internal action for all internal actions listed in a state definition.