Hostproc Filter
Overview
The purpose of HostprocFilter.exe
is to pre-process SpartanNash GR HOSTPROC feed files so that they only contain a configurable set of commodities.
It works like this:
- HOSTPROC configuration changed to look for new files in `D:\SmartGrocer\Hostproc\Filtered
- HostprocFilter looks for new files in
D:\SmartGrocer\Hostproc
- New files found are stripped of any data for commodities not found in config file
KeepSuppliers
setting - Filtered files are re-zipped and placed into
D:\SmartGrocer\Hostproc\Filtered
- New files found are stripped of any data for commodities not found in config file
- HOSTPROC processed the filtered files containing only the desired commodities
Installation
- Create new directories
D:\SmartGrocer\Hostproc\Original
D:\SmartGrocer\Hostproc\Filtered
- Modify HOSTPROC registry entries
- [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\SmartGrocer\LegacyApps\hostproc]
- Change
IncomingDir
toD:\SmartGrocer\Hostproc\Filtered
- Change
- [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\SmartGrocer\LegacyApps\hostproc]
- Create
HostprocFilter.exe.config
- Set
KeepSuppliers
to a comma-delimited list of commodities to be kept in the file.
- Set
- Change SmartGrocer scheduled task for HOSTPROC to execute HostprocFilter.exe instead
- If HostprocFilter processes any file, it will execute
CTS_Hostproc.exe
automatically
- If HostprocFilter processes any file, it will execute
Configuration
Filename
C:\Program Files (x86)\SmartGrocer[HQ]\HostprocFilter.exe.config
Example Content
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings file="global.config">
<add key="HostprocDir" value="D:\SmartGrocer\Hostproc"/>
<add key="OriginalDir" value="D:\SmartGrocer\Hostproc\Original"/>
<add key="FilteredDir" value="D:\SmartGrocer\Hostproc\Filtered"/>
<add key="KeepSuppliers" value="2,7"/>
</appSettings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
</startup>
</configuration>