private void populateTaskInput ( Task task ) { if ( StringUtils . isNotBlank ( task . getExternalInputPayloadStoragePath ( ) ) ) { WorkflowTaskMetrics . incrementExternalPayloadUsedCount ( task . getTaskDefName ( ) , ExternalPayloadStorage . Operation . READ . name ( ) , ExternalPayloadStorage . PayloadType . TASK_INPUT . name ( ) ) ; task . setInputData ( downloadFromExternalStorage ( ExternalPayloadStorage . PayloadType . TASK_INPUT , task . getExternalInputPayloadStoragePath ( ) ) ) ; task . setExternalInputPayloadStoragePath ( null ) ; } }
Populates the task input from external payload storage if the external storage path is specified .