Package io.jmix.bpm.engine.behavior
Class BpmMailActivityBehavior
java.lang.Object
org.flowable.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
org.flowable.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
io.jmix.bpm.engine.behavior.BpmMailActivityBehavior
- All Implemented Interfaces:
Serializable
,org.flowable.engine.impl.delegate.ActivityBehavior
,org.flowable.engine.impl.delegate.TriggerableActivityBehavior
public class BpmMailActivityBehavior
extends org.flowable.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
- See Also:
-
Field Summary
Fields inherited from class org.flowable.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
multiInstanceActivityBehavior, v5MultiInstanceActivityBehavior
Fields inherited from class org.flowable.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
bpmnActivityBehavior
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(org.flowable.engine.delegate.DelegateExecution execution) protected String
generateDefaultAttachmentName
(int attachmentsCounter) protected String
getAddresseeValue
(org.flowable.common.engine.api.delegate.Expression expression, org.flowable.engine.delegate.DelegateExecution execution) Returns comma-separated email addresses from provided expression.protected org.springframework.context.ApplicationContext
getAttachments
(org.flowable.engine.delegate.DelegateExecution execution, List<EmailAttachmentModel> emailAttachmentModels) protected org.flowable.common.engine.impl.el.ExpressionManager
protected String
getExpressionValueAsString
(org.flowable.common.engine.api.delegate.Expression expression, org.flowable.engine.delegate.DelegateExecution execution) protected FileStorage
getFileStorage
(String fileStorageName) protected void
Methods inherited from class org.flowable.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
executeCompensateBoundaryEvents, findBoundaryEventsForFlowNode, getMultiInstanceActivityBehavior, getProcessDefinition, getV5MultiInstanceActivityBehavior, hasLoopCharacteristics, hasMultiInstanceCharacteristics, leave, setMultiInstanceActivityBehavior, setV5MultiInstanceActivityBehavior
Methods inherited from class org.flowable.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
leaveIgnoreConditions, parseActivityType, trigger
-
Constructor Details
-
BpmMailActivityBehavior
public BpmMailActivityBehavior()
-
-
Method Details
-
execute
public void execute(org.flowable.engine.delegate.DelegateExecution execution) - Specified by:
execute
in interfaceorg.flowable.engine.impl.delegate.ActivityBehavior
- Overrides:
execute
in classorg.flowable.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
-
initSpringBeans
protected void initSpringBeans() -
getAddresseeValue
protected String getAddresseeValue(org.flowable.common.engine.api.delegate.Expression expression, org.flowable.engine.delegate.DelegateExecution execution) Returns comma-separated email addresses from provided expression. In common case expression can contain comma or semicolon separated parts, each part can present a direct email, like 'john@doe.com' or a process variable which contain email or collection of emails. -
getExpressionValueAsString
protected String getExpressionValueAsString(org.flowable.common.engine.api.delegate.Expression expression, org.flowable.engine.delegate.DelegateExecution execution) -
getAttachments
protected Map<String,byte[]> getAttachments(org.flowable.engine.delegate.DelegateExecution execution, List<EmailAttachmentModel> emailAttachmentModels) throws IOException - Throws:
IOException
-
getFileStorage
-
getExpressionManager
protected org.flowable.common.engine.impl.el.ExpressionManager getExpressionManager() -
getAppContext
protected org.springframework.context.ApplicationContext getAppContext() -
generateDefaultAttachmentName
-