You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried to use a script expression in a rule, using two proposed esper syntax, but both are seen with incorrect syntax by perseo-core esper engine:
time=2018-03-14T13:13:15.842Z | lvl=ERROR | corr=n/a | trans=n/a | op=refreshCore | comp=perseo-fe | srv=n/a | subsrv=n/a | msg=[object Object] error put to http://perseo-core:8080/perseo-core/rules (Incorrect syntax near 'expression' at line 1 column 35 [context ctxt$testservice$testalain expression String js:trunc(name)[trunc(name); function trunc(n) {return n.substr(n.indexOf(":" + 1));}] select *,"my_rule_update_tto" as ruleName, *,cast(cast(ev.temperature?, String),float) + 1.0 as temp, trunc(cast(ev.id?, String)) as iddev from pattern [every ev=iotEvent(cast(cast(temperature?,String),float)<5.0 and type="thing")]])
time=2018-03-14T13:23:15.875Z | lvl=ERROR | corr=n/a | trans=n/a | op=refreshCore | comp=perseo-fe | srv=n/a | subsrv=n/a | msg=[object Object] error put to http://perseo-core:8080/perseo-core/rules (Incorrect syntax near 'expression' at line 1 column 35 [context ctxt$testservice$testalain expression String js:trunc(name)[name.substr(name.indexOf(":" + 1));] select *,"my_rule_update_tto" as ruleName, *,cast(cast(ev.temperature?, String),float) + 1.0 as temp, trunc(cast(ev.id?, String)) as iddev from pattern [every ev=iotEvent(cast(cast(temperature?,String),float)<5.0 and type="thing")]])
the used esper version (5.5.0) support script expression, any idea of the issue with the syntax ?
or is it a script expression support issue ?
Thanks in advance for help or feedback on this problem
The text was updated successfully, but these errors were encountered:
I'd suggest you to do an isolated test using just Esper in a small testing Java program, based in the same version (5.5.0) in order to see if the problem is related with Perseo or with Esper itself.
I've tried to use a script expression in a rule, using two proposed esper syntax, but both are seen with incorrect syntax by perseo-core esper engine:
time=2018-03-14T13:13:15.842Z | lvl=ERROR | corr=n/a | trans=n/a | op=refreshCore | comp=perseo-fe | srv=n/a | subsrv=n/a | msg=[object Object] error put to http://perseo-core:8080/perseo-core/rules (Incorrect syntax near 'expression' at line 1 column 35 [context ctxt$testservice$testalain expression String js:trunc(name)[trunc(name); function trunc(n) {return n.substr(n.indexOf(":" + 1));}] select *,"my_rule_update_tto" as ruleName, *,cast(cast(ev.temperature?, String),float) + 1.0 as temp, trunc(cast(ev.id?, String)) as iddev from pattern [every ev=iotEvent(cast(cast(temperature?,String),float)<5.0 and type="thing")]])
time=2018-03-14T13:23:15.875Z | lvl=ERROR | corr=n/a | trans=n/a | op=refreshCore | comp=perseo-fe | srv=n/a | subsrv=n/a | msg=[object Object] error put to http://perseo-core:8080/perseo-core/rules (Incorrect syntax near 'expression' at line 1 column 35 [context ctxt$testservice$testalain expression String js:trunc(name)[name.substr(name.indexOf(":" + 1));] select *,"my_rule_update_tto" as ruleName, *,cast(cast(ev.temperature?, String),float) + 1.0 as temp, trunc(cast(ev.id?, String)) as iddev from pattern [every ev=iotEvent(cast(cast(temperature?,String),float)<5.0 and type="thing")]])
the used esper version (5.5.0) support script expression, any idea of the issue with the syntax ?
or is it a script expression support issue ?
Thanks in advance for help or feedback on this problem
The text was updated successfully, but these errors were encountered: