Skip to main content

Hi

I have a polygon shp file with attribute called DATE and value of 1/1/200. This polygon is read in a controller workbench. I also have a worker workbench which I call with FME server job submitter in the controller.

What I want to do is pass this date value to the worker workbench, so I can use it in it.

How can I do this? Can I create a parameter holding the value and pass this on?

Hi

In the worker workbench you create a published attribute called e.g. MY_DATE, which you pass over from the controller in the FMEServerJobSubmitter.

Inside the worker workbench you can reference this value either using the ParameterFetcher or using the $(MY_DATE) syntax.

David


Sorry

do you mean I create a published parameter in my controller that I pass to the worker?

If so how do I do that?

I am new to FME.


Hi

You create the new published parameter in your worker and then publish it to the server.

Then, when you open the controller and the FMEServerJobSubmitter, the new parameter should appear. You then link this parameter to one of the feature attributes in your controller workspace.

David


I see now. What format must the published parameter be if I am working with a date?


The easiest by far is to just define it as Text.

You can then use the DateFormatter transformer if you need to reformat it to something different before the writer.


Reply