Skip staging optional inputs that have no value
@@ -417,6 +417,9 @@ public class SimpleOrchestratorImpl extends AbstractOrchestrator{
break;
case URI:
case URI_COLLECTION:
+ if ((processInput.getValue() == null || processInput.getValue() == "") && !processInput.isIsRequired()) {
+ logger.debug("Skipping input data staging task for {} since value is empty and not required", processInput.getName());
+ }
final RegistryService.Client registryClient = getRegistryServiceClient();
try {
TaskModel inputDataStagingTask = getInputDataStagingTask(registryClient, processModel, processInput, gatewayId);
