Pass Parameters to OnHold Process

ameshkov's picture
Contributed by:ameshkov
Created on:September 1st, 2009
Last updated on:September 2nd, 2009
Comments:1 comment

Incoming call to the agent (CSR) may have an on hold process which will run until agent is available and call connected.

One of the ways to pass any values to that process is to add element to the Parameters BDD which is shared between all process flow.

Here is the example of such technique, which can be used for other BDDs as well:

try{

Document Parameters = bpContext.getDocument("Parameters");

int count = Integer.parseInt(Parameters.valueOf("count(/parameters/parameter)").toString());

bpContext.setProperty(Parameters, "parameters/parameter["+(++count)+"]/@name", "var");

bpContext.setProperty(Parameters, "parameters/parameter[@name='var']", "value");

}catch(Exception e){

throw new BPScriptletException(e);

}

 

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
ameshkov's picture

 

 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.