How can I set a default End Date to a Contract?

Question

We need to send the contracts to SAP with an End Date predefined to "never" (in this case 31/12/9999).

Answer

if (cProcessor.isPrePhase()) { Calendar cal = Calendar.getInstance() cal.set(year:9999, month:11, date:31) def DEFAULT = cal.getTime() cProcessor.updateField("endDate", DEFAULT) }

Found an issue in documentation? Write to us.