I have a chain of WorkspaceRunners that I need to bring to FMEServer, but it should still be possible to run them in Workbench as well. So, I created a TestFilter where '$FME_JOB_ID' NOT has a value. If it does not have a value, a WorkspaceRunner is triggered. It fails with the message:
Undefined macro `FME_JOB_ID' dereferenced in file `ReferencedWorkspace.fmw'
An error occurred during the batch file execution, 1 translation failed. The following error message was raised:
#2 : Undefined macro `FME_JOB_ID' dereferenced in file `ReferencedWorkspace.fmw'
The parameterFetcher in the 'ReferencedWorkspace.fmw' causes this error.
The Workaround I made was to put a value 'N/A' in the 'FME_JOB_ID' of the ReferencedWorkspace (which also contains a TestFilter but with '$FME_JOB_ID' NOT has a value or = 'N/A').
So two questions:
- why do I get the Error message in the first place? The Main procedure does not require the 'N/A' value for the FME_JOB_ID. It seems that the WorkspaceRunner does not resolve the FME Server Parameters.
- Is there a better method split the WorkspaceRunner and the FMEServerJobSubmitter?