Workflow Engine Loop Execution via Code Block Pointing

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current workflow engines have limited functionality, particularly in supporting loop traversal operations and are not user-friendly, as they only allow for simple serial execution of tasks, making it difficult for users without programming experience to implement repetitive tasks.

Innovation Solution

A data processing method that creates an execution instance with a pointing relationship between loop start and end function code blocks, allowing for cyclic execution of a loop function code block based on a loop parameter, enabling users to create workflows with repetitive tasks without needing additional programming experience.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If workflow engines only support simple serial execution of tasks, then the system complexity is low and ease of operation is maintained, but the functionality is limited and cannot support loop traversal operations

Engineering Contradiction:
ImprovefunctionalityVSAvoidsystem complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The workflow engine is segmented into distinct function code blocks including loop start function code blocks, loop end function code blocks, and loop function code blocks. This segmentation allows the system to support loop traversal operations while maintaining clear structural boundaries and manageable complexity through modular design.

Inventive Principle:
Principle #1Segmentation

2Adaptability or versatility

If workflow engines support loop traversal operations, then the functionality is improved, but the ease of operation deteriorates due to increased programming complexity

Engineering Contradiction:
ImprovefunctionalityVSAvoidease of use
Core Design Contradiction:
Adaptability or versatilityVSEase of operation

Solution Approach 1:

The workflow engine provides self-service capabilities by automatically managing loop traversal operations. Users simply need to configure loop parameters and establish pointing relationships between function code blocks, while the engine handles the iterative execution logic, reducing the programming burden and maintaining ease of operation.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The loop start function code block and loop end function code block act as intermediaries that encapsulate the complexity of loop traversal. These intermediary components allow users to implement repetitive tasks through visual configuration without needing to understand the underlying iteration mechanics, thus preserving ease of use while enhancing functionality.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Ease of operation

If users without programming experience need to implement repetitive tasks, then the ease of operation should be high, but the current system lacks the functionality to support such operations

Engineering Contradiction:
Improveease of useVSAvoidfunctionality
Core Design Contradiction:
Ease of operationVSAdaptability or versatility

Solution Approach 1:

The workflow engine implements universal loop traversal functionality that can be applied to various repetitive tasks through a standardized interface. The loop start and loop end function code blocks provide multi-functional support for different types of iterations, allowing users without programming experience to implement diverse repetitive operations through a single unified mechanism.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Data Source

PatentUS20240385812A1Data processing method and apparatus, device, and readable storage medium
Publication Date: 2024.11.21 TENCENT TECHNOLOGY (SHENZHEN) CO LTD
  • US20240385812A1 patent drawing
  • US20240385812A1 patent drawing
  • US20240385812A1 patent drawing

AI summary

The present disclosure discloses a data processing method and apparatus, a device, and a readable storage medium. The method includes creating an execution instance corresponding to a target workflow, the execution instance comprising a pointing relationship between at least two function code blocks comprised in the target workflow, and the at least two function code blocks comprising a loop start function code block and a loop end function code block; obtaining a loop parameter corresponding to the loop start function code block; determining a function code block between the loop start function code block and the loop end function code block as a loop function code block according to the pointing relationship; and looping the loop function code block according to the loop parameter and the pointing relationship.