This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Method will accept a Map, and populate a template | |
| * Each child element (blocks and variables) will be processed as well | |
| * as any <included> directives | |
| * In case processing takes some significant time, we leverage a Future | |
| */ | |
| Future<String> render(Map data){ | |
| var completer = new Completer(); | |
| String result = content; | |
| List futuresPending = new List(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| group.add(SearchRestriction.isNull("description")); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.datacert.apps.mattermanagement.integration; | |
| import com.datacert.core.util.Logger | |
| import org.apache.commons.vfs2.FileObject; | |
| import org.apache.commons.vfs2.AllFileSelector; | |
| import org.apache.commons.vfs2.FileSystem; | |
| import org.apache.commons.vfs2.FileSystemException; | |
| import org.apache.commons.vfs2.FileSystemManager; | |
| import org.gmock.GMockTestCase |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.springframework.beans.BeanUtils; | |
| import com.datacert.core.notifications.model.impl.EmailTemplate; | |
| println entity.medLcrVersion.code | |
| if(!"Initial - Draft".equalsIgnoreCase(entity.medLcrVersion.code) && !entityService.isNewInstance(entity)) { | |
| println 'about to send email...' | |
| def parent = queryService.query("Matter",queryService.and().add(queryService.property("medLcr.id").eq(entity.id))).first(); | |
| def customTemplateEngine = applicationContext.getBean("customTemplateEngine"); | |
| def configService = applicationContext.getBean("configurationService"); | |
| def emailService = applicationContext.getBean("emailService"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SelectElement get _outputItems => _root.query('#outputitems'); | |
| void update(Event e) { | |
| List<OptionElement> currentOptions = _outputItems.options; | |
| for(final currentOption in currentOptions){ | |
| if(currentOption.selected){ | |
| //do something here | |
| } | |
| } | |
| } |
OlderNewer