OSWorkflow comes with several very useful utility functions, all implementing the interface com.opensymphony.workflow.FunctionProvider. For more detailed information, please see the javadocs for these utility functions. Below is only a brief description of each utility function. All classes are found in the com.opensymphony.workflow.util package.
Sets the persistent variable caller with the username of the person doing the current action.
Invokes an EJB session bean method. Please see the javadocs for more information about expected arguments and EJB restrictions.
Sends a TextMessage to a JMS topic or queue.
Sets the persistent variable mostRecentOwner with the username of the owner of the most recent step specified. Optional features allow for the variable be set to nothing if no owner is found, or to return with an internal error.
Schedules a trigger function to be executed at some time later. Supports both cron expressions and simple repeat/delay counts. It requires the username and password of a valid user so that the QuartzRunner application can properly authenticate. This is usually a system account, though it can be a real user too if you so desire.
Deletes a scheduled job and all triggers associated with that job. This is useful in the case where the workflow state has changed such that you no longer wish for scheduled jobs to occur.
Sends out an email to one or more users.