Class PreprocessFreemarkerTemplateTask
java.lang.Object
ch.tocco.nice2.optional.correspondence.impl.action.PreprocessFreemarkerTemplateTask
- All Implemented Interfaces:
OptionalTask<CorrespondenceParams, Void>, PersistTask<CorrespondenceParams, Void>
public class PreprocessFreemarkerTemplateTask
extends Object
implements OptionalTask<CorrespondenceParams, Void>
processes freemarker templates on first recipient entity in order to test if the templates are correct
so we can prevent the execution of the background task with a invalid template
-
Constructor Summary
ConstructorsConstructorDescriptionPreprocessFreemarkerTemplateTask(SaveCorrespondenceService saveCorrespondenceService) -
Method Summary
Modifier and TypeMethodDescriptiondoRun(CorrespondenceParams params, CommandContext commandContext) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface OptionalTask
runMethods inherited from interface PersistTask
andThenDo, compose, compose2, composeWhen, discardResult, expand, expand, getDescription, ifElse, orWhen, orWhenNot, passWhen, passWhenNot, skipErrors, unwrap
-
Constructor Details
-
PreprocessFreemarkerTemplateTask
-
-
Method Details
-
doRun
- Specified by:
doRunin interfaceOptionalTask<CorrespondenceParams, Void>- Throws:
Exception
-