PreferenceDefinition

PreferenceDefinition
PreferenceDefinition

The Preference Definition is immutable.

JSON Example
{
    "id": "string",
    "name": "string",
    "description": "string",
    "classifier": "string",
    "dataType": "string",
    "constrained": false,
    "minValue": "number",
    "maxValue": "number",
    "defaultValue": "string",
    "allowedValues": [
        "string"
    ]
}
string
id
Optional

UUID for preference definition. This is immutable.

string
name
Required

Display name.

string
description
Optional

Description for user preference

string
classifier
Required

unique indetifier for this preference definition. It should be of type : . e.g vrops:myworkflow. This is immutable.

string
dataType
Required

user preference value data type. This is immutable.

Possible values are : BOOLEAN, INTEGER, STRING,
boolean
constrained
Required

true if user preference is selected from list of values (dataType should be number or string), false otherwise. This is immutable.

number
minValue
Optional

minimum value for user preference. Only valid if user preference type is number. This is immutable.

number
maxValue
Optional

maximum value for user preference. Only valid if user preference type is number. This is immutable.

string
defaultValue
Required

defaultValue

array of string
allowedValues
Optional

array of allowed values to select from when constrained is true.. This is immutable after creation.

Availability
Added in 32.0