Skip to main content
Question

run second part of workspace only if updatedetector from 1st part finds changes?

  • September 7, 2017
  • 4 replies
  • 23 views

Forum|alt.badge.img

Hi,

Workspace attached. The first part is the CAD_Parcels bookmark. The second part is the CAD_Properties bookmark. I only want to run CAD_Properties bookmark contents if there are any features in the Update, Insert or Delete ports from the CAD_Parcels bookmark.

I assume tester and workspacerunner may be in order. I have to turn this into a FME Server job submitter also.

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.

4 replies

mygis
Supporter
Forum|alt.badge.img+14
  • Supporter
  • September 7, 2017

Hi @richardtriesfme,

Have you looked into the FMEServerJobSubmitter transformer? Just connect it to the "updated" port of the ChangeDetector transformer (UpdateDetectorParcels in your case). But you need to create a new workspace and put in your CAD_Properties workflow.

You do not need to use the tester, just connect the "updated" port to the WorkspaceRunner or FMEServerJobSubmitter

Note: If you use FME desktop you should use the "WorkspaceRunner" transformer, however if you are using Server you should use the "FMEServerJobSubmitter" transformer

I hope this helps.


Forum|alt.badge.img

Hi @richardtriesfme,

Have you looked into the FMEServerJobSubmitter transformer? Just connect it to the "updated" port of the ChangeDetector transformer (UpdateDetectorParcels in your case). But you need to create a new workspace and put in your CAD_Properties workflow.

You do not need to use the tester, just connect the "updated" port to the WorkspaceRunner or FMEServerJobSubmitter

Note: If you use FME desktop you should use the "WorkspaceRunner" transformer, however if you are using Server you should use the "FMEServerJobSubmitter" transformer

I hope this helps.

Thanks, I need to run the Workspace/FMEServerJobSubmitter runner only after the entire rest of the first workspace has ran as properties depends on the finalisation of the parcels results. Is this possible?

 

 


takashi
Celebrity
  • September 7, 2017

If you would use the FeatureReader to read features for the second part, all the processes can be performed within a single workspace.

  1. Connect a single Sampler to the Updated, Inserted, and Deleted ports of the UpdateDetector,
  2. sample only the first feature (Group By: <not set>, Sampling Rate: 1, Sampling Type: First N Features),
  3. connect between the Sampler and the FeatureReader. Only if a feature is output from the Sampler, the feature kicks off the FeatureReader.

mygis
Supporter
Forum|alt.badge.img+14
  • Supporter
  • September 7, 2017
Thanks, I need to run the Workspace/FMEServerJobSubmitter runner only after the entire rest of the first workspace has ran as properties depends on the finalisation of the parcels results. Is this possible?

 

 

@richardtriesfme, right after the ChangeDetector if you want to start the new workspace.

 

 

In my case I would use a different approach; I would just add a FeatureWriter after the ChangeDetector (updated port) to write/save the data "lccgis.CAD_PARCELS then a FeatureReader in the to read the "lccgis.CAD_PARCELS" at the beginning of the "CAD_Properties" group to continue the same process within the same workspace.

 

 

It would be great to consider creating custom transformers to group your transformers.