When you configure a FileInput or FileOutput node, you must set the directory from which you want to read or write files. In the nodes you can set an absolute path or a relative path. If you set a relative path, you must set the directory root for the integration node. You can set the directory root by setting the environment variable MQSI_FILENODES_ROOT_DIRECTORY.
The root directory in this sample is:
Note: You can choose a different root directory and set the environment variable MQSI_FILENODES_ROOT_DIRECTORY to this directory instead.
In the FileWildcardMatchSampleFlow message flow that is used in the sample, the FileInput and FileOutput nodes have different relative paths set.
In the FILE_WILDCARD_IN FileInput node, the Input Directory property is set to the to_hursley relative path.
In the FILE_WILDCARD_OUT FileOutput node, the Directory property is set to wrongdir relative path. The FILE_WILDCARD_OUT node uses the value set in $LocalEnvironment/Destination/File/Directory, which overrides the Directory property. The value of $LocalEnvironment/Destination/File/Directory is set to hursley in the FILE_WILDCARD_COMPUTE Compute node. The output relative path is therefore set to hursley
To set up the WildcardMatch sample:
SET MQSI_FILENODES_ROOT_DIRECTORY=c:\MQSIFileInput
export MQSI_FILENODES_ROOT_DIRECTORY="/tmp/MQSIFileInput"