Interface GraphListener

All Superinterfaces:
ExtensionPoint
All Known Subinterfaces:
GraphListener.Synchronous
All Known Implementing Classes:
StandardGraphLookupView

public interface GraphListener extends ExtensionPoint
GraphListeners can be used in two different ways: either as an Extension, which will have its onNewHead(FlowNode) fired for every FlowExecution, or by instantiation and being passed to FlowExecution.addListener(GraphListener), in which case only events for that specific FlowExecution will be fired.
  • Method Details

    • onNewHead

      void onNewHead(FlowNode node)
      FlowExecution should batch up changes to a group and call this once, as opposed to call this for every new node added. One of the use cases of this listener is to persist the state of FlowExecution.