5158
}
5159
5161
>
common.EmptyEventID, // TODO this field is not used at all
5162
>
initiatedID,
5163
>
targetNamespace,
5164
>
targetNamespaceID,
5165
>
workflowID,
5166
>
runID,
5167
>
cause,
5168
>
)
5169
>
if err := ms.ApplyRequestCancelExternalWorkflowExecutionFailedEvent(event); err != nil {
5170
return nil, err
5171
}
5173
}
5174
5175
func (ms *MutableStateImpl) ApplyRequestCancelExternalWorkflowExecutionFailedEvent(
5176
event *historypb.HistoryEvent,
5178
>
initiatedID := event.GetRequestCancelExternalWorkflowExecutionFailedEventAttributes().GetInitiatedEventId()
5179
>
5180
>
return ms.DeletePendingRequestCancel(initiatedID)
5181
>
}
5182
5183
func (ms *MutableStateImpl) AddSignalExternalWorkflowExecutionInitiatedEvent(