Fixed bug where no triggers was evaluating to true
This commit is contained in:
parent
18b15569d6
commit
09651491e3
1 changed files with 2 additions and 0 deletions
|
|
@ -62,6 +62,8 @@ public class TriggerFlow extends DBBean {
|
||||||
* Note: this method will not execute any actionList
|
* Note: this method will not execute any actionList
|
||||||
*/
|
*/
|
||||||
public boolean evaluate(){
|
public boolean evaluate(){
|
||||||
|
if (triggerList.isEmpty())
|
||||||
|
return false;
|
||||||
for(Trigger trigger : triggerList){
|
for(Trigger trigger : triggerList){
|
||||||
if (!trigger.evaluate())
|
if (!trigger.evaluate())
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue