0 / 0
Running a flow

Running a flow

The following example runs all executable nodes in the flow, and is the simplest type of flow script:

modeler.script.stream().runAll(None)

The following example also runs all executable nodes in the flow:

stream = modeler.script.stream()
stream.runAll(None)

In this example, the flow is stored in a variable called stream. Storing the flow in a variable is useful because a script is typically used to modify either the flow or the nodes within a flow. Creating a variable that stores the flow results in a more concise script.

Generative AI search and answer
These answers are generated by a large language model in watsonx.ai based on content from the product documentation. Learn more