cancel
Showing results for 
Search instead for 
Did you mean: 

Convert data type (Integer to String) ccBPM

Former Member
0 Kudos

Hi, I need to pass the integer value of a variable to string variable. As I can do this?. Thank you very much for the help.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Assuming you need to do this in a udf, you can use the Integer.toString() functionality of java

int aInt = 1;

String aString = Integer.toString(aInt);

Former Member
0 Kudos

Hello, the two variables (integer and string) are defined as variables in the container of ccBPM. I can use directly UDF in ccBPM?

Former Member
0 Kudos

No, UDF can only be used in message mapping.

Since you need to assign interger value to string, define both the variables as string. A string can also contain integer value or if you are using some count operation, defie them both as int.

baskar_gopalakrishnan2
Active Contributor
0 Kudos

To make simple you can represent integer, float, double in string itself. unless you get from the sender system as different data type you can handle using string itself.

Use Integer.toString(int )