cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
456
Views
0
Helpful
1
Replies

Subscribing to Finesse Workflow Action Events

limingq2010
Level 1
Level 1

We are developing a Finesse (v11.1) gadget where we need to capture the state change event of warm transfer leg. One would think the dialog change handler should be called when the transfer destination picks up, but it is not (not in case of inbound call scenario, but it is for outbound calls). 

 

From web browser console output, we observe numerous workflow action events logged when the destination picks up.

 

The JavaScript lib document implies the following should work, but it does not get called.

 

containerServices.addHandler(finesse.containerservices.ContainerServices.Topics.WORKFLOW_ACTION_EVENT, function(data) {
    console.log('Topics.WORKFLOW_ACTION_EVENT is called');
});

 

Does anybody know how to subscribe to workflow action events?

 

BTW - When you answer an inbound call, the answering action does not trap the dialog change event handler either, but it does trap user change handler due to state change from ready to talking, at least there is a workaround with this.

 

Strange behavior.

1 Accepted Solution

Accepted Solutions

dekwan
Cisco Employee
Cisco Employee

Hi,

 

The dialog change handler SHOULD be triggered when the person being called picks up as it will change their participant state. Are you adding a change handler for when the incoming call is received? Take a look at the LearningSampleGadget to get the correct dialog handlers: https://github.com/CiscoDevNet/finesse-sample-code/tree/master/LearningSampleGadget

 

Take a look at the WorkflowScreenPop sample gadget on how to subscribe to workflow events: https://github.com/CiscoDevNet/finesse-sample-code/tree/master/WorkflowScreenPopSampleGadget

 

Thanx,

Denise

 

View solution in original post

1 Reply 1

dekwan
Cisco Employee
Cisco Employee

Hi,

 

The dialog change handler SHOULD be triggered when the person being called picks up as it will change their participant state. Are you adding a change handler for when the incoming call is received? Take a look at the LearningSampleGadget to get the correct dialog handlers: https://github.com/CiscoDevNet/finesse-sample-code/tree/master/LearningSampleGadget

 

Take a look at the WorkflowScreenPop sample gadget on how to subscribe to workflow events: https://github.com/CiscoDevNet/finesse-sample-code/tree/master/WorkflowScreenPopSampleGadget

 

Thanx,

Denise

 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: