" /> Subscribe custom statistic in ORD Composer SCXML application - Genesys CTI User Forum

Author Topic: Subscribe custom statistic in ORD Composer SCXML application  (Read 2763 times)

Offline luca.assandro

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Advertisement
Hi everiboy
I'm using Composer 8.1.4 to create a SCXML application for Orchestration server.
In this doc there is an example to subscribe a custom statistic: http://genesyslab.info/wiki/index.php/Statistic_Interface

I don't know what type of block use to generate the SCXML code; I tried to use the "SCXML state" block, but It don't work. Any idea?

Thanks guys
Luca

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: Subscribe custom statistic in ORD Composer SCXML application
« Reply #1 on: July 07, 2015, 04:50:41 PM »
Just add the "SCXML State" block and within it create new transition. The next block will be used as the target parameter. Within the transition use condition as is described in docs:
[code] <state id="check">
<transition cond="_genesys.statistic.sData('SipGr_1@StatServer.GA','StatAgentsAvailable')==1" target="routing"/>
  </state>[/code]

Offline luca.assandro

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: Subscribe custom statistic in ORD Composer SCXML application
« Reply #2 on: July 08, 2015, 02:27:26 PM »
Tell me please if it's right:
- insert a SCXML block "transiction" with code only in "Configure transictions" section, like this:
<transition event="interaction.added" target="do_subscription">
</transition>
- insert the SCXML block "do_subscription" with code:
<onentry>
      <log expr="'======== Inside Subscribe ========'"/>
    <statistic:subscribe object="'803_SipSwitch@StatServer.Q'" statistic="'AvgWaitingTime'" interval="0"/>
    </onentry>
    <transition event="statistic.subscribe.done" target="delay"/>
    <transition event="error.statistic.subscribe" target="error"/>

Is it right?
Thanks a lot

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: Subscribe custom statistic in ORD Composer SCXML application
« Reply #3 on: July 08, 2015, 03:01:23 PM »
Tell me what exactly you want to achieve and I will provide you with SCXML fragment.

Offline newbee@Genesys

  • Newbie
  • *
  • Posts: 23
  • Karma: 0
  • started learning Genesys
Re: Subscribe custom statistic in ORD Composer SCXML application
« Reply #4 on: January 09, 2018, 02:20:09 AM »
Hello,

can anybody assist me in setting current priority of interaction to a new value using SCXML state block or by anyway in composer?