Skip to content

Instantly share code, notes, and snippets.

/*
* 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();
group.add(SearchRestriction.isNull("description"));
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
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");
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
}
}
}