Versions Compared

Key

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

...

A flow is just a POJO which implements the Flow interface. A flow has a simple lifecycle, you can start them and stop them and ask their status.

Once a flow has been started via the start() method it can take an arbitrarily long time to complete; you can see if the flow has completed via the
isStopped() method. A flow could fail for some reason (such as it timed out or some error occurred) so there is a method isFailed() which can be used to easily inspect the flow.