Skip to main content
Solved

Troubles when using WorkespaceRunner

  • December 19, 2013
  • 2 replies
  • 7 views

Forum|alt.badge.img
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!

Best answer by simon11

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)

 

 

View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

takashi
Influencer
  • December 19, 2013
Hi, could you please post the error message logged in the log file (clip.log)?

 


Forum|alt.badge.img
  • Author
  • Best Answer
  • December 20, 2013
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)

 

 


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