Syntax Description
The revision number logic must follow this format:
[
{
"customize": "SwitchOnChange",
"name": "revision_number_logic_name",
"title": "revision_number_logic_title",
"primary": {
"changeSequence": "custom_revision_sequence_name"
}
}
]
This table describes each of the parameters:
| Parameter |
Status |
Type or Possible Values |
Description |
customize |
Mandatory |
SwitchOnChange |
The required condition to trigger the revision sequence
switch. Only the SwitchOnChange value is
allowed. |
name |
Mandatory |
String |
The unique identifier of the revision number
logic. This internal name must be in alphanumerical
characters with no space. |
title |
Optional |
String |
The title of the revision number logic, displayed when
you select the revision number logic to apply it to object
types. |
primary |
Mandatory |
- |
Block that defines the revision number logic that applies
to the primary ID of the revision number. |
changeSequence |
Mandatory |
String |
The name of the custom revision sequence
to use after the switch. |
Example
You want to use the following custom revision sequence for the
production phase:
[
{
"name": "twodigits",
"title": "Production",
"mode": "digit",
"padding": {
"char": "0",
"direction": "left",
"tosize": 2
}
}
]Then the revision number logic JSON file
contains:
[
{
"customize": "SwitchOnChange",
"name": "changebased",
"title": "Change Based",
"primary": {
"changeSequence": "twodigits"
}
}
]