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

    Fields inherited from class org.flowable.engine.impl.bpmn.behavior.FlowNodeActivityBehavior

    bpmnActivityBehavior
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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
     
    protected Map<String,byte[]>
    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, hasLoopCharacteristics, hasMultiInstanceCharacteristics, leave, setMultiInstanceActivityBehavior

    Methods inherited from class org.flowable.engine.impl.bpmn.behavior.FlowNodeActivityBehavior

    leaveIgnoreConditions, parseActivityType, trigger

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BpmMailActivityBehavior

      public BpmMailActivityBehavior()
  • Method Details

    • execute

      public void execute(org.flowable.engine.delegate.DelegateExecution execution)
      Specified by:
      execute in interface org.flowable.engine.impl.delegate.ActivityBehavior
      Overrides:
      execute in class org.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

      protected FileStorage getFileStorage(String fileStorageName)
    • getExpressionManager

      protected org.flowable.common.engine.impl.el.ExpressionManager getExpressionManager()
    • getAppContext

      protected org.springframework.context.ApplicationContext getAppContext()
    • generateDefaultAttachmentName

      protected String generateDefaultAttachmentName(int attachmentsCounter)