Genesys CTI User Forum
Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: luca.assandro on July 07, 2015, 03:32:43 PM
-
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
-
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]
-
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
-
Tell me what exactly you want to achieve and I will provide you with SCXML fragment.
-
Hello,
can anybody assist me in setting current priority of interaction to a new value using SCXML state block or by anyway in composer?