386
identity string,
387
links []*commonpb.Link,
389
>
event := b.createHistoryEvent(enumspb.EVENT_TYPE_WORKFLOW_EXECUTION_TERMINATED, b.timeSource.Now())
390
>
event.Attributes = &historypb.HistoryEvent_WorkflowExecutionTerminatedEventAttributes{
391
>
WorkflowExecutionTerminatedEventAttributes: &historypb.WorkflowExecutionTerminatedEventAttributes{
392
>
Reason: reason,
393
>
Details: details,
394
>
Identity: identity,
395
>
},
396
>
}
397
>
event.Links = links
398
>
return event
399
>
}
400
401
func (b *EventFactory) CreateWorkflowExecutionOptionsUpdatedEvent(