public final class TriggerElement
extends java.lang.Object
TriggerEvent class, part of the TriggerElement.
The triggering Condition is verified on initiative by the Fire, and if satisfied - the Rule is 'triggered'.| Modifier and Type | Method and Description |
|---|---|
static TriggerElement |
create(TriggerEvent fire)
Creates
TriggerElement with given Fire and no Condition. |
static TriggerElement |
create(TriggerEvent fire,
java.lang.String triggerCondition)
Creates
TriggerElement with given Fire and trigger Condition. |
static TriggerElement |
create(TriggerEvent fire,
java.lang.String triggerCondition,
boolean sync)
Creates
TriggerElement with given Fire, trigger Condition and explicit sync
option defining whether possible triggers of Rule should be executed synchronously, i.e. |
TriggerEvent |
getFireCondition()
Returns the fire definition for this trigger element.
|
java.lang.String |
getTriggerCondition()
Returns the trigger Condition for this trigger element.
|
boolean |
isTriggeredActionSync()
Tells whether rule processing should be done synchronously in the thread of the firing event.
|
java.lang.String |
toString() |
public static TriggerElement create(TriggerEvent fire)
TriggerElement with given Fire and no Condition.fire - Fire definition.TriggerElement object having supplied Fire definition.java.lang.IllegalArgumentException - if fire supplied parameter is null.public static TriggerElement create(TriggerEvent fire, java.lang.String triggerCondition)
TriggerElement with given Fire and trigger Condition.fire - Fire definition.triggerCondition - trigger condition.TriggerElement object having supplied Fire definition.java.lang.IllegalArgumentException - if fire supplied parameter is null.public static TriggerElement create(TriggerEvent fire, java.lang.String triggerCondition, boolean sync)
TriggerElement with given Fire, trigger Condition and explicit sync
option defining whether possible triggers of Rule should be executed synchronously, i.e. in the
thread of the firing event.fire - Fire definition.triggerCondition - trigger condition.sync - flag stating whether rule processing should be done synchronously in the thread of the firing event.TriggerElement object having supplied Fire definition.java.lang.IllegalArgumentException - if fire supplied parameter is null.public TriggerEvent getFireCondition()
public java.lang.String getTriggerCondition()
public boolean isTriggeredActionSync()
true if rule processing should be done synchronously in the thread of the firing event,
false otherwise.public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.