FormHandlerTaskBase (open)
Base class for form handler managed tasks
Syntax
LOADLIB "mod::publisher/lib/forms/tasks.whlib";
OBJECTTYPE FormHandlerTaskBase
Variables
- BOOLEAN debug (inherited from ManagedTaskBase)
Whether debugging is enabled for this task
- STRING mutex (inherited from ManagedTaskBase)
If set, mutex to lock in the work that is opened around ExecuteTask
Functions
- RECORD FUNCTION GetTaskMetadata() (inherited from ManagedTaskBase)
Returns the task metadata
- MACRO PrepareTask(RECORD data)
- MACRO ResolveByCancellation(RECORD retval, STRING error)
- MACRO ResolveByCompletion(RECORD retval)
- MACRO ResolveByFailure(RECORD retval, STRING error)
- MACRO ResolveByRestart(DATETIME when, RECORD options)
- MACRO RunFormTask(RECORD result)
Override RunFormTask with your task code. Throw exceptions if something fails and you want to be restarted, and use ResolveByRestart for a graceful continuation later
- MACRO RunTask(RECORD data)