451
acceptedEventID int64,
452
updResp *updatepb.Response,
454
>
event := b.createHistoryEvent(enumspb.EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_COMPLETED, b.timeSource.Now())
455
>
event.Attributes = &historypb.HistoryEvent_WorkflowExecutionUpdateCompletedEventAttributes{
456
>
WorkflowExecutionUpdateCompletedEventAttributes: &historypb.WorkflowExecutionUpdateCompletedEventAttributes{
457
>
AcceptedEventId: acceptedEventID,
458
>
Meta: updResp.GetMeta(),
459
>
Outcome: updResp.GetOutcome(),
460
>
},
461
>
}
462
>
return event
463
>
}
464
465
func (b *EventFactory) CreateWorkflowExecutionUpdateAdmittedEvent(request *updatepb.Request, origin enumspb.UpdateAdmittedEventOrigin) *historypb.HistoryEvent {