I need to generate a Date of birth that is more than 65 years from Date of run BUT can not be more than 75 years (the age limit).
Currently, my workflow is generating the DOB that are over 65 years (some are even 105 years old) but the business rule needs the DOB to be between 65 and 75 years from date of execution.
I need to implement a logic to ensure that the random dates are between 65 and 75 but I’m having trouble using the BETWEEN clause.
@ashokkarale
What if there is a use case to generate multiple DOBs at the same time. Let say there is an argument (numberOfDOBTogenerate) that specifies the number of DOB between 65 and 75 the user wants, how would you enhance your workflow to do this? Would you out the do-while inside a For loop?
I will appreciate it if you can enhance your workflow to use the variable numberOfDOBTogenerate . so we can generate N number of DOB based on the value the user assign for variable numberOfDOBTogenerate