UCCX 10 & Finesse

Version 1
    This document was generated from CDN thread

    Created by: Kevin Pickard on 11-11-2013 08:23:37 AM
    We are playing wth Finesse and UCCX 10 and we are seeing some behavioural differences between it and how Finesse operates with UCCE. 

    The biggest issue we are seeing is lack of events from Finesse. In one of our gadgets we have multiple sections (functions) of javascript code that register for events. With Finesse and UCCE all of the sections that registered for events got them. With the new UCCX/Finesse setup it looks like only one (the first to register) gets the events. Is that a change in behaviour or was the earlier behaviour a fluke? For example the following javascript code is in multiple places (functions) within *one* gadget.
     
                    _user = new finesse.restservices.User({
                        id: _prefs.getString("id"),
                        onLoad: _handleUserLoad,
                        onChange: _handleUserChange,
                        onError: _handleUserError
                    });
     
    On agent state change the first function that called the above is properly getting events on its callback but the second is not. Can a single gadget have multiple callbacks in different functions?
     
    Also is there anything else we need to do with the newer Finesse other than use the new finesse.js? I did have to add an additional '<Require feature="setprefs"/>' to our gadget XML. Do I need anything else?

    Subject: RE: UCCX 10 & Finesse
    Replied by: Joseph Horvath on 11-11-2013 09:36:21 AM
    I have been able to replicate an issue where multiple user subscriptions (all from the same user) fail, however, it turned out to be an issue with my code. In order to allow multiple event registrations from a single user, one needs to ensure that when the login to BOSH is done, that a unique resource string is used. Otherwise, if the same resource name is used (or no resource string is used), then the older subscriptions will fail with “stream:error (conflict)”. If unique resource strings are used during the BOSH login, then multiple subscriptions from a single user works as expected where each user "session" gets event notifications.
     
    See: http://community.igniterealtime.org/thread/20661
     
    For those developing Finesse clients (thick or thin), it is your responsibility to remember to do this correctly.

    Subject: RE: New Message from Kevin Pickard in Finesse - General Questions: UCCX 10
    Replied by: David Lender on 11-11-2013 09:37:44 AM
    Finesse 10.0 javascript library has not yet been released or did you get an early version somehow?  The finesse 9.1(1) javascript library is not supported on UCCX 10.0 Finesse.
    Only the Require feature = “setprefs” is new for 10.0 regarding requirements for a gadget.

    Subject: RE: New Message from Kevin Pickard in Finesse - General Questions: UCCX 10
    Replied by: Kevin Pickard on 11-11-2013 10:43:29 AM
    Joseph how does this affect us when we are running as a gadget within the Finesse framework? We are not creating a separate server connection.

    Subject: RE: New Message from Kevin Pickard in Finesse - General Questions: UCCX 10
    Replied by: Kevin Pickard on 11-11-2013 10:48:59 AM
    David Lender:
    Finesse 10.0 javascript library has not yet been released or did you get an early version somehow?  The finesse 9.1(1) javascript library is not supported on UCCX 10.0 Finesse.
    Only the Require feature = “setprefs” is new for 10.0 regarding requirements for a gadget.
    I got an early version somehow. :-) So I am using what I believe to be the new library with UCCX 10.0 Finesse. Does what Joseph mentioned have anything to do with users of the javascript library? My understanding is that as gadgets using the javascript library we are all sharing the same BOSH connection. So the question is has there been a change in how many times a single gadget can specify callbacks?