[rt-users] order of scrip execution

Rick Russell rickr at rice.edu
Mon Jun 13 11:24:37 EDT 2005



Dan Fulbright wrote:
> and I made the autoreply stage TransactionBatch

You're on the right track, but TransactionBatch mode has an error that
prevents it from using any of the installed Conditions (at least it did
under 3.2.X; I don't know about 3.4.X yet). You must use a User Defined
condition to use TransactionBatch mode.

So, for example, if your old scrip was

  On Create
  Do Something
  in TransactionCreate mode

You'll need to change it to

  User Defined
  Do Something
  in TransactionBatch mode

and write a User Defined condition like

  if ($self->TransactionObj->Type eq 'Create')
  { return(1); }
  else
  { return(undef); }

Rick R.

-- 
Rick Russell
For computer help, call xHELP (x4357 or 713-348-4357)
OpenPGP/GnuPG Public Key at ldap://certificate.rice.edu
761D 1C20 6428 580F BD98  F5E5 5C8C 56CA C7CB B669
--
Helpdesk Supervisor, Client Services
IT/Academic & Research Computing
Rice University
Voice: 713.348.5267  Fax: 713.348.6099




More information about the rt-users mailing list