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
ConstructorDescriptionPreprocessFreemarkerTemplateTask
(SaveCorrespondenceService saveCorrespondenceService) -
Method Summary
Modifier and TypeMethodDescriptiondoRun
(CorrespondenceParams params, CommandContext commandContext) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.persist.core.api.exec.OptionalTask
run
Methods inherited from interface ch.tocco.nice2.persist.core.api.exec.PersistTask
andThenDo, compose, compose2, composeWhen, discardResult, expand, expand, getDescription, ifElse, orWhen, orWhenNot, passWhen, passWhenNot, skipErrors, unwrap
-
Constructor Details
-
PreprocessFreemarkerTemplateTask
-
-
Method Details
-
doRun
- Specified by:
doRun
in interfaceOptionalTask<CorrespondenceParams,
Void> - Throws:
Exception
-