Package org.flowable.mail.common.impl
Class BaseMailActivityDelegate<V extends VariableContainer>
java.lang.Object
org.flowable.mail.common.impl.BaseMailActivityDelegate<V>
- Type Parameters:
V
- The type of the variable container
- Direct Known Subclasses:
BpmnMailActivityDelegate
,CmmnMailActivityDelegate
- Author:
- Filip Hrisafov
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static final record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Expression
protected Expression
protected Expression
protected Expression
protected Expression
protected Expression
protected Expression
protected Expression
protected Expression
protected Expression
protected final org.slf4j.Logger
protected Expression
protected Expression
protected Expression
protected Expression
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addAttachments
(MailMessage message, V variableContainer) protected void
addExpressionValueAttachment
(MailMessage message, Object value, V variableContainer) protected void
addHeader
(MailMessage message, String headersStr) protected abstract Expression
createExpression
(String expressionText) protected SendMailRequest
createMailRequest
(V variableContainer) protected MailMessage
createMessage
(V variableContainer) protected boolean
fileExists
(File file) protected abstract ContentService
protected Expression
getExpression
(V variableContainer, Expression var) protected abstract FlowableMailClient
getMailClient
(V variableContainer) protected String
getStringFromField
(Expression expression, V variableContainer) protected void
handleException
(V variableContainer, String msg, FlowableException e) protected Collection<String>
parseRecipients
(Expression expression, V variableContainer) protected void
prepareAndExecuteRequest
(V variableContainer) protected ExecutableSendMailRequest
prepareRequest
(V variableContainer)
-
Field Details
-
logger
protected final org.slf4j.Logger logger -
to
-
from
-
cc
-
bcc
-
headers
-
subject
-
text
-
textVar
-
html
-
htmlVar
-
charset
-
ignoreException
-
exceptionVariableName
-
attachments
-
-
Constructor Details
-
BaseMailActivityDelegate
public BaseMailActivityDelegate()
-
-
Method Details
-
prepareAndExecuteRequest
-
prepareRequest
-
createMailRequest
-
getMailClient
-
createExpression
-
getContentService
-
createMessage
-
addHeader
-
addAttachments
-
addExpressionValueAttachment
-
getStringFromField
-
parseRecipients
-
fileExists
-
getExpression
-
handleException
-