Find string length of context variable

Situation:

I am trying to find out to route a file through my process based on the length of the file name.

I was hoping there was a function that I could add to the condition string like:

($$Service.ILS_Servicing_Imaging_source_file_pdf.fileName$$.contains("MTHY"))

&&

($$Service.ILS_Servicing_Imaging_source_file_pdf.fileName$$.length()=10)

 

Solution:

To check the length of the file name provide a Java Condition in which get the file name from the context in some string variable using context.get() . Then provide If condition to check the length of the file using length() function. For Example:

String fileName = context.get("fileName");
if(fileName.length()==10)
{
return true;
}
else {
return false;
}
Have more questions? Submit a request

0 Comments

Article is closed for comments.