218
}
219
220
>
event := ms.AddHistoryEvent(enumspb.EVENT_TYPE_NEXUS_OPERATION_SCHEDULED, func(he *historypb.HistoryEvent) {
commands.go
221
>
he.Attributes = &historypb.HistoryEvent_NexusOperationScheduledEventAttributes{
222
>
NexusOperationScheduledEventAttributes: &historypb.NexusOperationScheduledEventAttributes{
223
>
Endpoint: attrs.Endpoint,
224
>
EndpointId: endpointID,
225
>
Service: attrs.Service,
226
>
Operation: attrs.Operation,
227
>
Input: attrs.Input,
228
>
ScheduleToCloseTimeout: attrs.ScheduleToCloseTimeout,
229
>
ScheduleToStartTimeout: attrs.ScheduleToStartTimeout,
230
>
StartToCloseTimeout: attrs.StartToCloseTimeout,
231
>
NexusHeader: lowerCaseHeader,
232
>
RequestId: requestID,
233
>
WorkflowTaskCompletedEventId: workflowTaskCompletedEventID,
234
>
},
235
>
}
236
>
he.UserMetadata = command.UserMetadata
237
>
he.EventGroupMarkers = command.EventGroupMarkers
238
>
})
239
240
>
return nexusoperations.ScheduledEventDefinition{}.Apply(root, event)
commands.go
241
}
242