【发布时间】:2019-03-14 10:48:20
【问题描述】:
我正在尝试使用 switch 子句根据“any”类型的变量的实际类型来定义要做什么,我的代码正在崩溃。代码如下:
handleResponse(any.parseType("string",respValuesRaw[type]), currEPIFace);
...
...
...
action handleResponse(any response, CurrentExtraParamsInteface currEPIFace){
switch(response){
case string:
{}
我得到的错误是:“ParseException - ParseType() 方法中的错误:无法解析字符串:缺少开头引号”
但是,respValuesRaw 变量是 <string,string> 类型的字典
这是在 Apama 10.1 上。
知道什么地方出了问题吗?
【问题讨论】:
标签: apama