Package com.axelor.workflow.spi
Interface WorkflowEmailProvider
- All Known Implementing Classes:
ReflectiveWorkflowEmailProvider
public interface WorkflowEmailProvider
SPI for template-based workflow email.
AppModule binds a default adapter over the
optional Axelor Message add-on; applications may bind their own. Bound rather than
@ImplementedBy so this package depends on nothing else in the engine.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classAn expected template generation or queue-submission failure that a workflow may catch.static final recordstatic final record -
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
List<WorkflowEmailProvider.TemplateOption> listTemplates(String model, String jsonModel, String query) Templates available to the current user for the workflow model. -
send
Resolves 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.
-