Pass Parameters to OnHold Process
| 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