/
IWorkflowDefinition.ts
127 lines (110 loc) · 2.87 KB
/
IWorkflowDefinition.ts
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
/*
* This program and the accompanying materials are made available under the terms of the
* Eclipse Public License v2.0 which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-v20.html
*
* SPDX-License-Identifier: EPL-2.0
*
* Copyright Contributors to the Zowe Project.
*
*/
// get workflow definition object (table 2 wf definition request)
import { IStepDefinition } from "./IStepDefinition";
import { IVariableDefinition } from "./IVariableDefinition";
/**
* Interface for z/OSMF API response.
* @export
* @interface IWorkflowDefinition
*/
export interface IWorkflowDefinition {
/**
* Identifies workflow default name.
* @type {string}
* @memberof IWorkflowDefinition
*/
workflowDefaultName: string;
/**
* Description of workflow.
* @type {string}
* @memberof IWorkflowDefinition
*/
workflowDescription: string;
/**
* Short ID that identifies the workflow.
* @type {string}
* @memberof IWorkflowDefinition
*/
workflowID: string;
/**
* Version of the workflow definition file.
* @type {string}
* @memberof IWorkflowDefinition
*/
workflowVersion: string;
/**
* 128bit hash associated with definition file.
* @type {string}
* @memberof IWorkflowDefinition
*/
workflowDefinitionFileMD5Value: string;
/**
* Name of the vendor.
* @type {string}
* @memberof IWorkflowDefinition
*/
vendor: string;
/**
* Indicates if workflow can be called by other workflow.
* @type {boolean}
* @memberof IWorkflowDefinition
*/
isCallable: boolean;
/**
* Indicates if workflow steps can run in parallel.
* @type {boolean}
* @memberof IWorkflowDefinition
*/
containsParallelSteps?: boolean;
/**
* Restrict a workflow to one instance only.
* @type {string}
* @memberof IWorkflowDefinition
*/
scope: string;
/**
* Category of workflow.
* @type {string}
* @memberof IWorkflowDefinition
*/
category: string;
/**
* Identifier of product configured via workflow.
* @type {string}
* @memberof IWorkflowDefinition
*/
productID: string;
/**
* Name of the product configured via workflow.
* @type {string}
* @memberof IWorkflowDefinition
*/
productName: string;
/**
* Version of the product configured via workflow.
* @type {string}
* @memberof IWorkflowDefinition
*/
productVersion: string;
/**
* Aray of one or more step-definition objects.
* @type {IStepDefinition[]}
* @memberof IWorkflowDefinition
*/
steps?: IStepDefinition[];
/**
* Aray of one or more variable-definition objects.
* @type {IVariableDefinition[]}
* @memberof IWorkflowDefinition
*/
variables?: IVariableDefinition[];
}