Skip to main content

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

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.


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.

 


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


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

 


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


Reply