0% found this document useful (0 votes)
455 views5 pages

Age Calculation Using Declare Expression Pega

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
455 views5 pages

Age Calculation Using Declare Expression Pega

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Age Calculation using Declare Expression :

Steps:

1.Create a case type which contains the fields as Date of Birth


and Age

2.Go to App Explorer →right click on case type name

3.Goto Create →Decision →Declare Expression and open it.


4.In target property give the field name where the calculated
value should be stored and click on create and open
5.select build expression symbol

6.Now enter the function in Build Expression filed.


@DateTimeDifference(@DateValue(),@DateValue(),”Y”)

@DateTimeDifference() is a java function which takes two


parameters
i.e DoB and present date and click on submit and then save.
7.Now goto your case type ,save and run the case type.

8.Now when you give date of birth age will be automatically


calculated.
By
Shaik Brahmender
K L University

----------------------THANK YOU-----------------------

You might also like