Details
-
Type:
extRequest
-
Status: Closed
-
Priority:
Major
-
Resolution: Done
-
Fix Version/s: 2021
-
Component/s: None
-
Labels:None
-
Sender Email:
-
HD-Chapter:Data
-
HD-Enabler:CEP
Description
Hi FI-WARE,
I want to report about Proton issues/capabilities that i would like to ask
u guys to implement!
First, i already spoke with developers. There is not allowed to pass a
variable to array neither array cant be initiated with it. Currently array
can take only constansts like
, but not varriables
{1,2, event.temperature,4}.
Second, there is no built-in function DoubleToString() or just function
that casts to String.
And third, there is no way to access n-th value in the aggregated array.
Thanks a lot,
Jānis.
_______________________________________________
Fiware-tech-help mailing list
Fiware-tech-help@lists.fi-ware.org
https://lists.fi-ware.org/listinfo/fiware-tech-help
[Created via e-mail received from: =?UTF-8?Q?J=C4=81nis_Mateuss?= <jajanka3@gmail.com>]
Hello Janis,
Thank you for your suggestion, we will implement it in one of the future updates of the system.
For now, instead of deleting an artifact and recreating it, you can rename it through the authoring tool under the "General" settings of the artifact. Just click the name and you will be able to edit it. However - this won't affect the name if this artifact is used within another artifact, e.g an event used in a context. you will also have to edit the event's name in the context using it.
Regarding your problem - this is a matter of design. You can only derive one instance of an event. If you want you derived event to have values dependent on some condition, you will have to put this condition in the attribute expression itself (under Event Attributes).
Here is an example, to match your problem:
in the expression for the id attribute, write:
if x==2 then 1 else if x==3 then 2 endif endif
And if you want to derive the event only for specific values of x, in the condition of the event itself you can write x==2 OR x==3
Regards,
Itai Peri