cancel
Showing results for 
Search instead for 
Did you mean: 

Use of MailActivityBehavior as TaskListener

tstephen
Champ on-the-rise
Champ on-the-rise
Hi,

It seems like it would be useful to be able to reuse this class to send mail in a listener. From a quick review it looks like changing
public void execute(ActivityExecution execution)
to
public void execute(DelegateExecution execution)
. The only line that needs ActivityExecution is to call leave, which seems like it could be wrapped in an if instanceof ActivityExecution.

Does this seem a reasonable change to JIRA?
Tim
1 REPLY 1

frederikherema1
Star Contributor
Star Contributor
Sending a mail from within a tasklistener sounds like a good usecase, you can always add it to jira as feature request.