I have a scheduled workspace running in FME Server. Upon success or failure, it posts to the same topic that runs another workspace. This workspace uses the FMEServerLogFileRetriever to pull the Feature Written Summary and then uses the FMEServerNotifier to run another topic that sends an email with the Feature Written Summary as the content. Right now, I'm querying the last job_id run in the fme_job_history to get the info. But, if more that one job runs at the same time, the logic gets a little fuzzy. It would be better if I could just pass the job_id from one workspace to the next. Is this possible?
Best Answer
Pass job_id from one workspace to another
Best answer by hollyatsafe
Hi @dave29,
Another option would be rather than use the notification service to trigger the second job you could create a Parent Workspace to run on the schedule that contains two FMEServerJobSubmitter transformers. In the first JobSubmitter set Wait for Job to Complete = Yes so the second job isn't ran until the first one is complete. One of the output parameters from the Succeeded/Failed transformer is _job_id so you could pass this value through to a published parameter in your second JobSubmitter.
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.
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.


