Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3585

Re: Mapping Issue, remove a field from source payload

$
0
0

Hello Nidhi,

 

Try the below piece of code

 

public String createTargetCheck(String input, Container container) throws StreamTransformationException{

int flag = 0;

for(int i=0;i<input.length();i++)

{

char c = input.charAt(i);

if (c < 0x30 || (c >= 0x3a && c <= 0x40) || (c > 0x5a && c <= 0x60) || c > 0x7a)

flag=flag+1;

}

if(flag>0)

{
  return "false";
}

else

{

  return "true"
}

}

 

Let me know if you face any issues.


Viewing all articles
Browse latest Browse all 3585

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>