func (w *Workflow) Parent(selector []int) *WorkflowStep {
	var parent *WorkflowStep
	var step *WorkflowStep

	for _, segment := range selector {
		if step == nil {
			step = &w.Spec.Steps[segment]
		} else {
			parent = step
			step = &step.Compound.Steps[segment]
		}
	}

	return parent
}
// Parent Get parent step of specified step
Parent Get parent step of specified step
// Parent Get parent step of specified step
func (w *Workflow) Parent(selector []int) *WorkflowStep {
	var parent *WorkflowStep
	var step *WorkflowStep
	for _, segment := range selector {
		if step == nil {
			step = &w.Spec.Steps[segment]
		} else {
			parent = step
			step = &step.Compound.Steps[segment]
		}
	}
	return parent
}
func ( w * Workflow ) Parent ( selector [ ] int ) * WorkflowStep { var parent * WorkflowStep var step * WorkflowStep for _ , segment := range selector { if step == nil { step = & w . Spec . Steps [ segment ] } else { parent = step step = & step . Compound . Steps [ segment ] } } return parent }
Parent Get parent step of specified step
Parent Get parent step of specified step