Symbols, Variables & Constants
Data can have multiple shapes in metamorphOS. Every unit of data, called Symbol, has a certain type that defines this.
| Type | Description | Additional Specifications |
|---|---|---|
| Text | Any kind of text, like name or e-mail but also formatted text. | Text, RichText, Regex |
| Number | Allows to take in numbers and also specify the unit. | Unit |
| Date | Specify a certain day. | |
| File | Any kind of file up to 100MB | |
| Boolean | True or False, Yes or No | |
| User | A user of the current workspace. | |
| Authority | Stands for a role or permission a user can have. Used for authorization. | |
| Organization | An entity that a collection of user can be part of. Used for authorization. | |
| Group | A smaller entity or team a user can be part of. Used for authorization. | |
| Program | The code behind a process. Required for creating and updating processes. | |
| Process | This is reference to a process that exists in the system. | |
| Controller | The code for the functional component that Actions emerge from. Allows to create new Actions. | |
| Object | Generic kind of data object. | |
| Array | Generic kind of list. Is used in “Select from” Symbols or can be looped over with the “Iterate” controller. | Symbol Type of the Array |
Mutability: Variable vs Constant
Some data in a process might not change over the course of it’s execution and have a value assigned even before the process starts. They are called “Constants”. Those who do change or are not specified from the beginning are called “Variables”.
Constants are directly defined during symbol creation.
Scope: Global vs Local
As steps require configuration, certain functional data is created that is not relevant for the business logic itself. To not clutter the data space and make it hard to lookup important information, such information is “Local” to a step, whereas the business relevant is called “Global”.
Add Data Dialog
This is the standard dialog used when defining a symbol. It can be opened from:
The dialog changes depending on the type of symbol being defined.
the Create button will enable once all required fields for the particular type and configuration
Add Data (Standard)
.14b2c624.png)
The standard Add Data dialog starts configured to create a constant.
Add new Parameter
.c48cfa5f.png)