HTTP trigger script using ECC variable/Call sub flow - not working

Hello all,
I am trying to http trigger script which will show the real time stats of the CSQs. The script is based on "Day of week" and Time of day" checking the queue time and will update the HTML doc to show as real time data. The scripts for various CSQs has multiple boolean variable (parameter, set to false by default) like "open/night/emergency/meeting" which can be set to open or close the queue by the supervisor depending on the situation. For ex, if a variable is set to True in application page for any of the Queue, I am trying to send that "true" value to the http trigger script, so that these can be shown real time.
Steps tried:
1. Tried using ECC variable - setting a ECC variable to True in the main script and getting that value in the http trigger script to a local variable, if found True, the display as "CSQ1 = OPEN", else "CSQ1 = CLOSED" ; but the script gave an error as attached (http1.png)
2. Tried using Call sub flow - Like Holiday check, under the "Rest" branch of "Time of Day" - will check the queue and will get the value returned to the local variable - Failed and it shows an error as attached (http2.png)
As of now, I have completed the script with the logic of checking the logged in agents count in the CSQs and updating the Real time data. But it has some issues like, if an agent didnt logged out properly or if an agent is asked to login during OOH although the queue is closed, as per the logged in resource logic, the data is shown as OPEN.
Please share your thoughts on this and if you have come across such a script, kindly share as a knowledge share.
Thanks in advance.
Bala.

Hello all,
I am trying to http trigger script which will show the real time stats of the CSQs. The script is based on "Day of week" and Time of day" checking the queue time and will update the HTML doc to show as real time data. The scripts for various CSQs has multiple boolean variable (parameter, set to false by default) like "open/night/emergency/meeting" which can be set to open or close the queue by the supervisor depending on the situation. For ex, if a variable is set to True in application page for any of the Queue, I am trying to send that "true" value to the http trigger script, so that these can be shown real time.
Steps tried:
1. Tried using ECC variable - setting a ECC variable to True in the main script and getting that value in the http trigger script to a local variable, if found True, the display as "CSQ1 = OPEN", else "CSQ1 = CLOSED" ; but the script gave an error as attached (http1.png)
2. Tried using Call sub flow - Like Holiday check, under the "Rest" branch of "Time of Day" - will check the queue and will get the value returned to the local variable - Failed and it shows an error as attached (http2.png)
As of now, I have completed the script with the logic of checking the logged in agents count in the CSQs and updating the Real time data. But it has some issues like, if an agent didnt logged out properly or if an agent is asked to login during OOH although the queue is closed, as per the logged in resource logic, the data is shown as OPEN.
Please share your thoughts on this and if you have come across such a script, kindly share as a knowledge share.
Thanks in advance.
Bala.

Similar Messages

  • When should I use static variable and when should not? Java essential

    When should I use static variable and when should not? Java essential

    Static => same value for all instances of the class.
    Non-static => each instance can have its own value.
    Which you need in which circumstances is completely up to you.

  • HT4623 my voice call services is not working with cellular network...only works fine with wifi..please help?

    my voice call services is not working with cellular network...only works fine with wifi..please help?

    Since you have already done some sort of reset on your Airport Express, you might as well make sure it was a "hard reset" - follow the instructions for a hard reset found at:
    http://docs.info.apple.com/article.html?artnum=108044
    Since your Mac is running Leopard, you need to configure the Airport Express using the Airport Utility found in the Applictions->Utilities folder. You cannot install the old software that was supplied on the CD you got with the Airport Express.
    In future - if you do something bad with network settings on your Mac, do NOT try to fix it with the Airport Utility. The Airport Utility is only used to configure the Airport Express - and since the problem you have created is on the Mac and not the Airport Express, there is no need to be using the Airport Utility and especially there is no need to be resetting the Airport Express.

  • Javascript calls via getURL not working anymore

    After upgrading to flash player 9,0,115,0 a simple call like
    getURL("javascript(alert'message')); doesn't work anymore on
    Internet Explorer (it fails without any error in policyfiles.txt,
    but it still work on Firefox). My IE version is 7.
    I can't use ExternalInterface 'cause i need to publish as
    Flash Player 7 AS2.0.
    Any comment or suggestion?

    I have a similar problem. When running a local HTML file,
    using IE7 and FP 9,0,115,0, all the getURL function calls cease to
    work.
    If I downgrade to FP8, still using IE7, everything works.
    If I downgrade to IE6, still using FP9.0.115.0, everything
    works.
    If I load the HTML via HTTP (instead of local), using IE7 and
    FP9.0.115.0, everything works.
    If I use Firefox, with FP9.0.115.0, everything works.
    So, the function calls fail only when the swf is contained on
    a
    local HTML file, using
    IE7, and
    FP9.0.115.0. The problem is, most of our customers have that
    software profile, and all of them need to load the content locally
    (its very heavy for network transmission).
    All the getURLs are like this:
    getURL("javascript:someFunction()");
    We're setting the 'allowScriptAccess' to 'always'.
    Also, if we put the OBJECT tag inside the HTML (instead on an
    external JS file), the function calls still do not work.

  • Subscription to call Montenegro is not working.

    Hi I just bought another 9.99e subscription to call montenegro but when I try calling it's not working, what's happening ? Help plz
    This post was transferred from its previous location to create its own new topic here; its subject and/or title has been edited to differentiate the post from other inquiries and to reflect the post's content. A link to this post appears where the post was originally added.

    Dajana11 wrote:
    Hi I just bought another 9.99e subscription to call montenegro but when I try calling it's not working, what's happening ? Help plz
    Hello
    You purchased a Montenegro 60 mins Subscription on July 21st 2014 and used your full allocation of 60 minutes. You then purchased a further 60 minutes on July 30th 2014. As this is a monthly plan your newly purchased minutes will be added at or about midnight UTC/GMT on August 21st 2014. If you wish to add additional minutes before the monthly anniversary of your plan you have to purchase a different # of minutes (if that option exists).
    TIME ZONE - US EASTERN. LOCATION - PHILADELPHIA, PA, USA.
    I recommend that you always run the latest Skype version: Windows & Mac
    If my advice helped to fix your issue please mark it as a solution to help others.
    Please note that I generally don't respond to unsolicited Private Messages. Thank you.

  • How do u get a Java method to call itself? Not working here.

    How do u get a Java method to call itself? Not working here. I am using the "this" keyword. Thanks.
    Below, I would like to call checkIt method in itself.
    Ex.
    public class ABC {
    public String checkIt(String abc){
    if....
    checkIt(abc);
    }

    Assuming you are getting stack overflows (likely if you're unfamiliar with recursive calls), you need to put some sort of check condition inside the method so it doesn't call itself endlessly (AKA "infinite recursion").

  • Call log does not work. Iphone 4

    Hi, I'm an Iphone 4 user, software currently on IOS 6.1.3, updated a couple of weeks ago.
    Everything's fine and all, though one major problem that's been persisting - the call history is not working. Whenever an oncalling call (regardless if it's someone in my contact list or not) comes, the call log does not record the number and the entire log remains blank. I've tried resetting the settings as well as 'hard reset', but neither of these two have worked.
    It's become absolutely frustrating, especially when I sold items off at Trademe and can't even track the phone numbers of anyone that gives a call saying they want to buy something (for the moment, I've currently got all pages saying that anyone interested should text my number, but as always, someone ignores that and just calls anyway). Not to mention it makes it a particularly big headache for work purposes as well and it obviously can't go on like this forever.
    It'd be really appreciated if anyone can come up with a solution that can resolve this issue.
    Thanks. 

    meehow wrote:
    ..I just upgrade my E52 from 034.001 to 052.003 and noticed that 'call log' function does not work anymore. The symptom is that nothing happens when pressing:
    - "green" call button,
    - Log option from the main menu,
    - missed calls from the desktop.
    I had to switch the phone to active Standby Mode which I never used before - this is the only way to see missed calls - the small "pop up" on the desktop.
    Any suggestions how to fix it? Is it a known issue?...
    I don't know how widespread your experience is but it is not universal as all the functions you describe work correctly for me with an E52 and 052.003 firmware.
    Even if the upgrade reverted the log settings for Log Duration to "None" the "Green" key and the Log menu icon should bring the log up but with it empty, of course.

  • My network is not working i am in ghana and i use MTN  network but it is not working why is it like that

    my network is not working i am in ghana and i use MTN  network but it is not working why is it like that... pls get back to me now

    It sounds as if you need to call your mobile carrier.

  • Use member on data form does not work

    Hello,
    "Use member on data" option does not work on composite Data Form. Business rule associated with composite form.
    Who is resolve this problem?
    Version hyperion: 11.1.2
    Thanks

    I don't have a solution for you but more steps to solve the problem
    You are ultimately on the right track in some ways but break it down into it's components.
    The problem could like in the business rule, the form connection, the variables, even the order of operations could all be in play.
    So I would strip this baby down to its bare bones then build it back up.
    1) Run the business rule. Each one separately and only after the previous ones is complete without variables and without touching the form
    Is it successful: go to 2
    If it isn't successful: trouble shoot the calc and or try running in EAS natively to see if that gives you ideas
    2) Run the calc outside the form but with variables included. Did it prompt you correctly.
    Is it successful: go to 3
    If it isn't. What is wrong with the variable
    3) Now attach it to the form but don't hide the prompts
    Still good go to 4
    4) hide the prompts and run on save
    And if it fails on step four then it's not picking up the right variables in the prompt. And you need to look at why it wouldn't grab the right item.
    This will isolate your problem for you and give you steps to fix it. Ultimately 99% of the time something did change in the structure for example that is impacting the calc. And when you isolate the problem this will reveal itself quite quickly.

  • I am trying to connect my old mac desktop and my mac book pro to my new mac desktop to use as monitor but it will not work??

    I am trying to connect my old mac desktop and my mac book pro to my new mac desktop to use as monitor but it will not work??

    Hi ashleydanc588,
    If you are interested in more information on using an iMac in Target Display Mode, including what machines are compatible, you may find the following article helpful:
    Target Display Mode: Frequently Asked Questions (FAQ)
    http://support.apple.com/kb/ht3924
    Regards,
    - Brenden

  • I am using laptop hitting and slow system not working

    i am using laptop hitting and slow system not working and very late opan file browser every think . plez help me

    Hi,
    Shut down the notebook.  Tap away at the esc key as you start the notebook to enter the Start-up Menu.  Select the Bios option ( usually f10 ) and under the Advanced or Diagnostic tab you should find the facility to run tests on both the Hard Drive and Memory.  Post back with the details of any error messages.
    Note:  If the option to run these tests is not available in the Bios Menu, use the f2 diagnostic menu instead.
    Can you also post back with the following details.
    1.  The full Model No. and Product No. of your notebook - see Here for a guide on locating this information.
    2.  The full version of the operating system you are using ( ie Windows 7 64bit ).
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • Why copy option from recent call numbers is not working on ios7 [recent call logs in phone]?

    why copy option from recent call numbers is not working on ios7 [recent call logs in phone]?

    Here is a copy of my expressions and a copy of my data. The expressions match up going from left to right
    Code.CalcPTD2(Lookupset(FORMAT(Fields!REALDATE.Value,"Long Date"),FORMAT(Fields!CallbackDate.Value,"Long Date"),Fields!DailyHours.Value,"DataSet4"))
    sum(Code.CalcPTD2(Lookupset(FORMAT(Fields!REALDATE.Value,"Long Date"),FORMAT(Fields!CallbackDate.Value,"Long Date"),Fields!DailyHours.Value,"DataSet4")))
    count(Code.CalcPTD2(Lookupset(FORMAT(Fields!REALDATE.Value,"Long Date"),FORMAT(Fields!CallbackDate.Value,"Long Date"),Fields!DailyHours.Value,"DataSet4")))
    PUBLIC SHARED FUNCTION CalcPTD2(LookupArray AS OBJECT) AS INTEGER
         DIM i,Total AS INTEGER
         Total = 0
         FOR i = 0 to UBOUND(LookupArray)
               Total = Total + CINT(LookupArray(i))
         NEXT i
     NumberTimes  =   NumberTimes +1
    RETURN  Total
    END FUNCTION

  • I just downloaded a few ITunes Apps to my PC using windows 8 and they will not work.  Suggestions?  Thank you.

    I just downloaded a few ITunes Apps to my PC using windows 8 and they will not work.  Suggestions?  Thank you.

    The apps can only be run on an iOS device.   They will not run on your PC.

  • My caller speaker is not working

    My caller speaker is not working, I can hear the person on the other side but they can't hear me, but when I activate the speaker phone then they can hear me please help me why is this happening is it the software or my speaker???

    Tobie19 wrote:
    My caller speaker is not working, I can hear the person on the other side but they can't hear me, but when I activate the speaker phone then they can hear me please help me why is this happening is it the software or my speaker???
    Whatever mode you are in, them hearing you has nothing to do with speakers. The microphone is working only in loudspeaker mode, therefore hardware is OK. 

  • Loudspeaker and call button is not working in my n...

    sometimes the green button i.e the call button is not working i am not able to call to the no. that are present in my contacts and also loudspeaker also wont work is there any solution plz help

    check whether new firmware is exists in your region and update your phone with the latest one. probably it will help to solve your problems.

Maybe you are looking for

  • Trackpad Not Working Even After Replacement

    About 3 months ago, I spilled water all over my T510.  Everything worked afterwards, except for the trackpad and fingerprint reader.  The trackpad was not even seen in BIOS.  The fingerprint reader lit up, and I could turn on the laptop by sliding my

  • PSE 6 not recognizing iPhone 6

    Elements organizer isn't recognizing my iPhone 6 for downloading photos.  Is it expected to?  Will upgrading to PSE 13 fix the problem?

  • Just a note of appreciation

    Hey guys,       I just wanted to give a big hooah to all the people who work their hiney's off to give the rest of us know-nothings an answer to our problems.       I have graduated to an asus board with an amd 64 3000+ chip. of course it was Danny t

  • NullPointerException with MB Subscription With Filter

    We basically have xml messages of the form arrive on the MB channel: <xxx><yyy>111</yyy><zzz>222</zzz></xxx> <xxx><yyy>999</yyy><zzz>888</zzz></xxx> and we want our stateful jpd to be only woken up when a message with the text in the <yyy> tag has a

  • Web Cache Acess.log Size

    Hi all, Windows 2000 Server Oracle Application Server 10G Web Cache 9.0.4.0.0 access.log of web cache is big (500MB). is there any way to keep this file smaller ? kind of rotate logs ? if i want to analyze this file i have to load 500MB into notepad