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 ( ) ) ) ; } }
Populates the workflow output from external payload storage if the external storage path is specified .