What are some ways to do an explicit "do while" in uccx? There are some steps that definitely implement a "do while" routine while executing the particular method assigned to the step. However, I'm looking for a more general way of looping. Basically, I want to execute one batch of steps while another step or set of steps is executing. The goto and the delay steps don't get this job done well(I think).
The only way I've found to do it is the "onhold" step which seems to have an implied "if there is a time step below me, run it while on hold" which seems weird to do it this way. You'd think that it would base the on hold time on the value of a property of the step. It would be consistent with the way the other steps operate.
I kind of assume that if I knew Java I could write some expressions or use the remote Java object to do anything I wanted? If this is the case, can anyone point me in the right direction, give some pointers, etc?
The specific thing I;m trying to do now is play a prompt, do a consultative transfer while the prompt is playing, and if the call is successful, transfer the call. Otherwise wait until the prompt is finished and then replay the prompt. You can kind of approximate this with this:
The problem is, of course, that to perform the consultative transfer uccx takes the call of hold which is disruptive.
What I would like it to look like is as follows:
do ONHOLD while BLOCK IS RUNNING
or to put another way:
_timer 10 seconds
_if 10 minutes