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-----------------------