I am currently using mlExportToFile to export JSON documents to a single file. I would like to pass a parameter value from my shell script to the transform module. By default, the transform module function (as created by gradle mlCreateTransform -PtransformName=CustomerTransform -PtransformType=sjs) takes 3 variables as inputs - context, params, and content. However, when defining params, as seen in the script below, the value is not being sent to the transform function.
querydate=$(<DeltaTimestamp.txt)
querydate1="${querydate}.000000Z"
gradle mlExportToFile -PexportPath=/tgtfiles/my_file.json -Ptransform=CustomerTransform -PwhereUrisQuery='cts.andQuery([cts.collectionQuery("latest"),cts.collectionQuery("customer")])' -Pparams='{"querydate1":"'"$querydate1"'"}'