I am trying to create a data download service in FME Server 2016 (single engine), but have run into some problems.
I have a master workspace that is created as a Data Download Service in FME Server.
The master workspace is structured as follows:
The data order is chopped into sub-orders and passed into an FMEServerJobSubmitter. The workspace called by the FMEServerJobSubmitter stores the exported data into a folder (the folder name is specified as a parameter in the FMEServerJobSubmitter). When all the sub-orders are completed, a FeatureWriter (FileCopy) moves the folder and its contents into the FME_SERVER_DEST_DIR, and the data is then zipped and shipped.
Most of the writers in the sub-workspace have fanout, and this is where my problems begin:
- The writers that only have fanout on the feature type level work fine. For instance, a shapefile writer that simply produces shapefiles with different names works perfectly.
- The writers that have fanout on the dataset level produce junk files. For instance, for AutoCAD, this should produce something like:
What baffles me is that this unwanted behavour only occurs when the sub-workspace is called from the master workspace. I can run the uploaded sub-workspace in FME Server and get a nice, fanned-out result. But the instance it is called from the master workspace, the end product is a junk file.
Any ideas what I am doing wrong or how to solve this? Is there some trick I do not know about when calling sub-jobs within FME Server?
Is there any other way I can set up my Data Download Service? Should I define my sub-workspace as something other than a Job Submitter Service?