Add 'task-defaults' property to Workflow
It defines some default values for children tasks. Change-Id: I279a0023203f74f071bd57de954cbc751912ff37
This commit is contained in:
parent
1262d528b6
commit
5e541bb05b
13
js/schema.js
13
js/schema.js
@ -93,6 +93,10 @@
|
|||||||
'@type': String,
|
'@type': String,
|
||||||
'@required': false
|
'@required': false
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
'timeout': {
|
||||||
|
'@type': Number,
|
||||||
|
'@required': false
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -156,7 +160,6 @@
|
|||||||
'@type': Array,
|
'@type': Array,
|
||||||
'*': {
|
'*': {
|
||||||
'@type': String,
|
'@type': String,
|
||||||
'@meta': {'name': 'Task'},
|
|
||||||
'@enum': function() {
|
'@enum': function() {
|
||||||
var container = this._container,
|
var container = this._container,
|
||||||
workflow, task;
|
workflow, task;
|
||||||
@ -273,6 +276,14 @@
|
|||||||
'@type': String,
|
'@type': String,
|
||||||
'@required': false
|
'@required': false
|
||||||
},
|
},
|
||||||
|
'task-defaults': {
|
||||||
|
'@type': Object,
|
||||||
|
'@required': false,
|
||||||
|
'on-error': {'@type': String},
|
||||||
|
'on-success': {'@type': String},
|
||||||
|
'on-complete': {'@type': String},
|
||||||
|
'policies': {'@class': types.Mistral.Policy}
|
||||||
|
},
|
||||||
'tasks': {
|
'tasks': {
|
||||||
'@class': types.Mistral.Tasks
|
'@class': types.Mistral.Tasks
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user