283
}
284
} else if len(config.initialExecutions) > 0 {
286
>
targetExecutions := make([]*commonpb.Execution, 0, len(config.initialExecutions))
287
>
for _, exec := range config.initialExecutions {
288
>
targetExecutions = append(targetExecutions, &commonpb.Execution{
289
>
Type: enumspb.EXECUTION_TYPE_ACTIVITY,
290
>
BusinessId: exec.GetWorkflowId(),
291
>
RunId: exec.GetRunId(),
292
>
})
293
>
}
294
>
p = &page{
295
>
targetExecutionInfo: targetExecutions,
296
>
nextPageToken: config.initialPageToken,
297
>
pageNumber: hbd.CurrentPage,
298
>
}
299
} else {
300
executionInfos := make([]*workflowpb.WorkflowExecutionInfo, 0, len(config.initialExecutions))