Skip to main content
Solved

Create published parameter during a process

  • July 7, 2016
  • 11 replies
  • 60 views

Forum|alt.badge.img

I have a project in which I expose a attribute. This attribute is used several times in my project. So, I just draw the same amount of line between the output of the attribute creation and the many input I have.

So, the result is a project with a spider web, not really userfriendly to work with.

Is there a transformer to "export" an attribute into a published parameter?

This involved that the published parameters is initialized to NULL. Is that possible?

Best answer by david_r

Look into tunnel connections that were introduced in FME 2016.1:

http://blog.safe.com/2016/05/fmeevangelist150/

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, 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.

11 replies

david_r
Celebrity
  • July 7, 2016

I'm not sure I understand your question, but it is not possible to create or modify (published or private) parameters while a workspace is running, if that is the question. Or have I misunderstood?


Forum|alt.badge.img
  • Author
  • July 7, 2016

I'm not sure I understand your question, but it is not possible to create or modify (published or private) parameters while a workspace is running, if that is the question. Or have I misunderstood?

You just answer a part of the question.

The other question for me is : how can I use output from a transformer without too much drawing lines in all my project?

I don't know if it's clear.


david_r
Celebrity
  • Best Answer
  • July 7, 2016

Look into tunnel connections that were introduced in FME 2016.1:

http://blog.safe.com/2016/05/fmeevangelist150/


ebygomm
Influencer
Forum|alt.badge.img+46
  • Influencer
  • July 7, 2016

Or look at the variable setter and retriever


Forum|alt.badge.img
  • Author
  • July 7, 2016

Look into tunnel connections that were introduced in FME 2016.1:

http://blog.safe.com/2016/05/fmeevangelist150/

Perfect. Thanks a lot.


Forum|alt.badge.img
  • Author
  • July 7, 2016

Or look at the variable setter and retriever

If I understand clearly, it doesn't solve my web line problem.

It's for setting the value of a attribute. Even though I already have the value.


ebygomm
Influencer
Forum|alt.badge.img+46
  • Influencer
  • July 7, 2016

If I understand clearly, it doesn't solve my web line problem.

It's for setting the value of a attribute. Even though I already have the value.

You set the value in one place, and then you retrieve it in another place, no need for a line between the setter and the retreiver. If you are using it multiple times you only need to set it once as a global variable and can retrieve it for use in various locations


Forum|alt.badge.img
  • Author
  • July 7, 2016

You set the value in one place, and then you retrieve it in another place, no need for a line between the setter and the retreiver. If you are using it multiple times you only need to set it once as a global variable and can retrieve it for use in various locations

Ha ok. Thanks for your help.


gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • July 7, 2016

it does not set an attribute but a variable.

Depending on where u set the attribute you might not be able to acces it always in all parts of the procces.

Depends of the flow in your workspace.

There is also the option of creating an attribute on lots of transformers (creators, writers and more). Rightclick below the tiltle and select "add attribute". Wich can be linked to parameters etc. also.


Forum|alt.badge.img
  • Author
  • July 8, 2016

A collegue of mine have another solution.

In a workspace, I do the right process to obtain the variable. Then I use a WorkspaceRunner to run another workspace in wich the variable is a pusblished parameter.

Finally I use a ParameterFetcher to use it.


david_r
Celebrity
  • July 8, 2016

A collegue of mine have another solution.

In a workspace, I do the right process to obtain the variable. Then I use a WorkspaceRunner to run another workspace in wich the variable is a pusblished parameter.

Finally I use a ParameterFetcher to use it.

It is often like that with FME, lots of ways to solve the same problem. That's what makes it fun!