Defining completion attributes to specify what makes your flow succeed or fail

In some cases, your flow might include error recovery routines that only run under certain conditions. You can specify a completion attribute for a flow to defines what constitutes completion of the flow. For example, you can specify that only one of many paths must complete.

About this task

By default, a flow is considered Done when all work items complete successfully or any work item in the flow fails.

If a job in the flow exits, no additional jobs in the flow are dispatched, although any currently running jobs continue running until they complete.

Completion attributes enable you to define what makes a flow fail or succeed.

Procedure

  1. In IBM Spectrum LSF Application Center, select Workload > Definitions > Flow Definitions on the Workload tab.
  2. Open the Flow Editor to modify your flow.
    1. If your flow is still in draft state (that is, it hasn't been committed yet. select the draft flow definition that you want to edit in the Flow Definitions summary list, and click the Edit Draft icon.
    2. If your flow is already committed, select the flow definition that you want to create a new version for, and click Modify. Select the version of the committed definition that you want to use as a starting point for the new version, and in the Modify with New Version dialog, click Create.

    The Flow Editor opens.

  3. In Flow Editor, select Edit > Completion Attributes.

    The Flow Completion window is displayed.

  4. To keep the default behavior, make sure that the following check box is checked: Ignore work items in the Waiting state that will never run, or that depend on a file, time, or proxy event .
  5. Make any additional modifications in the Flow Completion window.
  6. Select Flow Definition > Save Draft to save the flow definition.
  7. When you are ready to commit the flow definition as a version that can be used by other users, select Flow Definition > Commit Draft as New Version.