1253
1254
// WFT both scheduled and started
1256
>
if workflowTask.BuildId != "" {
1257
// fill out the stamp value of the transient WFT based on MS data
1258
versioningStamp = &commonpb.WorkerVersionStamp{UseVersioning: true, BuildId: workflowTask.BuildId}
1259
}
1260
1262
>
EventId: workflowTask.StartedEventID,
1263
>
EventTime: timestamppb.New(workflowTask.StartedTime),
1264
>
EventType: enumspb.EVENT_TYPE_WORKFLOW_TASK_STARTED,
1265
>
Version: m.ms.currentVersion,
1266
>
Attributes: &historypb.HistoryEvent_WorkflowTaskStartedEventAttributes{
1267
>
WorkflowTaskStartedEventAttributes: &historypb.WorkflowTaskStartedEventAttributes{
1268
>
ScheduledEventId: workflowTask.ScheduledEventID,
1269
>
Identity: identity,
1270
>
RequestId: workflowTask.RequestID,
1271
>
SuggestContinueAsNew: workflowTask.SuggestContinueAsNew,
1272
>
SuggestContinueAsNewReasons: workflowTask.SuggestContinueAsNewReasons,
1273
>
HistorySizeBytes: workflowTask.HistorySizeBytes,
1274
>
WorkerVersion: versioningStamp,
1275
>
1276
>
TargetWorkerDeploymentVersionChanged: m.targetWorkerDeploymentVersionChangedForStartedEvent(),
1277
>
},
1278
>
},
1279
>
}
1280
>
1281
>
return &historyspb.TransientWorkflowTaskInfo{
1282
>
HistorySuffix: []*historypb.HistoryEvent{scheduledEvent, startedEvent},
1283
>
}
1284
}
1285