206
}
207
208
>
_, err := addAndApplyHistoryEvent[ScheduledEventDefinition](wf, ctx, func(he *historypb.HistoryEvent) {
nexus_commands.go
209
>
he.Attributes = &historypb.HistoryEvent_NexusOperationScheduledEventAttributes{
210
>
NexusOperationScheduledEventAttributes: &historypb.NexusOperationScheduledEventAttributes{
211
>
Endpoint: attrs.Endpoint,
212
>
EndpointId: endpointID,
213
>
Service: attrs.Service,
214
>
Operation: attrs.Operation,
215
>
Input: attrs.Input,
216
>
ScheduleToCloseTimeout: attrs.ScheduleToCloseTimeout,
217
>
ScheduleToStartTimeout: attrs.ScheduleToStartTimeout,
218
>
StartToCloseTimeout: attrs.StartToCloseTimeout,
219
>
NexusHeader: lowerCaseHeader,
220
>
RequestId: requestID,
221
>
WorkflowTaskCompletedEventId: opts.WorkflowTaskCompletedEventID,
222
>
},
223
>
}
224
>
he.UserMetadata = cmd.UserMetadata
225
>
})
226
>
return err
227
}
228