[rt-users] order of scrip execution

Ruslan U. Zakirov Ruslan.Zakirov at miet.ru
Mon Jun 13 16:11:17 EDT 2005


Rick Russell wrote:
> 
> 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.
> 
This should be fixed in 3.4.3, AFAIK.



More information about the rt-users mailing list