task = ecflow.Task("t1")
task.add_trigger( "t2 == active and t4 == aborted" )
task.add_complete( "t2 == complete" )