Skip to main content
Question

Return the JOB ID of the JOB submitted through FMEServerJobSubmitter in FME REST API response.


Forum|alt.badge.img

I have let's say FirstWorkbench.fmw which is calling SecondWorkbench.fmw using FMEServerJobSubmitter transformer without waiting for secondWorkbench's completion.

Now there is a third party application which is using FMEServer REST API's to trigger the FirstWorkbench.fmw and also checking its STATUS. Once the job FirstWorknench is completed STATUS is showing as success in REST API Job status endpoint.

I want to get the JOB ID of SecondWorknench.fmw which triggered from FirstWorknench. Is there a way to do this ?

4 replies

david_r
Evangelist
  • May 16, 2023

I don't think there's an easy was to accomplish this, unless you download and parse the log of the calling workspace, looking for the job id.


Forum|alt.badge.img
  • Author
  • May 16, 2023
david_r wrote:

I don't think there's an easy was to accomplish this, unless you download and parse the log of the calling workspace, looking for the job id.

Hi David, appreciate your suggestion. But JOB logs contain lot of other information which I don't want to expose to third party applications.

 


david_r
Evangelist
  • May 17, 2023
rakeshent wrote:

Hi David, appreciate your suggestion. But JOB logs contain lot of other information which I don't want to expose to third party applications.

 

I agree about the job log. You'd have to filter out the job id on your end, not send the whole thing.

Another thing to consider might be to use an automation with chained workspaces rather than using the JobSubmitter. You could use the automation writer to pass e.g. job id's between jobs.


Forum|alt.badge.img
  • Author
  • May 17, 2023
rakeshent wrote:

Hi David, appreciate your suggestion. But JOB logs contain lot of other information which I don't want to expose to third party applications.

 

I was trying to filter the parsed log by using offset, limit and other flags but it's not reliable. If there is any other way, please let me know

and I will try the Automation writer.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings