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'
Code Block |
---|
|
from ecflow import Defs,Suite,Task,Trigger,Complete
defs = Defs()
s1 = defs.add_suite("s1")
t1 = s1.add_task("t1")
t2 task2 = ecflows1.Taskadd_task("t2")
task2t3 = s1.add_task("t3")
t3.add_part_trigger( "t1 == complete")
task2t3.add_part_trigger( "t2 == active", True) # here True means add as 'AND'
task2t3.add_part_trigger( "t3t2 == activeaborted", False) # here False means add as 'OR' |
Code Block |
---|
|
complete expression is: (t1 == complete and t2 == active or t3 == active) |
...