Trace:
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
workflow:documentation [2022/03/30 21:51] admin |
workflow:documentation [2022/03/30 22:06] robot |
||
---|---|---|---|
Line 2: | Line 2: | ||
~~Title: Workflow engine Documentation~~ | ~~Title: Workflow engine Documentation~~ | ||
- | Version: 1.0 / 2022-03-30 | + | Version: 1.0 / 2022-03-31 |
====== Introduction ====== | ====== Introduction ====== | ||
Line 709: | Line 709: | ||
A function is the code block behind a task. It is very simple to create a new function because a function is defined as a simple Java interface: | A function is the code block behind a task. It is very simple to create a new function because a function is defined as a simple Java interface: | ||
- | <code> | + | <code java> |
public interface IFunction | public interface IFunction | ||
{ | { | ||
Line 748: | Line 748: | ||
The interface already has an abstract implementation, so it is really simple to create a new function. Our example will send an email, so it's the EmailFunction: | The interface already has an abstract implementation, so it is really simple to create a new function. Our example will send an email, so it's the EmailFunction: | ||
- | <code> | + | <code java> |
public class EmailFunction extends AbstractFunction | public class EmailFunction extends AbstractFunction | ||
{ | { | ||
Line 795: | Line 795: | ||
The email settings will be read from the application configuration (config.xml file). | The email settings will be read from the application configuration (config.xml file). | ||
- | <code> | + | <code xml> |
<application> | <application> | ||
... | ... |