Skip to main content
Question

configure workspace location for workspacerunner


Forum|alt.badge.img

So far my workflow was the following:

Open FME, run a workspace 'A' including a workspacerunner calling workspace B. Workspace B is in the same location as workspace A, and in the WorkspaceRunner I'm calling 'B.fmw', without a path. It is importent that B is found in the same location as a without, so that the project can be distributed to other computers.

Now I'm trying to call workspace A from the command line. But now the workspace runner does not work, workspace B is not found anymore. If I write the complete path in the workspace runner it works. But this is not an option for me.

In the log files one difference is that the 'Current working folder' originally was my workspace location. Using the command line it is now C:\\Program File\\FME. I assume that this might be related to my issue.

Is there any way I can tell FME to search for my Workspace B in the same Folder as Workspace A?

5 replies

lau
Forum|alt.badge.img+3
  • June 16, 2016

You can try $(FME_MF_DIR)\\B.fmw instead of B.fmw


Forum|alt.badge.img
  • Author
  • June 16, 2016
lau wrote:

You can try $(FME_MF_DIR)\\B.fmw instead of B.fmw

Thank you, but this way the WorkspaceRunner Transformer connot find the workspace at all, it is marked red and the Parameters don't show up


Forum|alt.badge.img
  • Author
  • June 16, 2016
kath wrote:

Thank you, but this way the WorkspaceRunner Transformer connot find the workspace at all, it is marked red and the Parameters don't show up

Well, technically your method it works, but I'm missing the possibility to configure my parameters beforehand.


takashi
Evangelist
  • June 16, 2016

Hi @kath, I think that the FME Workspace parameter setting will be updated automatically when you copy the workspaces to another location. Make sure this.

[Edit] I mean the case where you set the parameter with the full path.


Forum|alt.badge.img
  • Author
  • June 17, 2016
takashi wrote:

Hi @kath, I think that the FME Workspace parameter setting will be updated automatically when you copy the workspaces to another location. Make sure this.

[Edit] I mean the case where you set the parameter with the full path.

Thanks, takashi, you are right, the path gets updated when copying to another location.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings