" /> [SOLVED] Best method to exit a subroutine strategy IRD/URS both 7.5 - Genesys CTI User Forum

Author Topic: [SOLVED] Best method to exit a subroutine strategy IRD/URS both 7.5  (Read 2559 times)

Offline Gef Buneri

  • Sr. Member
  • ****
  • Posts: 373
  • Karma: 0
  • Madness is just a point of view.
Advertisement
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.
« Last Edit: October 18, 2016, 06:42:05 AM by Gef Buneri »

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Best method to exit a subroutine strategy IRD/URS both 7.5
« Reply #1 on: September 29, 2016, 01:18:30 PM »
Which other could be?

Enviado de meu E6633 usando Tapatalk


Offline Tambo

  • Sr. Member
  • ****
  • Posts: 456
  • Karma: 5
Re: Best method to exit a subroutine strategy IRD/URS both 7.5
« Reply #2 on: September 30, 2016, 10:25:54 AM »
does exit block not work for you ??

Offline Gef Buneri

  • Sr. Member
  • ****
  • Posts: 373
  • Karma: 0
  • Madness is just a point of view.
Re: Best method to exit a subroutine strategy IRD/URS both 7.5
« Reply #3 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?
« Last Edit: October 03, 2016, 12:11:23 PM by Gef Buneri »

Offline nonny

  • Full Member
  • ***
  • Posts: 218
  • Karma: 2
Re: Best method to exit a subroutine strategy IRD/URS both 7.5
« Reply #4 on: October 03, 2016, 03:24:11 PM »
Yes

Sent from my SM-N9005 using Tapatalk


Offline mduran22

  • Full Member
  • ***
  • Posts: 108
  • Karma: 5
Re: Best method to exit a subroutine strategy IRD/URS both 7.5
« Reply #5 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.

Offline Gef Buneri

  • Sr. Member
  • ****
  • Posts: 373
  • Karma: 0
  • Madness is just a point of view.
Re: [SOLVED ]Best method to exit a subroutine strategy IRD/URS both 7.5
« Reply #6 on: October 18, 2016, 06:41:50 AM »
All working fine with IN/OUT subroutine param. Thanks to you all.


Gef.