how can I fetch the workbench name and define it as an attribute value?
Thanks, Felix
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.
Whilst the Parameter fetcher appears to not like you adding the name macro, it still fetches it. Perhaps Safe will expose all the macro's her in future.
If you want to get this with Phthon or TCl you'll need to fetch it like $(FME_MF_NAME).
For general interest I have dicovered from Safe that if you:
Open Workbench
Find the 'Shutdown TCL Script' Advanced Parameter.
Paste in this code:
foreach key [array names FME_MacroValues] {
puts "$key : $FME_MacroValues($key)" }
Run the workspace
Then all of the available Macro's will be listed at the bottom of the log file. I have filed a PR to ask for 4 of the more useful ones that are missing from the ParameterFetcher's pull down list to be added, including FME_MF_NAME.