Skip to main content

Hey Folks,

how do you set an output attribute in a custom transformer. I could always just use an attributecreator after and set attribute a to the output field. but would rather handle it in my custom transformer.

Attribute A = 1 before transformer

Attribute CustomOutputValue = 2 after transformer

Attribute A = 1 After transformer

but I want Attribute A = 2 after transformer.

note - the numbers in above example are simplified.

Thanks,

Doug

Use a StringConcatenator inside your custom transformer and publish the New Attribute as a parameter. Inside the custom transformer it will appear as $(Attr) outside the custom transformer it will appear as whatever value you set the parameter to.


Hi @dfresh, alternatively, if you have created an "Attribute Name" type published user parameter in the custom transformer, you can pass an attribute name to the custom transformer via the parameter and then overwrite its value with AttributeCreator etc.

 

Custom Transformer Definition

Main Workflow


Reply