Submission enhancements
There are other submission enhancements that contain additional functionality. You can modify these files.
SubmissionEnhancement.gsx– This enhancement creates a copy of a submission and commits it. However, PolicyCenter does not validate the copied submission during the commit.In the copyPolicyPeriod method, you can insert code for any additional copying. For fields that you do not want to copy, you can erase or reset them to default values.
For entities that you do not want to copy, you can implement the
PolicyPeriodplugin method returnTypesToNotCopyOnNewPeriod. In addition, you can implement the postCopyBranchIntoNewPolicy method of this plugin which is called just after the copy. See Policy period plugin.The SubmissionEnhancement.addToGroup method groups a submission job into the appropriate submission group or creates a new one if a valid group does not exist.
SumissionGroupLettersEnhancement.gsx– This enhancement returns an array of the producers of the submissions in the submission group. It also verifies, through the canAnySubmisssionSendLetter method, if any submission in the batch can have a letter generated for it. If it does, then you see that option in the user interface. Lastly, there is asendConfirmationLetterthat is a placeholder for implementing through integration, a confirmation letter. Its purpose is to send a confirmation letter with every possible submission in the batch.
For more information about job enhancements, see Gosu classes for jobs.
