@@ -16,6 +16,7 @@ package model
16
16
17
17
import (
18
18
"encoding/json"
19
+
19
20
"k8s.io/apimachinery/pkg/util/intstr"
20
21
)
21
22
@@ -32,8 +33,6 @@ const (
32
33
StateTypeSwitch = "switch"
33
34
// StateTypeForEach ...
34
35
StateTypeForEach = "foreach"
35
- // StateTypeSubflow ...
36
- StateTypeSubflow = "subflow"
37
36
// StateTypeInject ...
38
37
StateTypeInject = "inject"
39
38
// StateTypeCallback ...
@@ -187,17 +186,6 @@ type ParallelState struct {
187
186
N intstr.IntOrString `json:"n,omitempty"`
188
187
}
189
188
190
- // SubflowState Defines a sub-workflow to be executed
191
- type SubflowState struct {
192
- BaseState
193
- // Workflow execution must wait for sub-workflow to finish before continuing
194
- WaitForCompletion bool `json:"waitForCompletion,omitempty"`
195
- // Sub-workflow unique id
196
- WorkflowID string `json:"workflowId" validate:"required"`
197
- // SubFlow state repeat exec definition
198
- Repeat Repeat `json:"repeat,omitempty"`
199
- }
200
-
201
189
// InjectState ...
202
190
type InjectState struct {
203
191
BaseState
@@ -218,8 +206,6 @@ type ForEachState struct {
218
206
Max intstr.IntOrString `json:"max,omitempty"`
219
207
// Actions to be executed for each of the elements of inputCollection
220
208
Actions []Action `json:"actions,omitempty"`
221
- // Unique Id of a workflow to be executed for each of the elements of inputCollection
222
- WorkflowID string `json:"workflowId,omitempty"`
223
209
}
224
210
225
211
// CallbackState ...
0 commit comments