" /> loss of data in subroutines - Genesys CTI User Forum

Author Topic: loss of data in subroutines  (Read 2947 times)

Offline xheavymetalx

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
loss of data in subroutines
« on: March 09, 2010, 03:28:34 PM »
Advertisement
Hello

I have a problem with subroutines. I have an overarching strategy, which calls a subroutine, it queries the database. It works fine, but the problem is when traffic is constant, the substrategies begins to merge the data from the calls, making for a data query ANI, bring me the values of another. bone that takes an input in the substrategies wrong.
If I put the substrategies explicitly within the main strategy this error does not occur.

Someone can tell me if it's something on the configuration of Genesys or is a problem with substrategies?

Thank you very much
>:D

Offline catanirex

  • Sr. Member
  • ****
  • Posts: 272
  • Karma: 11
Re: loss of data in subroutines
« Reply #1 on: March 10, 2010, 09:20:01 AM »
How do you deliver data from subroutine back to main stragegy?

Attacehd as Udata or as Output parameters?

You cannot just use variables within the subroutine. They cannot be accced from main strategy.
Script variables cannot be used either, since this can mix up data.

Offline xheavymetalx

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: loss of data in subroutines
« Reply #2 on: March 10, 2010, 01:59:56 PM »
ok. I'm doing is assigning input and output values to the corresponding input and output. But I'm not attachments data, but simply the values are assigned to output and from the main strategy these values of output volume to continue the strategy.
I should do? How do I change the data management substrategies me not to mix the data? ???

Thank you very much

greetings
>:D

Offline kubikle

  • Full Member
  • ***
  • Posts: 140
  • Karma: 7
Re: loss of data in subroutines
« Reply #3 on: March 10, 2010, 10:49:55 PM »
Are SCRIPT variables used anywhere?
May be more info where exactly the data  are mixed (when subroutine output parames get their values, when variables from main strategy get their values from subroutine params, etc). may be fragemnts from URS logs where this mizup happened?

Offline xheavymetalx

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: loss of data in subroutines
« Reply #4 on: March 11, 2010, 08:47:36 PM »
input and output variables of subroutines are local and can not script it, but the parameters of the main strategy is SCRIPT.
An example of how it works is the following, there is a strategy that consumes a subroutine, which happens to x number of parameters (variables SCRIPT type, associated with the input), this subroutine returns x number of parameters to the main strategy (variables SCRIPT type, associated with the output).
Inside the subroutine, both the Input and Output are the variables of type LOCAL, and this subroutine queries the DB, which stores the values in the Output variables.
The error is happening is that the data are mixed when the subroutine is called for a high traffic level.
Another benchmark is that I take the ANI of the call before the subroutine and after the subroutine, and have different values.

I hope I have been more clear

Thank you very much

>:D

Offline andbra

  • Newbie
  • *
  • Posts: 15
  • Karma: 0
Re: loss of data in subroutines
« Reply #5 on: March 12, 2010, 08:31:32 AM »
Hi!

Whats the reason for using SCRIPT variables in the main strategy? I would recommend using local variables unless there is a good reason not to do it. Using LOCAL variables could prevent mixup between calls to the strategy.

Do u have URS logs from calls where data are mixed?

Anders :)