[rt-users] "Tutorial on Creating ScripConditions" in RT Hacker Guide
Bob Goldstein
bobg at uic.edu
Tue Jun 29 10:25:45 EDT 2004
I'm just a beginner myself, in this regard of scrips. But see:
http://wiki.bestpractical.com/index.cgi?WriteCustomCondition
and
http://wiki.bestpractical.com/index.cgi?NotResolved
It seems there are two methods -- one writing some new code
into the underlying libraries, and one sticking code into
the database via web pages.
The way I read it (*please* -- someone correct me if I'm wrong!)
if you want to make a standalone ScripCondition, that could
be used (maybe with arguments) in more than one Scrip, then you
need to write the code as in the Hacker's guide or the NotResolved
wiki article. (Mind you, I don't know if the Hacker's guide is
correct for v3, but the sql tables look similar, so it's
probably close). But if you just want to make a single new
Scrip (the full combo of condition-action-template) and you want
this single new Scrip to have a custom condition (and/or custom
action), you can fill in the code in the web page under New Scrip.
If I'm right, then using the database is simpler, and easier
when you upgrade RT versions. But it only applies to a single
scrip, so you don't get any code reuse for other scrips.
bobg
>Is the "Tutorial on Creating ScripConditions" in the RT Hacker Guide still
>valid for RT 3.0?
>
>-Phil
>
>_________________________________________________________________
>FREE pop-up blocking with the new MSN Toolbar get it now!
>http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
>
>_______________________________________________
>http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
>RT Developer and Administrator training is coming to LA, DC and Frankfurt this
> spring and summer.
>http://bestpractical.com/services/training.html
>
>Sign up early, as class space is limited.
>
>
>
>!DSPAM:40e16d67226242067419432!
>
>
More information about the rt-users
mailing list