Author Message
willpwl93
Joined: Jul 23, 2019
Messages: 14
Offline
How can I add in java code to go to the subsequent code in the Servlet node if certain conditions are met?

I have an if-else condition that checks if the current datetime is during working hours. If yes, will transfer to an agent. Otherwise, the call will be dropped after prompt.
WilsonYu
Joined: Nov 6, 2013
Messages: 3950
Offline
The best way would be your Java code will set a particular value or flag in a project variable. Then use a Data node, which has the tools like "if" and "else" in its palette to check the value you set earlier and add the next node under the "if' or "else" elements.
willpwl93
Joined: Jul 23, 2019
Messages: 14
Offline
Thank you very much Wilson. This is a whole lot better solution to the problem.
Go to:   
Mobile view