Select Filter > Predicate > Operation from Model > GreaterThanOrEquals.
Note
If you cannot see the GreaterThanOrEqualsoperation, make sure the Apply Filter box is not checked.
Image Modified
Select Predicate > Body > A > Script. Image Modified
From the Language drop-down list, select Groovy.
Insert the following script as the Body:
Code Block
title
Groovy
import java.text.DateFormat;
import java.util.Date;
if (arg1) {
Date date1 = DateFormat.getDateInstance(DateFormat.SHORT).parse(arg1.iterator().next());
}
Image Modified
Select A > arg1 > Reset. Image Modified
Select A > arg1 > Simple Navigation. Image Modified
Select Modification date and set Is Applied to true. Image Modified
Select Predicate > Body > B > Script. Image Modified
From the Language drop-down list, select Groovy.
Insert the following script as the Body:
Code Block
title
Groovy
Date M1 = new Date();
M1.setMonth(M1.getMonth() - 1);
M1
Image Modified
Click OK. To view the column, make sure to display it via the Columns button in the diagram toolbar > Select Columns > set the Modification date column to true.