Interface ActivityTreeUtil.ActivityStateProcessor

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

    public static interface ActivityTreeUtil.ActivityStateProcessor
    • Method Detail

      • process

        void process​(@NotNull
                     @NotNull ActivityPath path,
                     @Nullable ActivityStateType state,
                     @Nullable List<ActivityStateType> workerStates,
                     @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.
        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.