Flag Groups

In Reactor a flag group is a structure used to store tally and routing information. It is a matrix of values that each have a color and a label.

These colors can be

  • Red
  • Green
  • Blue
  • Yellow

Flag Groups are used in all default configurations for Tally Forwarding and Routing Triggers.

Creating and configuring Flag Groups

Flag Groups are a Tree Element and can be defined on a layer, following the usual scheme for Inheritance as explained in the Tree Chapter.

To keep things simple we recommend to create Template Behaviors on the global Root Layer of your configuration or the configuration layer related to your panel. In this example we will use the second option. You can select the configuration layer related to your panel using the layer icon next to the Section Selector.

image

Then go ahead and add a Flag Group.

flag group

Once you have created a flag group you can go and use it straight away.

Flag Groups are global

One of the most important Settings of a flag group is its Group Index This number is similar to a TSL Screen ID. Flag Groups with the same Group Index will share their state,no matter where they are defined in Reactor. You can use this to quickly make 2 controllers share the same tally information, but also to make sure tally is seperated for controllers (by using a different number for the index)

flag group

Controlling Flags from a Behavior

Flags can easily be set from a Behavior or used in a Condition. To do that simply select Flag in the Parameter Helper Window.

Once you have selected a Flag you can use Hold Down, Change By Step or Set Specific Value Template Behaviors to control it. On GPO contacts we usually use the Output Template Behavior

Flags behave like any other Boolean Parameter. They have a value called 'true' and one called 'false'.

See more here: Parameter Reference

flag group parameter reference

Monitoring and Debugging Flag Groups

If you open show more you can see the first 150 flags as switches. This allows you to monitor their state and also control them manually while you are working on your configuration.

(Note: the amount of flags is technically unlimited, but only the first 150 are shown in the inspector for performance reasons)

flag group control in show more