Genesys CTI User Forum
Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: Gef Buneri on September 29, 2016, 08:31:00 AM
-
Hi all,
when using a "Call Subroutine" block on IRD, wich is the best method to exit the subroutine strategy? exit block?
Keep in mind I'm inside GVP when calling subroutine (DeliverCall['return:ok|dn:601|rdn:601|switch:GVP|target_location:StatServer75URS|target_name:601_GVP|target_type:RP',DELIVERTOAGENT])
Best regards,
Gef.
-
Which other could be?
Enviado de meu E6633 usando Tapatalk
-
does exit block not work for you ??
-
Hi all, thank you for the answers. Exit works, but I'm noticing some troubles using attach data when using more than one subrooutine level (calling a subroutine from inside another one), so I just felt the need for a confrontation with you.
At the moment I'm trying to use subroutine IN/OUT vars, instead of attach data; to use them I just need to set the IN/OUT var name equal to the local var name of the main strategy, is it right?
Best regards,
Gef.
***EDIT***
Ok, think I figured out; must create some "cross reference table" between subroutine IN/OUT parameters, and main strategy variables, and with different name between nested subroutines parameters. Correct?
-
Yes
Sent from my SM-N9005 using Tapatalk
-
In your subroutine go to the file [b]describe [/b]and you can set input and output variables for the subroutine. Then when adding the subroutine to the strategy you can define the what strategy variable you want for the input variables and the output variables from the subroutine.
-
All working fine with IN/OUT subroutine param. Thanks to you all.
Gef.