Interface ManagedFunctionContext<O extends java.lang.Enum<O>,​F extends java.lang.Enum<F>>

    • Method Detail

      • getObject

        java.lang.Object getObject​(O key)
        Obtains the dependency object.
        Parameters:
        key - Key identifying the dependency.
        Returns:
        Dependency object.
      • getObject

        java.lang.Object getObject​(int dependencyIndex)

        Similar to getObject(Enum) except allows dynamically obtaining the dependencies.

        In other words, an Enum is not required to define the possible dependencies available.

        Parameters:
        dependencyIndex - Index identifying the dependency.
        Returns:
        Dependency object.
      • setNextFunctionArgument

        void setNextFunctionArgument​(java.lang.Object argument)
                              throws java.lang.Exception
        Specifies the next ManagedFunction argument.
        Parameters:
        argument - Argument for the next ManagedFunction.
        Throws:
        java.lang.Exception - If invalid argument. Typically this is not a recoverable exception, so let propagate from the ManagedFunction or AsynchronousFlowCompletion.