Skip to main content
Solved

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


becchr
Influencer
Forum|alt.badge.img+25

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.

View original
Did this help you find an answer to your question?

5 replies

david_r
Evangelist
  • 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+25
  • 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
Evangelist
  • March 15, 2024
becchr wrote:

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+25
  • 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
Evangelist
  • 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.


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