[rt-users] Add a Condition as a perl module

Ruslan U. Zakirov cubic at acronis.ru
Wed Mar 31 05:29:50 EST 2004


Sebastien Person wrote:
> Hi,
> 
> I'm trying to add a Scrip Condition as a perl module. I have 2 questions :
> 
> 1 - Where the file must be (I'm not sure that the local directory could be used)
> ? 
> rt/lib/RT/Condition/MyCondition.pm or rt/local/lib/RT/Condition/MyCondition.pm
Any where where perl could find next module 'RT::Condition::MyCondition'
'local' fine too.
> 
> 2 - I must insert a row in the DB. I can use the RT::ScripCondition->Create()
> to achieve this, but I have a question about the 'ApplicableTransTypes' 
> columns. Is it possible to fill it with 'Correspond,Comment' in the same row ?
> I would like my scrip to be fired in Correspond or Comment transaction type....

Nope, comma separated list not available.
Work around:
1) use 'Any' for 'ApplicableTransTypes'
2) return false in 'sub IsApplicable' of your condition.

> 
> 
> Any hints would be appreciated...
>  
> _______________________________________________
> rt-users mailing list
> rt-users at lists.bestpractical.com
> http://lists.bestpractical.com/mailman/listinfo/rt-users
> 
> Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm




More information about the rt-users mailing list