5354
}
5355
5357
>
common.EmptyEventID, // TODO this field is not used at all
5358
>
initiatedID,
5359
>
targetNamespace,
5360
>
targetNamespaceID,
5361
>
workflowID,
5362
>
runID,
5363
>
control, // TODO this field is probably deprecated
5364
>
cause,
5365
>
)
5366
>
if err := ms.ApplySignalExternalWorkflowExecutionFailedEvent(event); err != nil {
5367
return nil, err
5368
}
5370
}
5371
5372
func (ms *MutableStateImpl) ApplySignalExternalWorkflowExecutionFailedEvent(
5373
event *historypb.HistoryEvent,
5375
>
initiatedID := event.GetSignalExternalWorkflowExecutionFailedEventAttributes().GetInitiatedEventId()
5376
>
5377
>
return ms.DeletePendingSignal(initiatedID)
5378
>
}
5379
5380
func (ms *MutableStateImpl) AddTimerStartedEvent(