Skip to main content

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 ?

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.


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.

 


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.


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.


Reply