Want to get rid of Google Ads, click here.
+ Reply to Thread
Results 1 to 14 of 14

Thread: RAD routine to execute a script from a schedule record

  1. #1
    Member
    Join Date
    Jul 2002
    Location
    Florida, USA
    Posts
    56

    Default RAD routine to execute a script from a schedule record

    How to use:
    1. name of routine is bcbs.schedule.script, put this in the application field on the schedule record.

    2. in the "strings" array, put the name of the script you want to execute in the first element of the array.

    3. now, in the script, $script has no meaningful value, you have to use an rtecall() to initialize any variables you want to use (whereas in a 'normal' script, $script contains your $file values, etc).
    Attached Files

  2. #2
    Junior Member
    Join Date
    Apr 2002
    Location
    Denmark
    Posts
    2

    Default I can't get bcbs.schedule.script to work

    In SC5, I have created a script that updates a specific call record. I use rtecalls in the script and I have tested it through the debugger.
    However when I run a schedule record that calls bcbs.schedule.script nothing happens, (I have entered the name of the script in the strings array).
    Is there anything else that can go wrong?
    Does anyone have an example, where they use this application?

  3. #3
    Senior Member
    Join Date
    May 2002
    Location
    Dragør
    Posts
    290

    Default

    hi...
    you can schedule a script by following document id S66-R0R-13HB on support.peregrine.com.
    Jeppe Gotha Jørgensen
    Service Management Consultant
    Globicon A/S

  4. #4
    Administrator tommy's Avatar
    Join Date
    Nov 2001
    Location
    Copenhagen
    Posts
    4,272

    Default

    Quote Originally Posted by jeppegotha
    hi...
    you can schedule a script by following document id S66-R0R-13HB on support.peregrine.com.
    We know that but that is higly complex solution to do something very simple and thats why saburns initally got the application in question. So we prefer to use this one if we can get it to run.
    Best regards Tommy
    Blog - - ITIL certified - Accredited Integration Specialist – HP OpenView Service Management

    Want to keep this site alive? Consider making a donation. Click here.

  5. #5
    Senior Member
    Join Date
    Feb 2003
    Posts
    114

    Default

    Or, if you've licensed the scheduled maintenance module, you can use it to schedule the script which makes the process almost trivially easy. Of course, you have to have licensed the module .

  6. #6
    Administrator tommy's Avatar
    Join Date
    Nov 2001
    Location
    Copenhagen
    Posts
    4,272

    Default

    Quote Originally Posted by pcasey
    Or, if you've licensed the scheduled maintenance module, you can use it to schedule the script which makes the process almost trivially easy. Of course, you have to have licensed the module .
    And we don't
    Best regards Tommy
    Blog - - ITIL certified - Accredited Integration Specialist – HP OpenView Service Management

    Want to keep this site alive? Consider making a donation. Click here.

  7. #7
    Administrator tommy's Avatar
    Join Date
    Nov 2001
    Location
    Copenhagen
    Posts
    4,272

    Default Re: I can't get bcbs.schedule.script to work

    Quote Originally Posted by Jakob
    In SC5, I have created a script that updates a specific call record. I use rtecalls in the script and I have tested it through the debugger.
    However when I run a schedule record that calls bcbs.schedule.script nothing happens, (I have entered the name of the script in the strings array).
    Is there anything else that can go wrong?
    Does anyone have an example, where they use this application?

    It is You that are doing something wrong 8) :roll: :wink: (Jakob is sitting next to me ... )
    Best regards Tommy
    Blog - - ITIL certified - Accredited Integration Specialist – HP OpenView Service Management

    Want to keep this site alive? Consider making a donation. Click here.

  8. #8
    Junior Member
    Join Date
    Dec 2001
    Location
    United States
    Posts
    18

    Default I can't get bcbs.schedule.script to work

    Did anyone ever get this to work? :roll:

  9. #9
    Administrator tommy's Avatar
    Join Date
    Nov 2001
    Location
    Copenhagen
    Posts
    4,272

    Default

    No we have not had any luck yet on SC5. And the knowledge article Jeppe refers to does not work either.
    Best regards Tommy
    Blog - - ITIL certified - Accredited Integration Specialist – HP OpenView Service Management

    Want to keep this site alive? Consider making a donation. Click here.

  10. #10
    Junior Member
    Join Date
    Dec 2001
    Location
    United States
    Posts
    18

    Default Auto-close Problem/Incident tickets

    Then, is anyone able to auto-close tickets?

  11. #11
    Junior Member
    Join Date
    Apr 2002
    Location
    Denmark
    Posts
    2

    Default

    The solution outlined in S66-R0R-13HB does actually work, so you are able to use that solution to schedule the closing of tickets. I'm working on that myself.
    I think however that you should be careful not to update tickets that are locked. That could cause some problems if a user is updating the ticket manually.

  12. #12
    Member
    Join Date
    Jan 2002
    Location
    US - Philadelphia, PA
    Posts
    77

    Default

    I found several useful posts in this forum for autoclosing tickets (see thread titled Auto Close Problem).

    Write a script that uses RTE to create eventin records. Then create a report that runs the script.

    I have 4 seperate auto-close routines for various scenarios that our help desk needs.

    I'd be happy to share upon request.

  13. #13
    Junior Member
    Join Date
    Apr 2002
    Location
    Sweden
    Posts
    1

    Default

    Hi,
    I haven't been here for a while know so I didn't know about this problem. I downloaded the RAD bcbs.schedule.script back in november and it works excellent (many thanks Shirley and Tommy). I'm now in the test phase of upgrading to SC5 and the RAD works great even in SC5.
    If you still haven't get this to work let me know and I will create an unload file with the appropriate records so you can see how I'm using it.

    Rgd/Josip

  14. #14
    Member
    Join Date
    Jul 2002
    Location
    Florida, USA
    Posts
    56

    Default

    sorry I wasn't checking in for a while. You should be able to run any script using this routine. As a 'debug' to see if the script is running or not, you can put in a rtecall("log"....) statelement in your script; see if the message prints to your sc.log... if it does, then you know the script is running and we can then work through your logic a little.

    Remember, the biggest trick here is that in a normal script, the system initializes and populates $script so that you can refer to $script the same way you would normally refer to $file in a record. But with this function, you have to initialize $script first. So, in your example, you have to make sure you have expressions on your very first expressions lines in your script to initialize and populate $script if you want to use it; for example:

    $L.flag = rtecall("rinit", $L.rc, $script, "incidents")
    $L.flag = rtecall("select", $L.rc, $script, "incident.id = "+$my.incident.no)

    Shirley

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts