I have two 'context level'macros defined in my Rapid Miner process as -
from_date = //some date//
to_date = // some date//
In the Rapid Miner process, I'm using the Execute Program
operator. This operator should accept the two macros (defined earlier). I'm providing the below command in command
field of the parameters
C:\test.bat %{from_date} %{to_date}
test.bat
Windows batch file content -
C:\mongodb\bin\mongoexport --db db1--collection c1 --query "{'logentry.date': { '$lt': {'$date' : ISODate('%1')} , '$gte': {'$date': ISODate('%2') }}}" --out C:\test1.csv --type csv --fields id,name
Execute Program
should perform action defined in the Windows batch-file (i.e. processing should be done and results are to be saved to the 'CSV' mentioned in batch file). But when I use the above command and run the Rapid Miner process, CSV is shown with blank content.
I want to know how we can pass a batch file with context macros as parameters to the command field in 'Execute Program' operator.
From command line, I am able to run the the 'test.bat' file with date parameters - as shown below
c:\MyTests>test.bat 2016-07-28T11:58:59.633069Z 2016-07-19T12:42:00.248412Z
After running the above command successfully, the output is displayed in CSV
Any help is greatly appreciated. Thanks !