Please note that after the first part trigger has been added, subsequent part triggers must include a boolean to indicate whether the part expression is to be 'anded' or 'ored'
from ecflow import Defs,Suite,Task,Trigger,Complete defs = Defs() s1 = defs.add_suite("s1") t1 = s1.add_task("t1") t2 = s1.add_task("t2") t3 = s1.add_task("t3") t3.add_part_trigger( "t1 == complete") t3.add_part_trigger( "t2 == active", True) # here True means add as 'AND' t3.add_part_trigger( "t2 == aborted", False) # here False means add as 'OR'
t3 TRIGGER
(t1 == complete and t2 == active or t3 == active)