Class StructuredEmailData
java.lang.Object
com.flowable.platform.common.el.StructuredEmailData
- All Implemented Interfaces:
org.flowable.common.engine.api.variable.VariableContainer
public class StructuredEmailData
extends Object
implements org.flowable.common.engine.api.variable.VariableContainer
A navigable view over an email content item's structured rendition data, exposed to expressions
as
${contentItem.structuredData} when the content item is of type email.
Resolves (via VariableContainer.getVariable(String), invoked by HierarchyVariableELResolver):
attachments- the attachment content items (cache-aware, so visible within the triggering transaction as well as afterwards),- content item / rendition fields (
id, name, mimeType, type, subType, scopeId, scopeType, processInstanceId, taskId, tenantId, parentFolderId, created, createdBy, lastModified, lastModifiedBy, contentSize), - every email payload field present in the structured JSON (
from, to, subject, ...).
- Author:
- Micha Kiener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CoreContentItemprotected final tools.jackson.databind.node.ObjectNode -
Constructor Summary
ConstructorsConstructorDescriptionStructuredEmailData(CoreContentItem contentItem, tools.jackson.databind.node.ObjectNode data) -
Method Summary
Modifier and TypeMethodDescriptiongetVariable(String variableName) booleanhasVariable(String variableName) protected List<CoreContentItem> voidsetTransientVariable(String variableName, Object variableValue) voidsetVariable(String variableName, Object variableValue)
-
Field Details
-
MAIL_PAYLOAD_FIELDS
-
contentItem
-
data
protected final tools.jackson.databind.node.ObjectNode data
-
-
Constructor Details
-
StructuredEmailData
public StructuredEmailData(CoreContentItem contentItem, tools.jackson.databind.node.ObjectNode data)
-
-
Method Details
-
hasVariable
- Specified by:
hasVariablein interfaceorg.flowable.common.engine.api.variable.VariableContainer
-
getVariable
-
resolveAttachments
-
setVariable
-
setTransientVariable
-
getTenantId
- Specified by:
getTenantIdin interfaceorg.flowable.common.engine.api.variable.VariableContainer
-
getVariableNames
-