Skip to main content
Solved

Custom Transformer - Overwriting Input Attribute

  • May 4, 2017
  • 2 replies
  • 41 views

dfresh
Forum|alt.badge.img

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

Best answer by takashi

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

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.

2 replies

jdh
Contributor
Forum|alt.badge.img+40
  • Contributor
  • May 4, 2017

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.


takashi
Celebrity
  • Best Answer
  • May 5, 2017

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