// NextUnhandled Get the next unhandled change in workflow
NextUnhandled Get the next unhandled change in workflow
// NextUnhandled Get the next unhandled change in workflow
func (w *Workflow) NextUnhandled() *Change {
	for i := len(w.Spec.State.Changes) - 1; i >= 0; i-- {
		c := &w.Spec.State.Changes[i]
		if !c.Handled {
			return c
		}
	}
	return nil
}
func ( w * Workflow ) NextUnhandled ( ) * Change { for i := len ( w . Spec . State . Changes ) - 1 ; i >= 0 ; i -- { c := & w . Spec . State . Changes [ i ] if ! c . Handled { return c } } return nil }
NextUnhandled Get the next unhandled change in workflow
NextUnhandled Get the next unhandled change in workflow