A program to recognize and reward our most engaged community members
laurab wrote:If I use the changeAttributeName operator it looks like I have to use one ChangeAttributeNames operator per attribute, <operator name="ChangeAttributeName" class="ChangeAttributeName" breakpoints="after"> <parameter key="new_name" value="attribute (1)"/> <parameter key="old_name" value="test.txt (1)"/> </operator> <operator name="ChangeAttributeName (2)" class="ChangeAttributeName"> <parameter key="new_name" value="attribute (2)"/> <parameter key="old_name" value="test.txt (2)"/> </operatoris this correct or cann I change the name of all the attributes in one go? I have tried this but with just the first two attributes. Where I have renamed them using ChangeAttributeNames from test.txt (x) to attribute (x). However when I try to use the attributeConstruction operator I get this :Error in: AttributeConstruction (AttributeConstruction) Generation exception: 'Unrecognized symbol "attribute"Syntax Error (implicit multiplication not enabled)' An operator failed to generate a new attribute.This is the XML for the attributeConstruction : <operator name="AttributeConstruction" class="AttributeConstruction" breakpoints="after"> <list key="function_descriptions"> <parameter key="attribute (1)" value="attribute (2)"/> </list> </operator>I Hope this is clearer
<operator name="ChangeAttributeName" class="ChangeAttributeName" breakpoints="after"> <parameter key="new_name" value="attribute1"/> <parameter key="old_name" value="test.txt (1)"/></operator><operator name="ChangeAttributeName (2)" class="ChangeAttributeName"> <parameter key="new_name" value="attribute2"/> <parameter key="old_name" value="test.txt (2)"/></operator>
att1;att2;att3;......