Interface FlowContext

    • Method Detail

      • contains

        boolean contains​(String key)
        Checks whether the context contains a value with the given key.
        Parameters:
        key - the key to be checked for existence in the context.
        Returns:
        true if exists a value mapped to the given key in the context, false otherwise.
      • register

        void register​(Disposable disposable)
        Registers a disposable object in the context so that it can be disposed when the flow execution ends. This might be used to cleanup Database cursors or other resources which needs to stay open across the whole flow execution.
        Parameters:
        disposable - the object to be disposed when the flow ends.