Description

The TriggerSwitch component selects a trigger from a list of available triggers. Only the selected trigger can activate the output topic Out.

This makes it possible to create a drop-down list with a choice of different reporting frequencies.

Example: Send every hour, every day, every first day of the month etc.

 

Implementation

  • Drag and drop a TriggerSwitch from the palette into the station
  • Create the TriggerSchedule or TimeTrigger.
  • Right click on the TriggerSwitch, then trigger the action, "SetTriggerCount" and enter the number of triggers (TriggerSchedule or TimeTrigger) that will be linked. The TriggerSwitch automatically creates the necessary actions.
  • Link the TriggerSchedule Trigger topic or the TimeTrigger FireTrigger action to the TriggerSwitch actions as shown in the diagram above.
  • Select the desired Trigger in the component.
  • Link the out slot to an action (usually "generate" of an exportSource) 

  • If the Trigger names are changed, use the "UpdateList" action of the TriggerSwitch
  • If the TriggerSwitch is placed in an ExportSourceManager (of the btibTooIkit module), it allows an update of the exportSources created by the ExportSourceManager to be launched. In any case, the topic Out is triggered when the trigger selected by the TriggerSelection property is activated.

Properties

  • TriggerSelection: Drop-down list containing trigger display names linked to the TriggerSwitch

Actions

  • SetTriggerCount: Specifies the number of actions to add to the TriggerSwitch
  • UpdateList: Updates the list of available triggers (list created from display names of linked objects). If a trigger is renamed after being linked to the TriggerSwitch, it is necessary to launch this action to update the list.

          (warning) This list must not contain duplicate names (an error appears in the Application Director in this case and the component goes into an error state)

  • TriggerActionX: Action linked to a trigger. The display name of the linked Trigger will then be available in the trigger list.