I am trying to use a switch clause to define what to do depending on the real type of a variable of type "any", my code is crashing. The code is the next:
handleResponse(any.parseType("string",respValuesRaw[type]), currEPIFace);
...
...
...
action handleResponse(any response, CurrentExtraParamsInteface currEPIFace){
switch(response){
case string:
{}
The error I am getting is: "ParseException - Error in ParseType() method: Unable to parse string: missing opening quote"
However, the respValuesRaw
variable is a dictionary of type <string,string>
This is on Apama 10.1.
Any idea of what could be wrong?
I found out this kind of parsing is not ment to be used with basic types, so I changed the way I call the handleResponse action:
Actually, any string value will fit.