" /> SCXML - Outbound Treatments - Genesys CTI User Forum

Author Topic: SCXML - Outbound Treatments  (Read 2972 times)

Offline JTL

  • Full Member
  • ***
  • Posts: 123
  • Karma: 2
SCXML - Outbound Treatments
« on: February 13, 2014, 04:51:57 PM »
Advertisement
I've started to look at the OCS Ref manual, as well as the provided samples (installed with OCS 8.0+) but I'm struggling to understand some of the core concepts as I don't really have a programming background, so am not really familiar with scripting (javascript etc.) nor SCXML itself.

I think I should be able to 'butcher' one of the samples to add some basic post-call treatments (basically to replicate what we currently do with actual Genesys Treatments) but there are other things I would like to consider.

Can anyone recommend some further reading or help with some of the concepts?

What I would like to do (see my recent post in the forum) is prioritize certain records in a Calling List based on the 'Day of Week', whilst not excluding any scheduled Callbacks (or unscheduled Callbacks).

There's a Time of Day example but even though I've read through it a few times, I cannot really see how to customize it for my needs.

Offline JeffreyT

  • Newbie
  • *
  • Posts: 15
  • Karma: 0
Re: SCXML - Outbound Treatments
« Reply #1 on: February 14, 2014, 09:33:18 AM »
I may be wrong but using SCXML Outbound treatments requires GVP related components to be present in your architecture. Is this your case ?
If not, you can only use basic treatments which are applied after an initial Dialing of a record (pre checks not possible).

Offline Timur Karimov

  • Sr. Member
  • ****
  • Posts: 415
  • Karma: 2
Re: SCXML - Outbound Treatments
« Reply #2 on: February 17, 2014, 07:32:34 AM »
[quote author=JeffreyT link=topic=8216.msg36194#msg36194 date=1392370398]
I may be wrong but using SCXML Outbound treatments requires GVP related components to be present in your architecture. Is this your case ?
If not, you can only use basic treatments which are applied after an initial Dialing of a record (pre checks not possible).
[/quote]
You are wrong  SCXML Outbound treatments did not require the GVP. In versy simple config the SCXML scripts may be placed on the local drive within the OCS.

Offline PFCCWA

  • Hero Member
  • *****
  • Posts: 655
  • Karma: -7
Re: SCXML - Outbound Treatments
« Reply #3 on: February 18, 2014, 11:53:51 AM »
sample03 is the most ideal for what you are trying to achieve.
You'll need to customise it based on your requirements.
We used it to dial mobile contact info types at certain times of the day and work/home numbers at other times.
You'll also need statistical (special) day tables - then define this is treatment-weekdays-table option (ocs or campaign group).
Based on the special day time BH / BBH and ABH will dial using script settings.

example - If special day is Monday and start time is 8 AM and end time is 4 PM - and your scxml script has:
[i]<transition event="ocs.daytime_change" cond="(_event.data.daytime_code == 'BBH') || (_event.data.daytime_code == 'ABH')" target="NextRecordAtHome"/>
    <transition event="ocs.daytime_change" cond="_event.data.daytime_code == 'BH'"  target="NextRecordAtWork" />
    <transition event="ocs.daytime_change" cond="(_event.data.daytime_code == 'WEND') || (_event.data.daytime_code == 'HDAY')"  target="NextRecordOther" />[/i]

if current day is Monday.
Home number records will dial between midnight (00:00:00) to 8 AM (defined as BBH).
Work number records will dial between 8 AM to 4 PM (defined as BH).
Home number records will also dial between 4 PM and midnight (00:00:00), defined as ABH.

Im pretty sure you can use the same method to prioritise records based on day of week (we created special day record for each day).

thanks.