CustomActionPreparationCode

From Request Tracker Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Scrip field that is only used when ScripAction is 'User-Defined'.

You should put code into this field which prepare action to commit(cleanup) phase. Code has access to $self object that is instance of 'RT::Action::UserDefined' class. Code should return true value on success and false on error. CustomActionCleanupCode would execute only if prepare code returned true value.

See also: WriteCustomAction