Skip to main content

Apologies if this has been asked before, I have tried searching Google/FMEPedia for it, with no luck.

 

 

I'm having trouble getting the "request" string in our emails sent from FME Server 2012.  Our previous FME Server 2010 emails - used the variable %request% - however I'm having no luck using }

Below is what I have for our current "success" template:

<fmeblock>Your FME translation (job ID {id}) has succeeded. Click on the link below to download the result:&#10;&#10;{urlPrefix}{ResultRootDir}/{@getFileName(@zip(OutputLocation))}&#10;&#10;</fmeblock><fmeblock>INFO: FME Request Parameters&#10;&#10; : This download file will only be available for 7 days, then it will be deleted.&#10;&#10;</fmeblock> <fmeblock>Time Started: {timeStarted} &#10;&#10;Time Finished: {timeFinished}</fmeblock>

 

 

Which results in this:

Your FME translation (job ID 306) has succeeded. Click on the link below to download the result:

 

 

 

http://ERRDWAS89:8080/fmedatadownload/results/FME_2B5C0113_135543773925_15784.zip

 

 

 

INFO: FME Request Parameters

 

 

 

 

 

 

 

NOTE: This download file will only be available for 7 days, then it will be deleted.

 

 

 

Time Started: Fri-14-Dec-2012 08:28:59 AM

 

 

 

Time Finished: Fri-14-Dec-2012 08:29:09 AM

 

 

All variables work except for the } one - I tried without the @ but I just get _undefined_ written  under the request parameters section.

Can someone provide a link to the full available list of parameters & how to use them for the Email Content Template - all I could find from FMEPedia is the reference manual which barely covers this topic, and does not use the request in their examples.

http://docs.safe.com/fmeserver/html/FME_Server_Reference_Manual/FME_Server_Reference_Manual.htm#ServerCore/EmailTemplateLanguage.htm

Please help.

Please try it like this: {requestKeyword}   It's documented in FME Server 2013 like that - I'll test myself in 2012 shortly
Hi again vision,

 

The {requestKeyword} works but I don't think it is going to give you the information you are looking for - it just returns the name of service the job was submitted to and so it will return: "FILE_DOWNLOAD_SERVICE"

 

 

Is there something specific from the request you want to include in the email?   In 2013 there is mechanism to pass parameters from the job request through to the email that migh help you. In 2013 when you submitt a job, if you include a URL parameter prefixed with “nm_”  then it will create a keyword with that name which can be used as a placeholder in the email template.  In FME Server 2012 it is fairly limited what we can with the emails please see here:

 

<FMEServer>/Docs/Referenc Manual/FME_Server_Reference_Manual.htm

Ken,

 

Thanks for your assistance here - in FME 2010 we simply used the %request% parameter in our template file to provide the FME workbench request string & any parameters used.

eg.

____

Your FME translation (job ID 212837) has succeeded. Click on the link below to download the result:

 

 

 

http://erokwas32:8080/fmedatadownloadresults/FME_4544_1355781842477_4544761732654.zip

 

 

 

INFO: FME Request Parameters

 

 

 

"Google_Earth/Feeder_trace/Feeder_trace.fmw" -XML_PARAMETER <?xml version="1.0" encoding="UTF-8"?> <TRANSFORMATION_REQUEST><FME_DIRECTIVE name="OGCKML_1_DATASET">!FME_AUTO_DIR_NAME!\\feeder_all.kml</FME_DIRECTIVE></TRANSFORMATION_REQUEST> --FME_SECURITY_ROLES "guest"

 

 

 

NOTE: This download file will only be available for 7 days, then it will be deleted.

 

____

 

 

I've just done a Google search for {requestKeyword} and stumbled across this JSON sample. 

http://fmeserver.com/fmedatadownload/Samples/earthquakesextrusion.fmw?opt_responseformat=json

Which lists {request} as the parameter which returns the FME Server Response information about the workbench & parameters we are after. 

eg.

"request": "\\"Samples/earthquakesextrusion/earthquakesextrusion.fmw\\" -XML_PARAMETER <?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\\n<TRANSFORMATION_REQUEST><FME_DIRECTIVE name=\\"OGCKML_1_DATASET\\">!FME_AUTO_DIR_NAME!\\\\quakes.kml<\\/FME_DIRECTIVE><\\/TRANSFORMATION

For some reason 2012 Server is not providing this information in the email - I even tested by putting a <fmeblock type="optional"> with some other text in the block as well as the {request} parameter, and the block doesn't appear - which would mean there is no data being parsed for the included {request} parameter.

Unfortunately I really need to get to the bottom of this - as we're upgrading our FME Server 2010 in Production very soon, and the users will expect the same email format - especially the request string being included.  

Maybe there is a FME Server config I just need to tweak...

 

 

 
Hi vision,

 

I've looked into this a bit more and we have a support case on the issue also.

 

 

I'm afraid it just isn't possible to insert the full request string in an email using FME Server 2012. With that release we made a big change in how emails are sent - using the notification service rather than an FME Engine process.  This particular place holder did not get carried forward. We always try very hard to be backward compatible but this is case where we've obviously let something slip through and we apologize for that.

 

 

You are right there is a  {request} element returned by the service but we don't have access to this with a placeholder in the email templates.

 

I've filed a task with our team to look at this  issue but this is unlikely to be of any help to you in FME Server 2012.

 

Sorry we can't do more in this case,

 

Ken  

Thanks for your assistance Ken - that support case might well be mine as I logged one with our vendor 1Spatial just the other day (19/12.) who got back to me yesterday with basically the same answer/information.

 

 

No worries - we will just have to live with it, until we upgrade to FME Server 2013.

 

 

Merry Xmas & a fantastic New Year to you! (that is assuming the world doesn't end today)

Reply