wftk core: action handler adaptor

[ back to the core ] [ discussion ]

An action uniquely describes something which the system is supposed to do. An action may be performed immediately, or the permissions configuration for the action may indicate that an approval process is required, in which case the action is deferred. Once the process completes, the action is actually performed. Checking of permissions is not required of the action handler, however; the action handler just has to take the action. Think of an action handler as an API encapsulation.

These are the functions exposed by an action handler adaptor:
0: init   Initialize adaptor instance
1: free   Clean up instance before shutting down
2: info   Return XML describing the adaptor
3: do Action Performs the action
Individual adaptor class handlers may implement additional functions, which will then presumably be available to scripting engines or something.


This code and documentation are released under the terms of the GNU license. They are additionally copyright (c) 2000, Vivtek. All rights reserved except those explicitly granted under the terms of the GNU license. This presentation was prepared with LPML. Try literate programming. You'll like it.