Scrips order/ or notify syntax

Hi there;
Is there a way to control the order scrips are excuted?
I have 2 Queue scrips scrip1- on create set an owner pending on certain
conditions
scrip2- on create notify the owner…
Even though I created scrip1 before scrip2, rt seems to run 2 before 1.
I guess the query that select the scrips to be excuted have no ORDER
close in it, I can add it but for the life of me I can’t find where its
called from ist Scrip.pm or Scrips.pm
Another question what is the syntax to notify …(for example how do I
write a custom scrip to notify --owner-- with template
–correpondence–), That way I can combine my 2 scrips into 1.
My system is rt-3.4.4 , mod perl 2 apache2 mysql 4.1.14 and search
builder DBIx::SearchBuilder v1.33;
Many thanks;
Roy

http://wiki.bestpractical.com/?ScripExecOrderOn 3/28/06, Roy El-Hames rfh@pipex.net wrote:

Hi there;
Is there a way to control the order scrips are excuted?
I have 2 Queue scrips scrip1- on create set an owner pending on certain
conditions
scrip2- on create notify the owner…
Even though I created scrip1 before scrip2, rt seems to run 2 before 1.
I guess the query that select the scrips to be excuted have no ORDER
close in it, I can add it but for the life of me I can’t find where its
called from ist Scrip.pm or Scrips.pm
Another question what is the syntax to notify …(for example how do I
write a custom scrip to notify --owner-- with template
–correpondence–), That way I can combine my 2 scrips into 1.
My system is rt-3.4.4 , mod perl 2 apache2 mysql 4.1.14 and search
builder DBIx::SearchBuilder v1.33;
Many thanks;
Roy


http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

We’re hiring! Come hack Perl for Best Practical: http://bestpractical.com/about/jobs.html

Best regards, Ruslan.

You should defnitely read the article that Ruslan posted. As usual, he
is quick on the draw and correct.

With that said, keep in mind that you shouldn’t think of many things in
RT as happening in a certain “order”. The system is multithreaded; it’s
not waiting for a certain scrip to finish before executing another
scrip. It’s running them all at the same time.

Once you get TransactionBatch turned on for your installation, you can
separate scrip execution into two stages.

Rick R.

Roy El-Hames wrote:

Hi there;
Is there a way to control the order scrips are excuted?

rickr.vcf (182 Bytes)