@@ -16,6 +16,7 @@ package model
1616
1717import (
1818 "encoding/json"
19+
1920 "k8s.io/apimachinery/pkg/util/intstr"
2021)
2122
@@ -32,8 +33,6 @@ const (
3233 StateTypeSwitch = "switch"
3334 // StateTypeForEach ...
3435 StateTypeForEach = "foreach"
35- // StateTypeSubflow ...
36- StateTypeSubflow = "subflow"
3736 // StateTypeInject ...
3837 StateTypeInject = "inject"
3938 // StateTypeCallback ...
@@ -187,17 +186,6 @@ type ParallelState struct {
187186 N intstr.IntOrString `json:"n,omitempty"`
188187}
189188
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-
201189// InjectState ...
202190type InjectState struct {
203191 BaseState
@@ -218,8 +206,6 @@ type ForEachState struct {
218206 Max intstr.IntOrString `json:"max,omitempty"`
219207 // Actions to be executed for each of the elements of inputCollection
220208 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"`
223209}
224210
225211// CallbackState ...
0 commit comments