Skip to main content

Hello all,

I have a TestFilter that directs my input data into multiple branches for further transformation and I have dozens of test conditions within this TestFilter, similar to below:

If Test condition @Value(field1) = A to Output port 'Road'

Else If Test condition @Value(field1) = B to Output port 'River'

Else If Test condition @Value(field1) = C to Output port 'School'

etc, etc.....

 

Is there a way i can then use these port values to replace the original input attribute value for this field? For example:

Replace all attribute values of 'A' with 'Road'

Replace all attribute values of 'B' with 'River'

etc, etc

I'm trying to find a way of avoiding having to create dozens of repetitive transformers after each port to make this attribute value change and hoping to reuse the effort made thus far with in creating the existing TestFilter

Does anyone know if this is achievable?

TIA,

R

@robinb You can copy your tests from the TestFilter into the Conditional Value of the AttributeCreator. Although the AttributeCreator would accomplish what you want, the tests are a bit hidden making the workspace a little harder to maintain. Perhaps add your vote to this Idea.

AttributeCreator Conditional Value...


Thanks Mark, that works for me.


Reply