Calculating current wait duration in ACD scripts

Hello,
I'm trying to use the "Current Wait Duration" field within the "CSQ IPCC Express" report object for the Get Reporting Statistic step and have some questions.  Does anyone know how this value is calculated?  I see that I can only store the value in an integer variable.  I get a value, but then don't know how to interpet it (ie. is the value in millisecs, secs, mins, etc.)  My hunch is that it is secs, but then I don't know how to use the Create Generated Prompt step to take the value and make it into a prompt which can be played back to my customers.
I'm using UCCX 8.0.2.  Has anyone tried to use this field in their ACD scripts?  I'm already using the "Position in Queue" field and that is working just fine.
Thanks
Neel

CWD is the number of seconds the contact has been waiting in queue.  Check your other post to see my answer about converting seconds to minutes/seconds.

Similar Messages

  • Current Wait Duration

    Hi All;
    I have a script that looks at the "Current Wait Duration from the Overall IPCC Express" statistic.  For some reason, when it does that step, it always returns a -1 to the integer that holds it.  I have tried it with the same setting for the CSQ, and it reports the proper time in seconds, but this one doesn't work.  Unfortunately, the script can move the contact to a few CSQs before it is done, so I really need the Overall, not the CSQ statistic.
    Has anyone used this stat before and can think why it would be returning the -1 (which must be an error) to it?
    Thanks

    I believe your on the hunt for the lockness monster!
    In most contact centers, it would never be a metric that would be needed, and honestly could never be a useable or accurate method of judging wait duration.  For this reason, i would take a pretty good bet that your not going to find a way to recover this metric naturally.
    The best answer would be to get the Wait duration of every queue that the call could possibly queue to, and if you want to be daring, go with the low number or and average of the queues, and if you want to be safe go with the high number.
    Your really looking for an inverted estimate wait time calculation, and there is formula's for that all over this forum.
    Cheers,
    Chad

  • Current wait events in oracle database

    Hi guys need your help
    I got a dataabse ruuning very slow and I need to find out the current wait events in the oracle database and can I find out what reason each session is waiting for.

    Use @wait.sql script to find out the wait events :
    select sid, event, seconds_in_wait secs_wait, state,p1,p2,p3,wait_time,p1text,p2text,p3text
    from v$session_wait
    where sid in
    +(select a.sid from v$session a, v$process b where a.paddr = b.addr+
    and  a.status = 'ACTIVE' and a.username is not null)
    order by 1
    +/+
    Edited by: Girish on Jun 9, 2011 4:06 AM

  • Me and my partner are currently using the same apple id and have no space left on our devices. We are currently waiting on the iphone 6 plus to arrive and don't know how to transfer all data to the new phones.

    Me and my partner are currently using the same apple id and have no space left on our devices. We are currently waiting on the iphone 6 plus to arrive and don't know how to transfer all data to the new phones.?

    I don't know if I'm asking this all in a way that can be understood? Thanks ED3K, however that part I do understand (in the link you provided!)
    What I need to know is "how" I can separate or rather create another Apple ID for my son-who is currently using "my Apple ID?" If there is a way to let him keep "all" his info on his phone (eg-contacts, music, app's, etc.) without doing a "reset?') Somehow I need to go into his phone's setting-create a new Apple ID and possibly a new password so he can still use our combined iCloud & Itunes account?
    Also then letting me take back my Apple ID & password, but again allowing us (my son and I) to use the same iCloud & Itunes account? Does that make more sense??? I'm sincerely trying to get this cleared up once and for all----just need guidance from someone who has a true understanding of the whole Apple iCloud/Itunes system!
    Thanks again for "anyone" that can help me!!!

  • Current User in a BPA script

    How can I get the current user in a BPA script?

    try to invoke it from global variables, like per_id in user guide:
    move $PER_ID to "schema/customerId";
    somthing like this:
    move $USER to ...;

  • Recommendations on wait durations for UWL iView

    Hi All,
    I am looking to tune the wait durations in the workflow UWL iView in a 7.02 NetWeaver Portal.  These are the following durations and their default settings ...
    Wait duration before calling provider on loading preview: 2
    Wait duration before calling providers on loading of UWL: 20
    Wait duration for UI refresh while waiting for update: 15
    I have looked at the SAP help on these attributes as per here ... http://help.sap.com/saphelp_nw04s/helpdata/en/0a/ad68c125ae496f8c04a25090bd2e3c/content.htm
    I noticed another forum thread whereby someone suggested values of 2,4,3 respectively.  I am unclear however of the effect (if detrimental) of setting some of these to zero.  In particular, I am looking to tune down the last parameter 'Wait duration for UI refresh while waiting for update' to the lowest reasonable number (eg 3 seconds?).  I am wondering what others in the community have set their parameters to and what logic was used to derive their settings? 
    Rgds
    John

    Hello John,
    The following is a very good knowledge based article which covers your exact query. In relation to reducing the parameter
    Wait duration for UI refresh... it is not sensible to reduce this to a very low value because the UWL UI will flicker with the refresh. If this is occuring every 2/3 seconds it will be very annoying for end-users.
    KBA #1577547 UWL Performance Tips and Considerations
    Thanks and best regards,
    Carl Connolly
    Senior Support Consultant - Netweaver Web Application Server
    AGS Primary Support, Global Support Centre Ireland
    Universal Work List troubleshooting guide:
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/bpx/uwl+faq

  • Call forwarding with B-ACD script on CCME?

    Hi,
    I want to do a call forward on a ephone-dn included on a hunt group that have B-ACD script activated, but B-ACD ignore de call forward via soft key.
    Is there any way to do a call forward?

    I understand that there is a one-to-one correspondence between every AA application and Queue application That is each AA application is associated with a unique Queue application. I do not think it is possible to share the Queue Application across different AA Applications

  • Which Wait-on-Notification's (of all types) are currently Waiting?

    I may have a wait-on-nofication deadlock. Before I use the Navy method (beat to fit, paint to match) by changing a bunch of WoN's Wait-on-Notification-with-History, it would be great simply to be able to see which WoN's are currently waiting. In this way I could maybe see which WoN's were participating in the deadlock and hence rethink my dataflow pattern. I haven't found a tool highlight WoN's, list WoN's, etc. But it sure would be handy.
    Any info or ideas?
    Solved!
    Go to Solution.

    The desktop execution trace toolkit might show you who's waiting (or at least in which VI). I haven't used it so I'm not sure.
    Another option for handling this in code is to use a timeout and not do anything if the timed out output is true, but this is most likely going to be a hack instead of a real solution in your case.
    Try to take over the world!

  • Calc script for calculating current month data after loading

    Hi,
    I'm trying to write a script to do a calculation to all dimension after load current month data; it ran successfully but current month data is all zero; can someone tell me what i'm doing wrong?
    SET CACHE HIGH;
    SET UPDATECALC OFF;
    SET CALCPARALLEL 4;
    FIX (&CurMon, &CurYr)
    AGG (Sparse2, Sparse3, Sparse 4, Sparse 5, Sparse 6);
    ENDFIX
    Dense1 – Dynamic Calc
    Period: Dense – Dynamic Calc
    Year: Sparse – Dynamic Calc
    Sparse2 – Label Only
    Sparse3 – Label Only
    Sparse 4– Label Only
    Sparse5 – Label Only
    Sparse6 – Label Only
    Thanks!

    Natilie,
    If I understand you correctly, you are loading data, then clearing out the current month->current year, and then aggregating current month->current year? There isn't going to be any data there -- you've cleared it out in your second step.
    I think the order you want is:
    1) Clear out the current month->current year to be sure it's a good load
    2) Load the current month->current year
    3) Aggregate the current month->current year
    This could be done with a single Maxl that controls two calc scripts and one import database (clear, import, agg) or you could do it manually.
    The default calc is (generally) equivalent to CALC ALL using db properties (UPDATECALC, AGGMISSG, etc.). There shouldn't be practical difference between that and the AGG portion of your calc.
    I would again confirm that all of your data is at the lowest level, i.e., you can navigate to leaf level on all dimensions and pull a data value before you aggregate. Perhaps you are loading to upper level members and don't realize it. I often use the Excel add-in's Styles to tell me if I'm at the lowest level of a db or not.
    Regards,
    Cameron Lackpour

  • Calculation manager - error when importing .csc script

    Hi everybody,
    I am using EPM 11.2.1 with an Oracle 11.2.0.2 repository.
    I am new to Calculation Manager in Planning and I have an issue again.
    Using Essbase's admin console I created a script:
    SET UPDATECALC OFF;
    SET AGGMISSG ON;;
    FIX ("FY11", "Current", "Version_I")
    FIX(@DESCENDANTS ("ACC_Property, Plan & Equipment Net",0), @DESCENDANTS ("ACC_Intangible Assets Net",0), @DESCENDANTS ("ACC_Investments",0), @DESCENDANTS ("CapexNature",0), @DESCENDANTS ("Entity",0), @DESCENDANTS ("Period",0))
    "MS_Inv_Dep"=@PRIOR ("MS_Inv_Dep",1) + "MS_Inv_Val"->@CURRMBR ("Period")->@CURRMBR ("Entity") * "MS_Inv_%Dep"->"BegBalance"->@CURRMBR ("Entity")/12;
    ENDFIX
    CALC DIM ("Account","Period", "Measure");
    CALC DIM ("CapexNature","Entity");
    ENDFIX
    I wish to import the .csc in calculation manager but I receive the error (translated from Italian):
    Error during script analysis. Verify the script at row 1 column 7 to row 1 column 12
    I can't figure out what it is wrong. Is there a log somewhere with more details?
    any help will be very appreciate as I am stuck on this too.
    thank you all
    daniela

    Hi John,
    Thanks for the reply (by the way, I appreciate a lot the work you're doing on your ODI blog).
    No, I imported it (File->Import)
    I have a few calc scripts and in order to make transition to Calc Manager faster I thought of importing them.
    Regarding your suggestion to copy and paste it, I tried it and it works.
    I saw Calc Manager generates the script in a 'strange' syntax (because I used the aggregation template). For a simple aggregation the code it generates is like this:
    %Template(name:="Aggregation",application:="",plantype:="",dtps:=("Restriction":=(),"DF1":=[[Period]],"DF2":=[[Account]],"SF1":=[[Entity]],"SF2":=[[CapexNature]],"SF3":=[[]],"DP1":=[[]],"LevelDP1":=[[Descendants]],"DP2":=[[]],"LevelDP2":=[[Descendants]],"SP1":=[[]],"LevelSP1":=[[Descendants]],"SP2":=[[]],"LevelSP2":=[[Descendants]],"SP3":=[[]],"LevelSP3":=[[Descendants]],"UPTOLOCAL":=[[Use default]],"AGGMISSG":=[[Yes]],"FRMLBOTTOMUP":=[[Use default]],"CALCCACHE":=[[Not specified]],"Debug":=[[Debug wizard OFF]]))
    (I have inquired about thin in an earlier post)
    I can add my own code (calc manager creates a /*STARTCOMPONENT:SCRIPT*/ /*ENDCOMPONENT*/area).
    Regarding the code generated for templates, can this code be updated? How do I change in the above generated code the CALC DIM into AGG?
    thank you again
    daniela

  • Can I search the current set path in a script?

    I have on my machine a folder full of mathscript commands and functions.  This folder is beginning to get quite large and I'd like to be able to clean it up a bit by grouping the files into sub-folders.  For example, I'd like to create the following folders;
    C:\MatrixXTools
    C:\MatrixXTools\StringTools
    C:\MatrixXTools\VariableTools
    Of course, this would be fine if I was to set the path to every folder individually.  What I want to do though, is to set my path manually to C:\MatrixXTools and then put a command in there called 'import'.  The 'import' command would be responsible for searching the current path for a given folder and then adding it to the path when it finds it. So to import the StringTools, I would just call
    import "StringTools"
    All of my base scripts would go into C:/MatrixXTools and then if a script needed to use the StringTools, I could just call the import function.
    The problem I have is that I can't find a command that will return me the path into a string vector.  Is there some way of doing this?  'SHOW PATH' doesn't do what I want it to because it just shows the path and doesn't give me a way of programmatically viewing it.
    Is there a better method of getting everything into sub-folders all together?
    I realise that I could also do this using the startup script, however I have the tools in revision control (svn) so that other people can use them - I don't want to have to get everyone to change their startup script every time I make a new folder - I should be able to do this in the scripts.
    Note: we are still on v62.2 and we are looking into upgrade options.
    Solved!
    Go to Solution.

    You can get the show path output into a string using === operator.
       [showPathStr,] === show path;
    You can break up the showPathStr on the new line characters
    into a string vector using the split function.
    The split function was added in MATRIXx 7.1.9. The split function internally
    uses the index and stringex functions to create the split string vector.
       showPathVector = split(""n",showPathStr);
    If you try out the split function and look at the algorithm you will need to
    download and eval MATRIXx 7.1.9 or higher.
    Also, instead of changing startup.ms everytime you add a tools directory, why not
    have startup.ms execute another script (i.e. execute file = toolsetup.ms) and you
    would only update toolsetup.ms when adding a new tools directory.

  • While deleting history firefox crash with error of Script: chrome://browser/content/sanitize.js:136.So has to wait or cancel the script.

    I have upgraded Firefox to 4.0.1.But while deleting history(everything) Firefox hangs for some time and then this error appears
    Script: chrome://browser/content/sanitize.js:136
    is unable to continue.so either wait till process complete or stop the process.Sometimes it crashes Firefox.

    It's great to know that the good people at Mozilla doesn't give a shit that it takes 5min to clear my history after I've browsed porn.

  • Pages won't load if another tab is waiting for a slow script which is on the same website

    If there is a tab that is waiting for slow script other tabs on the same website will be affected, even though they should not.
    Test case:
    1. Open a tab and run a slow script ( example: http://localhost/slow_script.php )
    2. Open another tab and run a normal script ( example: http://localhost/normal_script.php )
    What should happen:
    The normal script will load, the slow one will be waiting for the server to finish.
    What happens:
    The normal script wont start loading until the slow one finishes.
    Is there any way to work around this issue?
    Thanks !

    I have to add that the delay is not caused by the server itself. Running two web browsers or using multiple computers does the trick.
    Using a simple sleep function to make the script take longer seems enough to reproduce this bug. There is no need to consume actual resources on the web server.

  • Stuck on calculating changes - Waiting for index to be ready

    I've got a Time Machine which had my disk properly backed up (~500 Gigs). Then, I used Entourage Time Machine to save my email database to a set of local XML files (tens of thousands of new files). Since then, it's stuck on Calculating Changes; I tried stopping it, removing the .plist file, stopping/restarting the service, etc. I restarted it again and now it's once again on Calculating Changes for 12 hours now. Time Machine Buddy says "Waiting for index to be ready". Could it possibly really be doing what it needs to do or is it stuck somehow and is there anything else I can do??
    thanks in advance,
    Mike

    Michael Levin wrote:
    Then verify your internal HD and repair your backups, per #A5 in Troubleshooting.
    did that - repaired the disk, no problems found.
    Uh, you need to check your internal, too, if you didn't. It's probably ok, but it's best to be sure. Then Restart your Mac.
    Waiting for index to be ready (100)
    Waiting for index to be ready (100)
    Waiting for index to be ready (100)
    A few of those may not be a problem, especially after a failed backup. The backups have to be indexed for TM to work right.
    why isn't the index ready - could it have anything to do with Spotlight (which is also going like mad, but at least now gives a time estimate) - is that the index it's talking about??
    Perhaps. Both Spotlight and Time Machine use the mds process to index.
    |
    Ok, so I disabled Spotlight, deleted all the .Spotlight files on all volumes, and restarted Time Machine having excluded the Entourage database and 56 Gigs worth of .xml files of individual messages.
    56 GB? Holy moley!
    Event store UUIDs don't match for volume: Main Internal Drive (Leopard)
    Forcing deep traversal on source: "Main Internal Drive (Leopard)" (mount: '/' fsUUID: 22E61BEA-43E3-3C1C-985D-4589FACE5629 eventDBUUID: D2A7E78E-C39A-46A3-B273-CCEE5048369C), {1, 1, 1, 0}
    Node requires deep traversal:/ reason:must scan subdirs|require scan|
    Normal after a failed backup; Time Machine's not sure what was where when the "lights went out," so has to compare everything on your system to the backups to figure out what needs to be backed-up.
    No pre-backup thinning needed: 24.38 GB requested (including padding), 983.14 GB available
    The deep traversal completed. It found about 20 GB to back up (plus 20% for workspace -- the "padding" in the message).
    Error: Flushing index to disk returned an error: 0
    That's another problem writing the index to the TM drive.
    Try a +*Repair Disk+* on it again, and make sure all connections are snug and secure, and try the backup again.
    If this continues, it's beginning to look like a problem with the disk or connections. Try different ports, cables, and combinations of the two -- cables do deteriorate, and a plug that works fine in one port may not make good contact in another one.

  • Conky to show current i3 workspaces. i3-msg script [SOLVED]

    Currently I have conky piped to i3 bar. i3 bar shows workspaces on it's own, I like this functionality but it overlaps with the conky output. I set workspace buttons off but of course i have no way of seeing workspaces. So in short I want conky  to display all the open workspaces and highlight the current one. the solution i have come up with is to use the command
    i3-msg -t get_workspaces
    which displays an output like
    [{"num":1,"name":"1","visible":false,"focused":false,"rect":{"x":0,"y":19,"width":1366,"height":749},"output":"LVDS1","urgent":false},{"num":2,"name":"2","visible":false,"focused":false,"rect":{"x":0,"y":19,"width":1366,"height":749},"output":"LVDS1","urgent":false},{"num":3,"name":"3","visible":false,"focused":false,"rect":{"x":0,"y":19,"width":1366,"height":749},"output":"LVDS1","urgent":false},{"num":4,"name":"4","visible":false,"focused":false,"rect":{"x":0,"y":19,"width":1366,"height":749},"output":"LVDS1","urgent":false},{"num":5,"name":"5","visible":true,"focused":true,"rect":{"x":0,"y":19,"width":1366,"height":749},"output":"LVDS1","urgent":false}]
    so if i could pipe it to grep or form a sort of script to filter out the numbers and which desktop is visible i could easily put it into conky but i am not sure how to go about create such a script. Once i have the script i could easily create my conkyrc to give the desired output but i am not sure where to start with such a script.
    Last edited by jaredanderson (2013-08-18 08:15:33)

    To be honest never liked running two bars, takes up too much space. the jshon thing wasn't a hundred percent what i was looking for but it gave me a good base to build off of. my script looks like this.
    #! /bin/bash
    if [ $# -lt 1 ]
    then
    echo "no command"
    exit
    fi
    case $1 in
    "color")
    color=`i3-msg -t get_workspaces | jshon -a -e name -u -p -e focused -u | paste -d ' ' - - | grep $2 | cut -c3-`
    # set true and false to 0 and 1 for conky
    #true and false determines highlight for workspace
    if [ "$color" = "" ]; then
    echo "null"
    elif [ "$color" = "false" ]; then
    echo "0"
    elif [ "$color" = "true" ]; then
    echo "1"
    fi
    "status")
    stat=`i3-msg -t get_workspaces | jshon -a -e name -u | grep $2`
    #shows if workspace entered exists
    #only negative is tenth workspace is plotted to 0
    if [ "$stat" = "" ]; then
    echo "0"
    else
    echo $stat
    fi
    esac
    there is probably an even better way to do this but this works for me.
    I then added these lines to my conkyrc
    "full_text":
    ${if_match ${exec ~/.scripts/i3wc status 1}>0}
    "1",
    ${else} "",
    ${endif}
    "color":
    ${if_match ${exec ~/.scripts/i3wc color 1}<1}"\#2aa198"${else}
    ${if_match ${exec ~/.scripts/i3wc color 1}>0}"\#cb4b16"${else}
    "\#ffffff"
    ${endif}
    ${endif}
    a slight draw back is this makes my conkyrc gargantuan because I have to insert this set individually for all nine workspaces.
    but it shows all workspaces and highlights the current one which is exactly what 'i wanted so I can't complain. thanks for the help progandy never would have done it without you.
    probably could remove the final else in the conkyrc under color. color wouldn't be use because no text is output
    Last edited by jaredanderson (2013-08-18 08:27:24)

Maybe you are looking for

  • Installation Problem on RedHat Linux 7.3

    Hello, I am tring to install JWSDP-1_2 package on my RedHat 7.3 Linux box But I recevied the following error message [root@design JWSDP-1_2]# ./jwsdp-1_2-unix.sh -console bash: ./jwsdp-1_2-unix.sh: /bin/sh: bad interpreter: ?? ??? How do I install it

  • Fast Formula Error APP-FF-33629 (Unexpected End of Entry_Value)

    Hi, My formula successfully verified. I am getting following error message when application is trying to invoke the same formula. Error message says that: Error: "Unexpected End of ENTRY_VALUE(T)=:control entry_value line (trigger for Ded_Amt2)". Cau

  • How do I change the size of iframes?

    I use a questionnaire on my web site. It is provided by a service called responsomatic. There is a button on the bottom of the page that does not appear when using firefox, but does appear on Safari. The questionnaire is all put on my page as a web w

  • Verity vspider.exe process never stops and sucks system resources

    I'm running a scheduled task to index a site on a Win2k3 server running CF8. I'm having a problem where the vspider.exe process never stops and sucks up system resources, slowing my whole server down. It actually is doing quite a bit of work... I'm d

  • How to calcualate prior year

    Hi All, If I select current year in a column promt, then I want to calculate prior year. For eg. I have List Box promt based on year column with values 2012, 2011, 2010, 2009, 2008 etc.. If I select any one year, lets say 2011, then I should automati