Hi folks,
I'm using FME Server 2016 here. Basically, my main workspace is published on FME Server with a jobsubmitter service and a notification on job completion. I ask to post to topics on Failure (and I check a topic that I already created in FME Server). This topic triggers a subscriber which is another workspace that sends an email. I want to know how do I manage the parameters that can be passed to the second workspace when the first workspace has failed? For example, the first workspace contains the user email to which we want to send the email in the second workspace. How do I pass it? It seems obvious when the topic is set on Success but not on failure.
Here is what the JSON string automatically passed on failure between both workspace looks like:
[
{
"workspace": "aaaaaa.fmw",
"timeRequested": "Tue-05-Jul-2016 04:11:39 PM",
"requestKeyword": "JOB_SUBMITTER_SERVICE",
"timeStarted": "Tue-05-Jul-2016 04:11:39 PM",
"repository": "aaaa",
"jobsuccess_topic": "",
"LogFileName": "job_647.log",
"StatusMessage": "Terminator_1: Aborting Translation n'.",
"jobfailure_topic": "PUBLISH_FAILURE",
"StatusNumber": "859017",
"id": "647",
"timeFinished": "Tue-05-Jul-2016 04:11:41 PM",
"logHome": "//dddddddddd/fmeserver/share///resources/logs",
"logUrl": "http://dddddddddd/fmerest/v3/transformations/jobs/id/647/log"
}
]
Is there a way to add parameters to this JSON String other than having to read the job log file and parse it to get my wanted value?
Thanks!
Charles