Skip to main content

Hello fellow FME’ers!

 

I have a case where I need my on prem FME Flow to listen to certain messages from my FME Flow hosted instance. I want job a job to trigger automatically when a FME Flow hosted job has run. It looks like this is not an out of the box thing. Or is it? for the record: I don’t want to solve this with a schedule task!

How would you trigger your FME instance A to run after job on FME instance B has run? A can communcate with B, but B can not send messages to A.

 

 

I see three approaches:

  1. As part of your workflow on Flow Hosted, right at the end, you have a httpcaller that submits a job to your on Prem Flow. This of course makes the assumption your on Prem Flow is open to the web
  2. Jobs run as is on Flow Hosted. Every X minutes a job on your on Prem Flow queries Hosted Flow for a list of completed jobs. If any jobs in that list need something running on on Prem Flow, then the job is tirggered
  3. Utilise remote engines. This is probably the least desirable in this case as its very new (still in tech preview) and would likely require significant re architecture of your environments - https://docs.safe.com/fme/html/FME-Flow/WebUI/Remote-Engine-Services.htm

The on prem is behind firewalls. I choose to run the job repeatedly on schedule, since I can not find a way to listen to messages on FME Flow hosted. I believe it should be possible to design this from safe's side.


The on prem is behind firewalls. I choose to run the job repeatedly on schedule, since I can not find a way to listen to messages on FME Flow hosted. I believe it should be possible to design this from safe's side.

It is already designed, through the use of the APIs. You need to call the API on your flow hosted instance from your On Prem. This of course means firewall rules need to be in place to allow those calls to be made

 

https://docs.safe.com/fme/html/FME_REST/apidoc/v3/index.html


It is already designed, through the use of the APIs. You need to call the API on your flow hosted instance from your On Prem. This of course means firewall rules need to be in place to allow those calls to be made

 

https://docs.safe.com/fme/html/FME_REST/apidoc/v3/index.html

I know you can call the flow api and ask for all latest jobs in a list. Then you need your own logic to filter that list to get the correct job. This again requiers to set up a listener on the on prem machin to query this api repeatedly to figure out if it should fire. I don’t think it works out of the box.


Reply