2261
// SignalWorkflowExecution is used to send a signal event to running workflow execution. This results in
2262
// a WorkflowExecutionSignaled event recorded in the history and a workflow task being created for the execution.
2263
>
func (wh *WorkflowHandler) SignalWorkflowExecution(ctx context.Context, request *workflowservice.SignalWorkflowExecutionRequest) (_ *workflowservice.SignalWorkflowExecutionResponse, retError error) {
workflow_handler.go
2264
>
defer log.CapturePanic(wh.logger, &retError)
2265
>
2266
>
if request == nil {
2267
return nil, errRequestNotSet
2268
}
2269
2270
>
if err := validateExecution(request.WorkflowExecution); err != nil {
workflow_handler.go
2271
return nil, err
2272
}
2273
2275
return nil, errSignalNameNotSet
2276
}
2277
2279
return nil, errSignalNameTooLong
2280
}
2281
2283
return nil, errRequestIDTooLong
2284
}
2285
2286
>
if err := commonlinks.Validate(request.GetLinks(), wh.config.MaxLinksPerRequest(request.GetNamespace()), wh.config.LinkMaxSize(request.GetNamespace())); err != nil {
workflow_handler.go
2287
>
return nil, err
2288
>
}
2289
2290
namespaceID, err := wh.namespaceRegistry.GetNamespaceID(namespace.Name(request.GetNamespace()))