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

Title: [SOLVED] Best method to exit a subroutine strategy IRD/URS both 7.5
Post 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.
Title: Re: Best method to exit a subroutine strategy IRD/URS both 7.5
Post by: cavagnaro on September 29, 2016, 01:18:30 PM
Which other could be?

Enviado de meu E6633 usando Tapatalk

Title: Re: Best method to exit a subroutine strategy IRD/URS both 7.5
Post by: Tambo on September 30, 2016, 10:25:54 AM
does exit block not work for you ??
Title: Re: Best method to exit a subroutine strategy IRD/URS both 7.5
Post by: Gef Buneri on October 03, 2016, 09:47:17 AM
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?
Title: Re: Best method to exit a subroutine strategy IRD/URS both 7.5
Post by: nonny on October 03, 2016, 03:24:11 PM
Yes

Sent from my SM-N9005 using Tapatalk

Title: Re: Best method to exit a subroutine strategy IRD/URS both 7.5
Post by: mduran22 on October 04, 2016, 05:20:14 PM
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.
Title: Re: [SOLVED ]Best method to exit a subroutine strategy IRD/URS both 7.5
Post by: Gef Buneri on October 18, 2016, 06:41:50 AM
All working fine with IN/OUT subroutine param. Thanks to you all.


Gef.