Naming conventions
This guide covers the naming convention rules for certain values inside Itential Platform.
Application names
For custom applications, the id in the pronghorn.json file is a combination of the scope and the application name, which also represents the file path for the application within the node_modules directory. For example, a scope of @scope and a name of app-name produces the id @scope/app-name.
The rules for the scope and the application name are:
- Must have a length of at least one character.
- Must not contain any uppercase characters.
- Must start with a lowercase character.
- Can contain a dot (
.). - Can contain a dash (
-). - Can contain an underscore (
_).
Parameter and return value names
Parameter and return values in methods and manual tasks are defined in the pronghorn.json model for an application. Names for these values must follow these rules:
- Must have a length of at least one character, with a maximum length of 255.
- Can contain letters and characters from any Unicode-supported written language (see the note below for the recommended approach).
- Can contain numbers.
- Can contain underscores (
_). - Can contain dashes (
-). - Cannot contain punctuation from any Unicode-supported written language.
- Cannot start with a number or dash.
- Cannot contain other special characters.
- Cannot contain whitespace characters.
It is recommended that parameter and return value names be limited to alphanumeric characters only and not Unicode characters.
Examples
deviceDevicerouter_device_devicedevice2gerät端末
Job variable names
Any job variable names created by an automation designer within Automation Builder must follow the same rules as Parameter and return value names.