cancel
Showing results for 
Search instead for 
Did you mean: 

How to check if agreement is perpetual or has an expiration date from within a script?

Former Member
0 Kudos

We have recently written a script that changes the expiration date on the master agreement or sub-agreement if it is different to that of the latest approved contract document expiration date. However we omitted to handle the situation where the agreement is set to perpetual

Part of the code is listed here:

MAExpDateIfc = parentBean.getExpirationDate();

MAExpDate = MAExpDateIfc.getDate();

compare = ExpDate.compareTo(MAExpDate);

if (compare > 0)

Any suggestions as to what we would need to add in order to check whether the agreement is set to perpetual or has an expiration date first?

If the agreement is set to perpetual we would not want to try and either get the expiration date or attempt to change it.

Thank you

Christopher

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Christopher,

To find out if the MA is perpetual you could use the getPetualTerm() method which returns a Boolean.

Regards,

Vikram

Answers (0)