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. CallerSets the transient variable caller with the username of the person doing the current action. WebWorkExecutorExecutes a WebWork function and restores the old ActionContext when finished. EJBInvokerInvokes an EJB session bean method. Please see the javadocs for more information about expected arguments and EJB restrictions. JMSMessageSends a TextMessage to a JMS topic or queue. MostRecentOwnerSets the transient 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. ScheduleJobSchedules a Trigger functions to be executed at some time later. Supports both cron expressions and simple repeat/delay counts. UnschduleJobDeletes 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. SendEmailSends out an email to one or more users.
|