I hope you find this useful!
class MyJob { def grailsApplication def execute(context) { def myService = grailsApplication.mainContext.myService def domainInstance = MyDomain.get(context.mergedJobDataMap.get('domainId')) } }
No comments:
Post a Comment