How to Create a custom java function in pega

How to Create a custom java function it should returns whether a given nuumber exists in the range Eg. if the starting number is 1 and ending number is 10 ,we have a requirement whether the number 5 is present in between 1 and 10

Hi @Rojasatish: Not sure why you need a function to achieve this. A simple check in a data transform / a when rule should help you. Can you please help to understand if the range (Start and end) is fixed or whether it varies?

Thanks.

@Rojasatish,

You can create the Java function in Pega by using the Function and Library rules. First you have to create the library to access this function rule, create a function rule, in that rule give the library name. In function rule add the custom java code in java tab. For your reference see the attached screenshot.