Skip to main content
Solved

I need a way of creating a new attribute from existing attributes, the name of the new attribute should be derived from a different attributes string value and the value of the new attribute should be derived from the value of a another attribute?

  • October 25, 2021
  • 2 replies
  • 165 views

I am currently using a ChangeDetector to determine which fields have been updated in two different databases. The change detector works as intended and creates a list of different fields have that have been updated. The problem I have is that all the updates need to be written to a database on a one-by-one basis and currently I cannot find a way of sorting the updates by the specific field that has been updated. The updated list created by the ChangeDetector has specific attributes called "attributeName" and "revisedValue". I want to use those two attributes to create a new single attribute which is named after "attributeName" and has the value from "revisedValue" that indicates to my database which field need to be updated and the value that has changed.

Best answer by caracadrian

Just use AttributeCreator with name @Value(existing_attribute_name) and set your desired value

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

caracadrian
Contributor
Forum|alt.badge.img+23
  • Contributor
  • 571 replies
  • Best Answer
  • October 25, 2021

Just use AttributeCreator with name @Value(existing_attribute_name) and set your desired value


  • Author
  • 1 reply
  • November 1, 2021

Thanks it worked as described!