The prepare wrapper application needs access to variables defined in PDSStorageConstants because it needs access to the shared storage to upload remote data.
Wanted
PDSExecutionCallable should put the PDS_STORAGE variables as environment variables to the process builder, but only when PREPARE is the Scantype
Solution
Implement a component that only hosts the PDS_STORAGE variables and has a function createStorageMap to create a map of all PDS_STORAGE variables. The PDSExecutionEnvironmentService should autowire the component and call the createStorageMap function and add the PDS_STORAGE variables to the return map, when the ScanType is PREPARE.
Situaton
The prepare wrapper application needs access to variables defined in
PDSStorageConstants
because it needs access to the shared storage to upload remote data.Wanted
PDSExecutionCallable
should put the PDS_STORAGE variables as environment variables to the process builder, but only when PREPARE is the ScantypeSolution
Implement a component that only hosts the PDS_STORAGE variables and has a function
createStorageMap
to create a map of all PDS_STORAGE variables. ThePDSExecutionEnvironmentService
should autowire the component and call thecreateStorageMap
function and add the PDS_STORAGE variables to the return map, when the ScanType is PREPARE.