Java Service Process Engine Readability

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current service process frameworks, such as Activiti, are cumbersome and difficult to maintain due to poor readability and debugging performance, especially in cloud platforms, which hinders efficient service process execution and maintenance.

Innovation Solution

A service processing method that creates a process instance for UI requests, determines the target process instance based on execution state, and executes corresponding methods from a register compiled according to a preset development specification, ensuring high readability and maintainability by using a simple and reliable workflow-focused approach.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If Activiti framework with XML-based service process is used, then rich and powerful functions are achieved, but device complexity and difficulty of maintenance increase

Engineering Contradiction:
Improveservice process functionalityVSAvoidframework complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent extracts the core workflow execution logic from the complex Activiti framework and implements a simplified version using only Java code. It takes out the essential process instance creation, method execution, and state management functions while removing the bulky XML configuration and complex framework overhead, achieving the same service process functionality with much lower complexity

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent creates a simplified copy of the workflow engine functionality. Instead of using the full Activiti framework, it implements a lightweight Java-based process execution engine that copies only the necessary components: process instance management, method registration and execution, and state tracking, thereby maintaining functionality while reducing complexity

Inventive Principle:
Principle #26Copying

2Adaptability or versatility

If Activiti framework with XML-based service process is used, then rich and powerful functions are achieved, but ease of operation and debugging performance deteriorate

Engineering Contradiction:
Improveservice process functionalityVSAvoidreadability and debugging
Core Design Contradiction:
Adaptability or versatilityVSEase of operation

Solution Approach 1:

The patent substitutes the XML-based configuration system with a pure Java code-based system. Instead of using XML files for process definition and configuration, it uses Java classes, methods, and annotations to define and execute service processes, making the code more readable, easier to debug with standard Java tools, and more consistent with Java development practices

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

Solution Approach 2:

The patent implements self-contained Java classes that encapsulate entire service process logic. Each service process is represented by a Java class with executable methods, allowing developers to read, understand, and debug the process logic directly in the source code without needing to interpret XML configurations or use specialized workflow tools

Inventive Principle:
Principle #25Self-service

Data Source

PatentUS11704139B2Service processing method and apparatus, electronic device, and storage medium
Publication Date: 2023.07.18 INSPUR SUZHOU INTELLIGENT TECH CO LTD
  • US11704139B2 patent drawing
  • US11704139B2 patent drawing

AI summary

Disclosed are a service processing method and apparatus, an electronic device, and a computer-readable storage medium. The method includes: when receiving a User Interface (UI) request, creating a process instance corresponding to the UI request, and storing instance information of the process instance in a storage module (S101); determining a target process instance from the storage module, and determining a step to be executed of the target process instance based on target instance information of the target process instance (S102); searching, from a register, and executing a target method corresponding to the step to be executed, wherein the register includes all methods compiled according to a preset development specification (S103).