Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
 defs = ecflow.Defs()                  # create a empy defs
 suite = defs.add_suite("s1");         # create a suite 's1' and add to defs
 task = suite.add_task("t1");          # create a task 't1' and add to suite
 task.add_trigger("t2 == active)")     # mismatched brackets
 result = defs.check();                # check trigger expressions and limits
 print "Message: '" + result + "'"
 assert len(result) != 0, "Expected Error: mis-matched brackets in expression." 

...