Skip to main content
Solved

Get the 'FME Flow Connection' in Form as a parameter

  • March 15, 2024
  • 5 replies
  • 92 views

becchr
Influencer
Forum|alt.badge.img+32

Is there a way in Form to find out the active FME Flow Connection when running a workspace?

I thought it might be a (hidden) parameter somewhere, but I can’t find it immediately, and it doesn’t seem to appear in the logs either.

I was wondering if I could use it to determine which environment I’m working in, setting up a development parameter is an easy workaround but might be useful one day to know/log the active flow connection anyways

Best answer by david_r

I don’t think that’s possible, as the active Flow connection is a part of the GUI, and not the workspace.

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.

5 replies

david_r
Celebrity
  • March 15, 2024

If you’re on a recent version, I would highly recommend looking into using deployment parameters, that have been implemented exactly for this use case: https://docs.safe.com/fme/html/FME-Form-Documentation/FME-ReadersWriters/!Transformer_Parameters/Deployment-Parameters.htm

For older versions of FME, you can use the FME Flow parameter FME_SERVER_HOST to let your workspace know on which machine it’s currently executing.


becchr
Influencer
Forum|alt.badge.img+32
  • Author
  • Influencer
  • March 15, 2024

Thank you @david_r, using deployment parameters indeed on FME2023.2, but I have several connections to several Flows (DEV vs PROD but also personal account vs admin for example), and I’d like to log/use the active connection at the moment I’m running the workspace on Form.

 


david_r
Celebrity
  • March 15, 2024

Thank you @david_r, using deployment parameters indeed on FME2023.2, but I have several connections to several Flows (DEV vs PROD but also personal account vs admin for example), and I’d like to log/use the active connection at the moment I’m running the workspace on Form.

 

Not sure I quite understand what you mean by “connection”, but if it’s the username you’re after, look in the parameter FME_SECURITY_USER:

You’ll find the documentation for them all here: https://docs.safe.com/fme/html/FME-Form-Documentation/FME-Form/!Transformer_Parameters/FME-Flow-Parameters.htm


becchr
Influencer
Forum|alt.badge.img+32
  • Author
  • Influencer
  • March 15, 2024

Apologies for my haziness, I meant the ‘FME Flow Connection’ you set in Form to connect to Flow:

https://docs.safe.com/fme/html/FME-Form-Documentation/FME-Form/Workbench/FME-Flow-Connecting.htm

 


david_r
Celebrity
  • Best Answer
  • March 15, 2024

I don’t think that’s possible, as the active Flow connection is a part of the GUI, and not the workspace.