Where the callback code are available?

Hi,

Where does these callbacks code are available ?

% $m->callback(CallbackName => ‘BeforeActionList’, ARGSRef => %ARGS, Ticket
=> $Ticket);

To understand how does this works, I was trying to find out where does the
BeforeActionList resides ? But unable to find it in the entire RT4
installation base ? Can somebody pls help me ?

Tried the following to find out, where / what ?

  1. by MasonX::Profiler ( came to know by the reply for my another question )
    – but no success with it also.
  2. find /opt/rt4 -iname ‘beforeactionlist’ # no output
  3. find /opt/rt4 -type f | xargs grep -i ‘BeforeActionList’ # all are same
    kind of callbacks ! no code/definition…

I tried to find out the other callback codes, those are all also not
available ! Any pointers / help is highly appreciated …

Thanks
Moorthy

Hi,
Where does these callbacks code are available ?
% $m->callback(CallbackName => ‘BeforeActionList’, ARGSRef => %ARGS, Ticket => $Ticket);
To understand how does this works, I was trying to find out where does the BeforeActionList
resides ? But unable to find it in the entire RT4 installation base ? Can somebody pls help me
?
Tried the following to find out, where / what ?

  1. by MasonX::Profiler ( came to know by the reply for my another question ) – but no success
    with it also.
  2. find /opt/rt4 -iname ‘beforeactionlist’ # no output
  3. find /opt/rt4 -type f | xargs grep -i ‘BeforeActionList’ # all are same kind of callbacks !
    no code/definition…
    I tried to find out the other callback codes, those are all also not available ! Any pointers
    / help is highly appreciated …

I believe Ruslan pointed you to


which covers Callbacks

-kevin

Yeah, Ruslan pointed me to that URL.

But the information i find there was not useful with RT 4.0.1

The page explains about the RT 3.8.7 and availability of callback code at (
example )

/opt/rt3/local/html/Callbacks/MyCallbacks/Ticket/Display.html/Initial

But this directory Callbacks is not available under ‘/opt/rt4/local/html’

So i searched the whole directory tree, and ( used find ) even no file is
available with any callback name. Grepped - And no file also has content
with that name ( no definition for callbacks I searched, but found some
other files which are only calling this callback - not definition )

Kindly let me know where can I find the definition of this callback in RT
4.0.1 ?

Thanks
MoorthyOn Wed, Aug 24, 2011 at 10:17 PM, Kevin Falcone falcone@bestpractical.comwrote:

On Wed, Aug 24, 2011 at 09:41:36PM +0100, SathiyaMoorthy SP wrote:

Hi,
Where does these callbacks code are available ?
% $m->callback(CallbackName => ‘BeforeActionList’, ARGSRef => %ARGS,
Ticket => $Ticket);
To understand how does this works, I was trying to find out where does
the BeforeActionList
resides ? But unable to find it in the entire RT4 installation base ?
Can somebody pls help me
?
Tried the following to find out, where / what ?

  1. by MasonX::Profiler ( came to know by the reply for my another
    question ) – but no success
    with it also.
  2. find /opt/rt4 -iname ‘beforeactionlist’ # no output
  3. find /opt/rt4 -type f | xargs grep -i ‘BeforeActionList’ # all are
    same kind of callbacks !
    no code/definition…
    I tried to find out the other callback codes, those are all also not
    available ! Any pointers
    / help is highly appreciated …

I believe Ruslan pointed you to
http://requesttracker.wikia.com/wiki/Customizing
which covers Callbacks

-kevin


RT Training Sessions (http://bestpractical.com/services/training.html)

  • Chicago, IL, USA — September 26 & 27, 2011
  • San Francisco, CA, USA — October 18 & 19, 2011
  • Washington DC, USA — October 31 & November 1, 2011
  • Melbourne VIC, Australia — November 28 & 29, 2011
  • Barcelona, Spain — November 28 & 29, 2011

Yeah, Ruslan pointed me to that URL.
But the information i find there was not useful with RT 4.0.1
The page explains about the RT 3.8.7 and availability of callback code at ( example )

That page is fully applicable to 4.0.

/opt/rt3/local/html/Callbacks/MyCallbacks/Ticket/Display.html/Initial

But this directory Callbacks is not available under ‘/opt/rt4/local/html’

You must make it. Just like you must create the files. We do not
ship every possible callback as an empty file.

-kevin