LuLe Game
Tera Expert

I was able to fix this by finding the Out-of-Box Business Rule "Initiate document tasks if configured". Here you need to find out-of-the-box Script Include "HRDocumentTemplateUtils().isAutoInitiateDocTasks" which already have an extended Script Include. With this, you will be able to change the code to your needs. 

View solution in original post