Package com.axelor.workflow.step
Class ReflectiveWorkflowEmailProvider
java.lang.Object
com.axelor.workflow.step.ReflectiveWorkflowEmailProvider
- All Implemented Interfaces:
WorkflowEmailProvider
Uses the optional Axelor Message add-on without making it a core dependency.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.axelor.workflow.spi.WorkflowEmailProvider
WorkflowEmailProvider.SendException, WorkflowEmailProvider.SendRequest, WorkflowEmailProvider.TemplateOption -
Method Summary
Modifier and TypeMethodDescriptionlistTemplates(String model, String jsonModel, String query) Templates available to the current user for the workflow model.voidsend(WorkflowEmailProvider.SendRequest request) Resolves the template, renders it for the record and queues it with its configured sender.
-
Method Details
-
listTemplates
public List<WorkflowEmailProvider.TemplateOption> listTemplates(String model, String jsonModel, String query) Description copied from interface:WorkflowEmailProviderTemplates available to the current user for the workflow model.- Specified by:
listTemplatesin interfaceWorkflowEmailProvider
-
send
Description copied from interface:WorkflowEmailProviderResolves the template, renders it for the record and queues it with its configured sender. Expected failures are thrown asWorkflowEmailProvider.SendException, saying what is known of theActivityEffect, so anon="error"boundary may handle them.- Specified by:
sendin interfaceWorkflowEmailProvider
-