TriggerExecutor

Evaluates the triggers of one directive when its host asks.

Inherits QObject
Group trigger

Declared in src/libs/libtrigger/trigger/executor/TriggerExecutor.hpp.

Detailed description

TriggerExecutor is pull-driven (§TRG-3.7). It owns no timer and no clock. Each call to step() evaluates the triggers of the directive against the ConditionContext that the host gives, and emits triggerFired for each trigger whose conditions hold.

Recurring triggers stay active after firing. One-shot triggers are deactivated. The DirectorateService is the wall host: it pumps step() from a timer at pollIntervalMs(), and it handles batch job submission in response to the triggerFired signal.

See also Directive, Trigger, ConditionContext, DirectorateService.

In this section