[rt-users] Running scrips

Gareth Dawson gd250 at cam.ac.uk
Wed Mar 26 04:27:46 EDT 2014


On 25 Mar 2014, at 19:12, Bryon Baker wrote:

> Is there a way to force a scrip to commit immediately?

Don't know.

> Or have the last scrip prepare after the commit has happened on all the other scrips?

Sounds like you want the last scrip set as Batch, and the others set as Normal (CreateTransaction).

Batch scrip run after all the commits from Normal scrips.

Or could you take another approach and have the scrips that depend on the CF changing fire on a "On Transaction" with prepare code that checks for the specific custom field.

I believe normal scrips will cause transactions which in turn can cause more scrips to fire.

Regards,

Gareth


> 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 1:35 PM
> To: RT Users (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
> 2A Update Custom Fields Emails from Scalert
> On Create
> Update CF for Scalert
> Blank
> Enabled
> [Up] [Down]
> 83
> 2A Update Custom Fields for Big Lots
> On Create
> Update CF for BigLots
> Blank
> Enabled
> [Up] [Down]
> 16
> 2A Update Custom Fields for Emails From Tjx
> On Create
> Update CF for Tjx
> Blank
> Enabled
> [Up] [Down]
> 38
> 2A Update Custom Fields for Family Dollar
> On Create
> Update CF for SmsAssist
> Blank
> Enabled
> [Up] [Down]
> 91
> 2A Update Custom Fields for Gnc
> On Create
> Update CF for GNC
> Blank
> Enabled
> [Up] [Down]
> 17
> 2A Update Custom Fields for Home Depot
> On Create
> Update CF for RusComp
> Blank
> Enabled
> [Up] [Down]
> 92
> 2A Update Custom Fields for Jack In The Box
> On Create
> Update CF for Corrigo
> Blank
> Enabled
> [Up] [Down]
> 56
> 2A Update Custom Fields for Message from Spectrum
> On Create
> Update CF for Spectrum
> Blank
> Enabled
> [Up] [Down]
> 94
> 2A Update Custom Fields for Nhaschools
> On Create
> Update CF for Nhaschools
> Blank
> Enabled
> [Up] [Down]
> 93
> 2A Update Custom Fields for Party City
> On Create
> Update CF for fmpilot2
> Blank
> Enabled
> [Up] [Down]
> 29
> 2A Update Custom Fields for Ross Dress For Less
> On Create
> Update CF for Ros
> Blank
> Enabled
> [Up] [Down]
> 14
> 2A Update Custom Fields for Starbucks Corporation
> On Create
> Update CF for Starbucks
> Blank
> Enabled
> [Up] [Down]
> 13
> 2A Update Custom Fields for Target Corporation
> On Create
> Update CF for Target
> Blank
> Enabled
> [Up] [Down]
> 15
> 2A Update Custom Fields for Walgreens
> On Create
> Update CF for Cbre
> Blank
> Enabled
> [Up] [Down]
> 100
> 2A Update CF for Service Change
> On Create
> Update CF for Service Change
> Blank
> Enabled
> [Up] [Down]
> 40
> 3B Change Priority
> On Create
> User Defined
> Blank
> Enabled
> [Up] [Down]
> 35
> 4A Assign Ticket on Create CSR.
> On Create
> User Defined
> Blank
> Enabled
> [Up] [Down]
> 73
> 4B Change Queue when Assigned
> On Owner Change
> User Defined
> Blank
> Enabled
> [Up] [Down]
> 99
> 3A Retrieve Items from RapidTrax
> 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
> www.copesan.com
> "Servicing North America with Local Care"
>  
> -- 
> RT Training - Dallas May 20-21
> http://bestpractical.com/training




More information about the rt-users mailing list