Skip to main content

Can a reader be enabled or disabled in run-time based on certain conditions? Or a more general case: can a set of bookmarked transformers/components in a workspace be enabled or disabled in run-time based on some conditions?

Thanks in advance,

George

Hi @george

I would use a Tester transformer or any filter transformer to do so based on a certain criteria.

 

Cheers.

Lyes


@george

Example here using a Published Parameter to specify which of three Readers to use. Choose Run with Prompt to execute the Workspace. A multiple choice of three values is displayed using a Published Parameter.

This Published Parameter is used in the Workspace and split into 1, 2 or 3 features depending on the number of values chosen. These values are then processed by AttributeFilter to trigger the reading of any combination of the three FeatureReaders.

choosereaders.fmw


@george

Example here using a Published Parameter to specify which of three Readers to use. Choose Run with Prompt to execute the Workspace. A multiple choice of three values is displayed using a Published Parameter.

This Published Parameter is used in the Workspace and split into 1, 2 or 3 features depending on the number of values chosen. These values are then processed by AttributeFilter to trigger the reading of any combination of the three FeatureReaders.

choosereaders.fmw

Yes, definitely this is much preferred to using a Tester after the input feature type.

In addition to @gisinnovationsb and @mark_1spatial you can consider to use FeatureReaders instead of a regular reader. When you start your workspace with e.g. a creator and let it pass a filter based on a Published Parameter, you can choose which FeatureReader should be used.


In addition to @gisinnovationsb and @mark_1spatial you can consider to use FeatureReaders instead of a regular reader. When you start your workspace with e.g. a creator and let it pass a filter based on a Published Parameter, you can choose which FeatureReader should be used.

Yes @lars_de_vries

 

 

That could be an option too. I will +1 it ;)

 


Reply