Jump to content









Photo

User defined variables (and persistent) for uses in listener rules and implementation groovy code

global variables storage

  • Please log in to reply
2 replies to this topic

#1 ian_traynor

ian_traynor

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 22 September 2017 - 02:27 PM

Hi

There may be situations where a rule or code, used in a listener/alarm, may need to calculate/update a variable/array/structure periodically programmatically. How might this be achieved in the platform? Once created (instanced) do Services/Groups/Assets/Devices have the ability to store such variables/properties outside the scope of what is presented in the Web portal?

Thank you

Ian



#2 Yoleon

Yoleon

    Sugar Master

  • Members
  • PipPipPip
  • 31 posts

Posted 26 September 2017 - 08:39 AM

Hi Ian_trainor,

 

You can use the entity Device with the variables named properties to store, update and delete your information.

 

I hope this help you,

 

Carriots Staff



#3 ian_traynor

ian_traynor

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 27 September 2017 - 01:52 PM

Thank you,  so one cannot add/update properties to Projects/Services/Groups/Assets but can create "dummy" Devices to store retain variables used in listener/alarms code for Projects/Services/Groups/Assets






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users