32
// concrete EventId is not yet known. The server resolves the RequestId to a real
33
// EventId once the buffer flushes.
34
>
func GenerateRequestIDRefLink(namespace, workflowID, runID, requestID string, eventType enumspb.EventType) *commonpb.Link {
link_util.go
35
>
return &commonpb.Link{
36
>
Variant: &commonpb.Link_WorkflowEvent_{
37
>
WorkflowEvent: &commonpb.Link_WorkflowEvent{
38
>
Namespace: namespace,
39
>
WorkflowId: workflowID,
40
>
RunId: runID,
41
>
Reference: &commonpb.Link_WorkflowEvent_RequestIdRef{
42
>
RequestIdRef: &commonpb.Link_WorkflowEvent_RequestIdReference{
43
>
RequestId: requestID,
44
>
EventType: eventType,
45
>
},
46
>
},
47
>
},
48
>
},
49
>
}
50
>
}