Question

How can I call a workspace x number of times (multiple times) to compare with actual output by using the python script

  • 21 April 2020
  • 2 replies
  • 0 views

How can I call a workspace x number of times (multiple times) to compare with actual output by using the python script do you have any git hub help links


2 replies

Userlevel 4
Badge +26

Hi @naren - you might need to add a little bit more information to your question.

 

 

But if you want to run a workspace from the command line there is some information here: https://knowledge.safe.com/articles/975/batch-processing-method-1-command-line-or-batch-fi.html

 

 

You can also use a WorkspaceRunner transformer from within FME to call a child process. Not sure what python script you're referring too though.
Badge +3

Have a bit of a rummage through this website, as most of your question has already been answered before.

To run a workspace multiple times with different parameters, have a look into the WorkspaceRunner. You create one workspace with your 'engine'. And then a second one with a WorkspaceRunner calling the engine, and a list of input parameters. Have a look at https://knowledge.safe.com/articles/1469/batch-processing-using-the-workspacerunner-1.html

To compare two files, use the ChangeDetector. Here is a blog article about it: https://www.safe.com/blog/2019/01/change-detection-2019-fmeevangelist184/ . Or this article: https://knowledge.safe.com/articles/33899/change-detection-2.html

Re. Python: FME is a non-coding tool, so it doesn't make sense to 'undo' that by trying to code things up yourself. FME is extremely powerful, and many things can be achieved by just a few transformers together. And you're bound to get entangled, when trying to do certain bits in FME and certain bits in Python. You can use Python when FME can't do something or is too slow, but explore the possibilities within FME first. And we're here to help!

Reply