Interface ActivityTreeUtil.ActivityStateProcessor

  • Enclosing class:
    ActivityTreeUtil
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @Experimental
    @FunctionalInterface
    public static interface ActivityTreeUtil.ActivityStateProcessor
    • Method Detail

      • process

        void process​(@NotNull
                     @NotNull ActivityPath path,
                     @Nullable
                     @Nullable ActivityStateType state,
                     @Nullable
                     @Nullable List<ActivityStateType> workerStates,
                     @NotNull
                     @NotNull TaskType task)
        Called when relevant state is found. Worker states are present in the case of distributed coordinator-workers scenario.
      • toNewChild

        default void toNewChild​(@NotNull
                                @NotNull ActivityStateType childState)
        Called when new child is entered into.
        Parameters:
        childState - State of the child. Often can be ignored.
      • toParent

        default void toParent()
        Called when new child is processed, and we want to return to the parent.