check a suite definition without loading it into the ecflow_server:

Step-by-step guide

Add the steps involved:

  1. If the suite definition is in a text file::
    > ecflow_client --load=test.def check_only

  2. Load the test.def into python and check

    import ecflow     
    defs = ecflow.Defs("test.def")
    theCheckValue = defs.check();
    assert len(theCheckValue) != 0,  "Error in expression,limits,etc," + theCheckValue


  3. If the suite definition is built using python api.

    import ecflow     
    defs = ecflow.Defs()
    suite = defs.add_suite("s1");
    suite.add_task("t1").add_trigger("t2 == active)")  
    theCheckValue = defs.check();
    print "Message: '" + theCheckValue + "'"
    assert len(theCheckValue) != 0,  "Expected Error: mis-matched brackets in expression."


 

You may also want to use visual panels to communicate related information, tips or things users need to be aware of.

Related articles

Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.



Related issues