12
request *historyservice.GetWorkflowExecutionRawHistoryV2Request,
13
versionHistories *historyspb.VersionHistories,
14
>
) *tokenspb.RawHistoryContinuation {
token.go
15
>
16
>
req := request.Request
17
>
execution := req.Execution
18
>
return &tokenspb.RawHistoryContinuation{
19
>
NamespaceId: req.GetNamespaceId(),
20
>
WorkflowId: execution.GetWorkflowId(),
21
>
RunId: execution.GetRunId(),
22
>
StartEventId: req.GetStartEventId(),
23
>
StartEventVersion: req.GetStartEventVersion(),
24
>
EndEventId: req.GetEndEventId(),
25
>
EndEventVersion: req.GetEndEventVersion(),
26
>
VersionHistories: versionHistories,
27
>
PersistenceToken: nil, // this is the initialized value
28
>
}
29
>
}
30
31
// NOTE: DO NOT MODIFY UNLESS ALSO APPLIED TO ./service/frontend/token_deprecated.go