[rt-users] Running scrips

Bryon Baker bbaker at copesan.com
Tue Mar 25 16:11:34 EDT 2014


Of I could do this at the end of the commit for every scrip that is updating the CF's.

#              if (RT::Action::RetriveDataFromRapidTrax::Prepare($self->TicketObj))
#              {
#                              RT::Action::RetriveDataFromRapidTrax::Commit()
#              }

If I do that how would I pass the ticket object to that external module?

Thanks

Bryon Baker
Network Operations Manager
Copesan - Specialists in Pest Solutions
800-267-3726  *  262-783-6261 ext. 2296
bbaker at copesan.com<mailto:cstephan at copesan.com>
www.copesan.com<http://www.copesan.com/>
"Servicing North America with Local Care"

From: rt-users-bounces at lists.bestpractical.com [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Bryon Baker
Sent: Tuesday, March 25, 2014 2:12 PM
To: RT Users (rt-users at lists.bestpractical.com)
Subject: Re: [rt-users] Running scrips

Is there a way to force a scrip to commit immediately? Or have the last scrip prepare after the commit has happened on all the other scrips?

When I watch the log I see commits happening after all scrips have been prepared.

Thanks

Bryon Baker
Network Operations Manager
Copesan - Specialists in Pest Solutions
800-267-3726  *  262-783-6261 ext. 2296
bbaker at copesan.com<mailto:cstephan at copesan.com>
www.copesan.com<http://www.copesan.com/>
"Servicing North America with Local Care"

From: rt-users-bounces at lists.bestpractical.com<mailto:rt-users-bounces at lists.bestpractical.com> [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Bryon Baker
Sent: Tuesday, March 25, 2014 1:35 PM
To: RT Users (rt-users at lists.bestpractical.com<mailto:rt-users at lists.bestpractical.com>)
Subject: [rt-users] Running scrips

Need help figuring out how scrips fire.

I have the following scrips most scrips are custom actions and all work using the rt-crontool.  The issue I am have is the last scrip depends on the previous scrip changing CF which seems to be the problem. Scrip "3A Retrieve Items from RapidTrax" depends on the previous scrips to change CF I have the "3A Retrieve Items from RapidTrax" outputting a debug log of what the CF are set to at start time and at that time they are all blank but if I open the ticket the fields have values and if I run the scrip using the rt-crontool after viewing the ticket then it will do the work needed.

I have set these scrips up using the normal mode and the batch mode and I have used custom actions and custom conditions.  If was comparing this to a database it like the commit commands needs to be executed.

Is there a timer that I need to set to wait for?
Is there a commit command I need to use?

54<http://testhelpdesk.copesan.com/rt/Admin/Scrips/Modify.html?id=54>

2A Update Custom Fields Emails from Scalert<http://testhelpdesk.copesan.com/rt/Admin/Scrips/Modify.html?id=54>

On Create

Update CF for Scalert

Blank

Enabled

[Up] [Down]

83<http://testhelpdesk.copesan.com/rt/Admin/Scrips/Modify.html?id=83>

2A Update Custom Fields for Big Lots<http://testhelpdesk.copesan.com/rt/Admin/Scrips/Modify.html?id=83>

On Create

Update CF for BigLots

Blank

Enabled

[Up] [Down]

16<http://testhelpdesk.copesan.com/rt/Admin/Scrips/Modify.html?id=16>

2A Update Custom Fields for Emails From Tjx<http://testhelpdesk.copesan.com/rt/Admin/Scrips/Modify.html?id=16>

On Create

Update CF for Tjx

Blank

Enabled

[Up] [Down]

38<http://testhelpdesk.copesan.com/rt/Admin/Scrips/Modify.html?id=38>

2A Update Custom Fields for Family Dollar<http://testhelpdesk.copesan.com/rt/Admin/Scrips/Modify.html?id=38>

On Create

Update CF for SmsAssist

Blank

Enabled

[Up] [Down]

91<http://testhelpdesk.copesan.com/rt/Admin/Scrips/Modify.html?id=91>

2A Update Custom Fields for Gnc<http://testhelpdesk.copesan.com/rt/Admin/Scrips/Modify.html?id=91>

On Create

Update CF for GNC

Blank

Enabled

[Up] [Down]

17<http://testhelpdesk.copesan.com/rt/Admin/Scrips/Modify.html?id=17>

2A Update Custom Fields for Home Depot<http://testhelpdesk.copesan.com/rt/Admin/Scrips/Modify.html?id=17>

On Create

Update CF for RusComp

Blank

Enabled

[Up] [Down]

92<http://testhelpdesk.copesan.com/rt/Admin/Scrips/Modify.html?id=92>

2A Update Custom Fields for Jack In The Box<http://testhelpdesk.copesan.com/rt/Admin/Scrips/Modify.html?id=92>

On Create

Update CF for Corrigo

Blank

Enabled

[Up] [Down]

56<http://testhelpdesk.copesan.com/rt/Admin/Scrips/Modify.html?id=56>

2A Update Custom Fields for Message from Spectrum<http://testhelpdesk.copesan.com/rt/Admin/Scrips/Modify.html?id=56>

On Create

Update CF for Spectrum

Blank

Enabled

[Up] [Down]

94<http://testhelpdesk.copesan.com/rt/Admin/Scrips/Modify.html?id=94>

2A Update Custom Fields for Nhaschools<http://testhelpdesk.copesan.com/rt/Admin/Scrips/Modify.html?id=94>

On Create

Update CF for Nhaschools

Blank

Enabled

[Up] [Down]

93<http://testhelpdesk.copesan.com/rt/Admin/Scrips/Modify.html?id=93>

2A Update Custom Fields for Party City<http://testhelpdesk.copesan.com/rt/Admin/Scrips/Modify.html?id=93>

On Create

Update CF for fmpilot2

Blank

Enabled

[Up] [Down]

29<http://testhelpdesk.copesan.com/rt/Admin/Scrips/Modify.html?id=29>

2A Update Custom Fields for Ross Dress For Less<http://testhelpdesk.copesan.com/rt/Admin/Scrips/Modify.html?id=29>

On Create

Update CF for Ros

Blank

Enabled

[Up] [Down]

14<http://testhelpdesk.copesan.com/rt/Admin/Scrips/Modify.html?id=14>

2A Update Custom Fields for Starbucks Corporation<http://testhelpdesk.copesan.com/rt/Admin/Scrips/Modify.html?id=14>

On Create

Update CF for Starbucks

Blank

Enabled

[Up] [Down]

13<http://testhelpdesk.copesan.com/rt/Admin/Scrips/Modify.html?id=13>

2A Update Custom Fields for Target Corporation<http://testhelpdesk.copesan.com/rt/Admin/Scrips/Modify.html?id=13>

On Create

Update CF for Target

Blank

Enabled

[Up] [Down]

15<http://testhelpdesk.copesan.com/rt/Admin/Scrips/Modify.html?id=15>

2A Update Custom Fields for Walgreens<http://testhelpdesk.copesan.com/rt/Admin/Scrips/Modify.html?id=15>

On Create

Update CF for Cbre

Blank

Enabled

[Up] [Down]

100<http://testhelpdesk.copesan.com/rt/Admin/Scrips/Modify.html?id=100>

2A Update CF for Service Change<http://testhelpdesk.copesan.com/rt/Admin/Scrips/Modify.html?id=100>

On Create

Update CF for Service Change

Blank

Enabled

[Up] [Down]

40<http://testhelpdesk.copesan.com/rt/Admin/Scrips/Modify.html?id=40>

3B Change Priority<http://testhelpdesk.copesan.com/rt/Admin/Scrips/Modify.html?id=40>

On Create

User Defined

Blank

Enabled

[Up] [Down]

35<http://testhelpdesk.copesan.com/rt/Admin/Scrips/Modify.html?id=35>

4A Assign Ticket on Create CSR.<http://testhelpdesk.copesan.com/rt/Admin/Scrips/Modify.html?id=35>

On Create

User Defined

Blank

Enabled

[Up] [Down]

73<http://testhelpdesk.copesan.com/rt/Admin/Scrips/Modify.html?id=73>

4B Change Queue when Assigned<http://testhelpdesk.copesan.com/rt/Admin/Scrips/Modify.html?id=73>

On Owner Change

User Defined

Blank

Enabled

[Up] [Down]

99<http://testhelpdesk.copesan.com/rt/Admin/Scrips/Modify.html?id=99>

3A Retrieve Items from RapidTrax<http://testhelpdesk.copesan.com/rt/Admin/Scrips/Modify.html?id=99>

On Create

Retrive RapidTrax Data

Blank

Enabled

[Up] [Down]
Bottom of Form



Thanks in advance for the help.

Bryon Baker
Network Operations Manager
Copesan - Specialists in Pest Solutions
800-267-3726  *  262-783-6261 ext. 2296
bbaker at copesan.com<mailto:cstephan at copesan.com>
www.copesan.com<http://www.copesan.com/>
"Servicing North America with Local Care"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20140325/8ef30556/attachment.htm>


More information about the rt-users mailing list