Skip to content

想用workflow 调度复杂的原子动作状态机,可以怎么做呢 #1791

Open

Description

就是有一堆状态,不同状态对应不同的行为,行为之间可能还有冲突约束

Activity

  1. Barenboim commented on Oct 29, 2025

    @Barenboim
    Contributor

    我觉得状态机的模式一点也不好用,也没有必要使用workflow去实现状态机。如果对应为workflow的实现,完全可以在任务callback里决定产生下一个是什么任务。

    如果一定要搞状态机,可以用WFGraphTask配合WFDynamicTask节点任务试一试。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions