Closed shivajibr closed 7 years ago
case CONCAT: StringBuilder buff = new StringBuilder( originalValue ); for( int i = 0; i < paramCount; ++i ) { buff.append( getParameterValue( getParameterList().get( i ), contextMap, dataMap ) + "" ); } newValue = buff.toString(); break;
Here in the above code the for loop should start from i=1. With i=0, original value passed as a parameter will also get appended again.
Are you referring to STRING or STRING2. For STRING2 that is the expected behavior. There is no need for an "original value" as it will CONCAT all parameters together.
case CONCAT: StringBuilder buff = new StringBuilder( originalValue ); for( int i = 0; i < paramCount; ++i ) { buff.append( getParameterValue( getParameterList().get( i ), contextMap, dataMap ) + "" ); } newValue = buff.toString(); break;
Here in the above code the for loop should start from i=1. With i=0, original value passed as a parameter will also get appended again.