Adding Your Own Java Code
You can extend the functionality of a task by implementing and calling custom Java code through customization of the task's "Services" bean. This Java bean is available for each task, and you can add Java methods as actions and Java getters as properties of this bean.
Java actions can be called from task events. Java getters (for example, functions such as get<Name>(), which returns a value) can be used in both assignments and events to deliver data. As an example, a getter may return a list of user IDs for assignment or it may return a value to be used for comparison in event condition or for update in an event action.
To add custom Java code to a task
1. In the Solutions view, double-click the task you want to work with to open it in the editor.
2. In the Bindings view, double click Services or right-click Services and click Open to open [TaskName]RuleContext.java in an editor.
3. Add your own custom Java code and save the file.
Related Topics