273
}
274
276
>
// for backward compatibility. FirstScheduledTime can be null if mutable state was
277
>
// restored from the version before this field was introduce
278
>
if activityInfo.FirstScheduledTime != nil {
279
timeoutTime = timestamp.TimeValue(activityInfo.FirstScheduledTime).Add(scheduleToCloseDuration)
281
timeoutTime = timestamp.TimeValue(activityInfo.ScheduledTime).Add(scheduleToCloseDuration)
282
}
283
285
>
EventID: activityInfo.ScheduledEventId,
286
>
Timestamp: timeoutTime,
287
>
TimerType: enumspb.TIMEOUT_TYPE_SCHEDULE_TO_CLOSE,
288
>
TimerCreated: (activityInfo.TimerTaskStatus & TimerTaskStatusCreatedScheduleToClose) > 0,
289
>
Attempt: activityInfo.Attempt,
290
>
}
291
}
292