Trace:
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
workflow:custom_function [2019/03/13 14:31] admin |
workflow:custom_function [2019/03/13 14:47] admin |
||
---|---|---|---|
Line 53: | Line 53: | ||
if (smtp == null) | if (smtp == null) | ||
{ | { | ||
- | throw new IllegalArgumentException("The SMTP server configuration was not found in the application zone (path /application/mail/smtp)!"); | + | throw new IllegalArgumentException("SMTP config not found (path /application/mail/smtp)!"); |
} | } | ||
Line 87: | Line 87: | ||
} | } | ||
</file> | </file> | ||
+ | |||
+ | The implementation is straight forward. It extends the AbstractFunction and implements run method. The email settings will be read from the [[jvx:common:setup:zones|application configuration]] and the email settings will be read from the input parameters. Finally, the email will be sent. | ||
+ | |||
+ | But there's still one open question: How do we define the input parameters? | ||
+ | |||
+ | Simply use the Functions screen and enter all required information: | ||
+ | |||
+ | {{:workflow:wf_emailfunction.png?nolink|}} | ||
+ | |||
+ | That's it. Start using you new function. | ||
+ | |||
+ |