Skip to main content
Hi everyone

 

I run an image clipping workbench (let's call it clip.fmw) from another workbench (starter.fmw) using WorkespaceRunner. But I am unable to put the parameters in the right format in order to get the clipping done right. I did some testing:

 

 

-----------------------------------

 

Starting by using the starterfmw skript with the WorkespaceRunner that runs clip.fmw:

 

in the starter.fmw skript:

 

 

 

Klicking on the (...)-button in the workspaceRunner to select my images I get following result (when selecting multiple images):

 

 

 

In the picture selection window:

 

"picture1.jpg" "picture2.jpg"

 

 

 

In the WorkspaceRunner Parameter Window:

 

E:\\picture1.jpg,E:\\picture2.jpg

 

 

 

In Log window when running the WorkspaceRunner out of the starter.fmw:

 

--SourceDataset_JPEG {""E:\\picture1.jpg" "E:\\picture2.jpg""}

 

 

 

--> The Skript Fails

 

------------------------------------

 

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

 

In clip.fmw skript without using a WorkespaceRunner:

 

 

 

double clicking on the .jpg reader source files and againg on the (...)-button - I get following result:

 

 

 

In the picture selection window:

 

"picture1.jpg" "picture2.jpg"

 

 

 

In the Edit-Parameter Datasource Window:

 

E:\\picture1.jpg,E:\\picture2.jpg

 

 

 

In log in:

 

fme.exe starter.fmw (the blue log at the start);

 

SourceDataset_JPEG """""E:\\Ortho_2012\\588937.5_196700.0.jpg"" ""E:\\Ortho_2012\\588937.5_197000.0.jpg"""""

 

--> SUCCESSFUL

 

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

 

 

When I copy and paste the last argument with all the """" in the starter.fmw WorkespaceRunner it fails as well...

 

 

I think FME is trying to put my inputs from starter.fmw in the "right" format asbut is not able to or mixes up all the "" . I would really like to pass the arguments using text and commas only but this does not seem to work.

 

 

Thank you for your help!
Hi, could you please post the error message logged in the log file (clip.log)?

 


Hi Takashi. Thank you for your answer. Becaus of your hint i went a bit deeper in the log and started to create a new and simple workspace from srcatch to provide you some useful logfiles.

 

When creating my new workspace I realized that there was a versionchange in WorkSpaceRunner transformer since I started my old skript where I still used version 0. In the new version 1 of WorkSpaceRunner the transformer expects the inputattribute to be like this (to read jpgs at least):

 

 

""Image1.jpg" "Image2.jpg" "Image3.jpg" "Image4.jpg""

 

 

in text this means:

 

The filenames enclosed in quotation marks on both sides separated by a space. The whole statement is enclosed in two quotation marks as well.

 

 

With the input formatted like this it works!

 

The same input will not work in transformer version 0.

 

 

Thanks again for your help (or pushing me in the right direction)

 

 


Reply