Interface Trigger
-
public interface Trigger
The Trigger initiates the execution of a task.TriggerDefinition
---->TriggerFactory
----> TriggerTriggers are produced by the corresponding
TriggerFactory
. Triggers are produced when a Task is created or updated in the TaskPlanner.- Since:
- taskplanner 3.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
Trigger.TriggerAction
Action to run if the trigger decides that time for execution has come.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default void
activate(com.inet.id.GUID taskID, Trigger.TriggerAction action)
Activates this trigger.default void
activate(Trigger.TriggerAction action)
Deprecated.void
deactivate()
Deactivates this trigger.
-
-
-
Method Detail
-
activate
default void activate(com.inet.id.GUID taskID, Trigger.TriggerAction action)
Activates this trigger. Only activated triggers must call the given action. A trigger is activated if the task of the trigger is activated.- Parameters:
taskID
- id of the triggered taskaction
- this action must be executed when this trigger triggers.- Since:
- taskplanner 4.1
-
activate
@Deprecated default void activate(Trigger.TriggerAction action)
Deprecated.Activates this trigger. Only activated triggers must call the given action. A trigger is activated if the task of the trigger is activated.- Parameters:
action
- this action must be executed when this trigger triggers.- Throws:
java.lang.UnsupportedOperationException
- if not override- Since:
- taskplanner 3.0
-
deactivate
void deactivate()
Deactivates this trigger. Triggers are deactivated if the owning task is deactivated, deleted or modified where this trigger (-definition) is dropped or changed.- Since:
- taskplanner 3.0
-
-