-
Book Overview & Buying
-
Table Of Contents
OSWorkflow: A guide for Java developers and architects to integrating open-source Business Process Management
trigger-functions are a special type of OSWorkflow function designed specifically for job scheduling and external triggering. These functions are executed when the Quartz trigger fires, thus the name. trigger-functions are not associated with an action and they have a unique ID. You shouldn't execute a trigger-function in your code.
To define a trigger-function in the definition, put the trigger-functions declaration before the initial-actions element.
…
<trigger-functions>
<trigger-function id="10">
<function type="beanshell">
<arg name="script">
propertySet.setString("triggered", "true");
</arg>
</function>
</trigger-function>
</trigger-functions>
<initial-actions>
…
This XML definition fragment declares a trigger-function (having an ID of 10), which executes a beanshell script. This script will put a named property inside the PropertySet of the instance but you can define a trigger-function just like any other Java...
Change the font size
Change margin width
Change background colour