Hi,
Â
Â
you can find the name of the running workspace from a Python script using
Â
Â
 currentWorkspace = FME_MacroValuesÂ'WORKSPACE_NAME']
Â
Â
David
Hi David
Â
Â
Thanks for your answer. Before we got the FME Server I used a Python shutdown script in every workbench to gather all information (workbench name, input data, error logs,....) and send an email.
Â
Now we would like to use the email notification (email template) from the FME Server instead of manipulating every single workbench.
Has the question been answered? We have FME Server 2015 and I would like to put the name of the FME workspace in the email notification. I don't see that as one of the placeholders, however. Is it possible?
Â
Â
Thanks
Hi Jim
Â
Â
We sticked to our Python shutdown solution (so far). As far as I can remember there were some issues with the notification service. The Workbench name couldn't be sent and the notification Service was not triggered if there was an error in the Workbench itself (or something like that).
Â
With the Python script we are able to list the Workbench name, Job ID, number of read/written features, input/output source path, name of input output featureclasses, start/end Time, logfile as attachment.
Â
With the number of read/written features we can verify if the input/output reaches the expected number of read/written features.
Â
If you like I can post the Python script.
Â
Â
felix
This is now possible in FME Server 2016.0 The JSON that is passed contains the repository, workspace name and log URL. Like this:
{ ... "repository": "Samples", "workspace": "austinApartments.fmw", "logUrl": "http://localhost:8080/fmerest/v3/transformations/jobs/id/1/log" }
http://docs.safe.com/fme/2016.0/html/FME_Server_Documentation/Content/ReferenceManual/Email_Templates.htm