setEvent
setEvent(event)
setEvent 方法定义了 postEvent 命令使用的事件的名称。
*
event - 包含事件名称的字符串。
*
event 的名称必须与交互式渠道中定义事件名称完全匹配。它是区分大小写的。
返回值
无。
示例
以下示例摘自调用 postEventexecuteBatch 方法。
String eventName = "SearchExecution";

Command postEventCommand = new CommandImpl();
postEventCommand.setMethodIdentifier(Command.COMMAND_POSTEVENT);
postEventCommand.setEventParameters(postEventParameters);
postEventCommand.setEvent(eventName);