Tag

Spring StateMachine

1 views collected around this technical thread.

macrozheng
macrozheng
Jun 18, 2025 · Fundamentals

Mastering the State Pattern: Theory, Java Examples, and Real‑World Order Workflow

This article explains the State (State Machine) pattern, its typical scenarios, core roles, and provides complete Java implementations—including a user login example and a Spring StateMachine‑driven order processing workflow—while comparing it with related patterns and outlining its pros and cons.

Design PatternsJavaSoftware Architecture
0 likes · 15 min read
Mastering the State Pattern: Theory, Java Examples, and Real‑World Order Workflow
Architect
Architect
Dec 6, 2023 · Backend Development

Implementing an Order State Machine with Spring Statemachine: Concepts, Persistence, and Testing

This article explains the fundamentals of finite state machines, introduces Spring Statemachine, shows how to define states, events, and transitions for an order lifecycle, demonstrates memory and Redis persistence, provides full Java code for controller, service, listeners, and discusses testing, error handling, and AOP logging.

JavaPersistenceRedis
0 likes · 22 min read
Implementing an Order State Machine with Spring Statemachine: Concepts, Persistence, and Testing
New Oriental Technology
New Oriental Technology
May 10, 2021 · Backend Development

Spring StateMachine Implementation for Content Platform Question Bank System

This article details the implementation of Spring StateMachine for refactoring a content platform question bank system, addressing complex state management and coupling issues through state machine patterns.

Java FrameworkRedis PersistenceSpring StateMachine
0 likes · 11 min read
Spring StateMachine Implementation for Content Platform Question Bank System
iQIYI Technical Product Team
iQIYI Technical Product Team
Sep 4, 2020 · Backend Development

Applying Axon Framework and Spring StateMachine in iQIYI Contract Platform: Architecture, Practices, and Lessons

iQIYI’s contract platform replaced a cumbersome Activiti workflow with a lightweight combination of Axon Framework and Spring StateMachine, leveraging DDD, CQRS, and event sourcing to achieve clear layered architecture, traceable events, and flexible state transitions, while confronting distributed‑transaction sagas, batch limits, and integration complexities, and planning future Axon Server adoption.

Axon FrameworkCQRSDomain-Driven Design
0 likes · 11 min read
Applying Axon Framework and Spring StateMachine in iQIYI Contract Platform: Architecture, Practices, and Lessons