Forum Discussion

  • Variables created in RULE_INIT are global in scope across all connections. Unlike connection based variables, global variables are not automatically garbage collected. There are also no synchronization protection (meaning if you are writing to global variables from multiple events, there is no assurance that the variable will not be overwritten by separate connections.

     

     

    We advise against global variables unless they are relatively static in nature (unless you have no other option).

     

     

    -Joe