6492
}
6493
6495
>
common.EmptyEventID, // TODO this field is not used at all
6496
>
initiatedID,
6497
>
cause,
6498
>
namespace.Name(ci.Namespace),
6499
>
namespace.ID(ci.NamespaceId),
6500
>
initiatedEventAttributes.WorkflowId,
6501
>
initiatedEventAttributes.WorkflowType,
6502
>
initiatedEventAttributes.Control, // TODO this field is probably deprecated
6503
>
)
6504
>
if err := ms.ApplyStartChildWorkflowExecutionFailedEvent(event); err != nil {
6505
return nil, err
6506
}
6508
}
6509
6510
func (ms *MutableStateImpl) ApplyStartChildWorkflowExecutionFailedEvent(
6511
event *historypb.HistoryEvent,
6513
>
attributes := event.GetStartChildWorkflowExecutionFailedEventAttributes()
6514
>
initiatedID := attributes.GetInitiatedEventId()
6515
>
6516
>
return ms.DeletePendingChildExecution(initiatedID)
6517
>
}
6518
6519
func (ms *MutableStateImpl) AddChildWorkflowExecutionCompletedEvent(