code: private void populateWorkflowOutput(Workflow workflow) {
          if (StringUtils.isNotBlank(workflow.getExternalOutputPayloadStoragePath())) {
              WorkflowTaskMetrics.incrementExternalPayloadUsedCount(workflow.getWorkflowName(), ExternalPayloadStorage.Operation.READ.name(), ExternalPayloadStorage.PayloadType.WORKFLOW_OUTPUT.name());
              workflow.setOutput(downloadFromExternalStorage(ExternalPayloadStorage.PayloadType.WORKFLOW_OUTPUT, workflow.getExternalOutputPayloadStoragePath()));
          }
      }
docs: Populates the workflow output from external payload storage if the external storage path is specified.
  
  @param workflow the workflow for which the output is to be populated.