/
Schema.groovy
66 lines (61 loc) · 3.18 KB
/
Schema.groovy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
Schema('SimpleElectonicSignature', 0) {
struct(name: 'SimpleElectonicSignature', documentation: "Minimum form to provide electronic signature") {
field(name:'AgentName', type: 'string')
field(name:'Password', type: 'string') { dynamicForms(inputType: 'password') }
struct(name: 'ExecutionContext', documentation: "The context of Item and Actitiy of the Electronic Signature", multiplicity: '1..1') {
field(name:'ItemPath', type: 'string') { dynamicForms(hidden: true) }
field(name:'SchemaName', type: 'string') { dynamicForms(hidden: true) }
field(name:'SchemaVersion',type: 'string') { dynamicForms(hidden: true) }
field(name:'ActivityType', type: 'string') { dynamicForms(hidden: true) }
field(name:'ActivityName', type: 'string') { dynamicForms(hidden: true) }
field(name:'StepPath', type: 'string') { dynamicForms(hidden: true) }
}
}
}
Schema('SystemProperties', 0) {
struct(name: 'SystemProperties', useSequence: true, documentation: 'blabla') {
field(name: 'ProcessName', type: 'string') {
dynamicForms(disabled: true)
}
struct(name:'Property', multiplicity: '0..*') {
field(name: 'Name', type: 'string') {
dynamicForms(disabled: true)
}
field(name: 'Module', type: 'string', multiplicity: '0..1', documentation: 'The module in which the System Property was defined') {
dynamicForms(disabled: true)
}
field(name: 'ReadOnly', type: 'boolean', multiplicity: '0..1', documentation: 'Specify if the Property can be dynamically overridden') {
dynamicForms(disabled: true)
}
field(name: 'Description', type: 'string', multiplicity: '0..1') {
dynamicForms(disabled: true)
}
field(name: 'SetInConfigFiles', type: 'boolean', documentation: 'Indicates if the value was set in config files') {
dynamicForms(disabled: true)
}
field(name: 'Value', type: 'string')
}
}
}
def level = ['OFF', 'ERROR', 'WARN', 'INFO', 'DEBUG', 'TRACE', 'ALL']
Schema('LoggerConfig', 0) {
struct(name: 'LoggerConfig', useSequence: true) {
field(name:'Root', type: 'string', values: level, multiplicity: '0..1')
struct(name: 'Logger', multiplicity: '0..*', useSequence: true) {
field(name:'Name', type: 'string')
field(name:'Level', type: 'string', values: level)
}
}
}
Schema('ModuleChanges', 0) {
struct(name: 'ModuleChanges', useSequence: true) {
struct(name: 'ResourceChangeDetails', useSequence: true, multiplicity: '0..*') {
field(name:'ResourceName', type: 'string')
field(name:'ResourceVersion', type: 'string')
struct(name: 'ResourceChange', useSequence: true, multiplicity: '0..*') {
field(name:'SchemaName', type: 'string')
field(name:'ChangeType', type: 'string', values: ['IDENTICAL', 'NEW', 'UPDATED', 'OVERWRITTEN', 'SKIPPED', 'REMOVED'])
}
}
}
}