Business workflow execution method and device, processor and computer readable storage medium thereof

By generating unified events and deterministic migration gate control states, combined with immutable state diagrams and collaborative contexts, the problems of information misalignment and duplicate operations in customs services are solved, achieving deterministic and recoverable business process management and reducing the risk of information leakage.

CN123180929APending Publication Date: 2026-11-27QINGGUANBAO INTELLIGENT TECHNOLOGY (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611394101.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-09
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In customs services, existing technologies such as swarm robots and general large models cannot accurately determine the order and version to which a document belongs, resulting in duplicate order creation and uploads, information misalignment when forwarding across customer groups and supplier groups, and the risk of information leakage. Furthermore, the system lacks a unified and executable consistency mechanism.

Method used

By generating unified events and using artificial intelligence models to generate structured candidate results, combined with deterministic transition gates and immutable executable state graphs, deterministic control of state transitions is achieved. Action-level idempotent keys and collaborative contexts are used to ensure accurate information transmission and prevent duplicate operations and information leakage.

Benefits of technology

It achieves determinism, idempotency, recoverability, and compliance in customs procedures, avoids repetitive operations, ensures accurate information transmission, reduces the risk of information leakage, and supports rapid replication and fault recovery of cross-tenant processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123180929A_ABST
    Figure CN123180929A_ABST
Patent Text Reader

Abstract

The application relates to a business workflow execution method and device, a processor and a computer readable storage medium thereof. The method comprises the following steps: generating a unified event; generating a business object candidate and a business evidence package; compiling an executable state diagram by combining an industry process template and a tenant difference configuration, and fixing a configuration snapshot when a process instance in the executable state diagram is started; generating a structured candidate result by using an artificial intelligence model; judging whether state migration is allowed by a deterministic migration gate, and generating an action command when the state migration is allowed; recording a state migration intention, a step account record and a reliable outbox message, and executing the action command according to the reliable outbox message by a connector; receiving a result event returned by the connector, and advancing a process instance according to the result event. By using the above method, the artificial intelligence model is only used for candidate generation, the deterministic migration gate is used for unique control of a state and an action command, and uncertainty caused by model illusion is fundamentally eliminated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer software, specifically to a workflow execution method, apparatus, processor, and computer-readable storage medium for a business process. Background Technology

[0002] During customs services, clients frequently send invoices, packing lists, contracts, customs declaration elements, drafts, problem shipments, and receipts within corporate collaboration groups. Freight forwarders or customs brokers need to download the documents, identify the business number, log into the ERP or customs declaration operating system to create orders and upload files, and then synchronize the processing results to the client group. Some business also requires sending documents to external customs brokers, document suppliers, or other collaborators, receiving feedback from their groups, and then sending it back to the original client group. However, ordinary group chat bots mainly reply based on keywords or call single interfaces, lacking continuous business status and unable to determine which order, version, or round of supplier collaboration a document belongs to. General large-scale model agents can understand natural language, but their output is probabilistic; if the model directly decides to create orders, overwrite documents, forward to clients, or change business status, unpredictable results may occur due to illusions, missing context, or model version changes. General low-code workflows can usually orchestrate nodes, but in situations such as duplicate delivery of group messages, duplicate sending of attachments, unknown results after interface timeouts, service restarts, and recovery after manual corrections, duplicate order creation, duplicate uploads, or duplicate notifications are likely to occur. While hardcoding processes for each customer allows for short-term deployment, it scatters group bindings, field mappings, routing rules, document types, message templates, and SLAs throughout the code, making it difficult to quickly replicate across different customs brokers and freight forwarders, and also making it difficult to prove which version of the rules was used for a particular instance. When forwarding across customer and supplier groups, the original chat context is severed. When a supplier only sends back a file or a comment, the system struggles to determine which business order and customer group to write back to, and there is a risk of incorrectly leaking other customer information. Existing systems often treat logs as post-event query data, rather than unifying event deduplication, action idempotency, state transitions, retries, and manual intervention into an executable consistency mechanism. Summary of the Invention

[0003] The purpose of this invention is to overcome the shortcomings of the prior art and provide a workflow execution method, apparatus, processor and computer-readable storage medium thereof.

[0004] To achieve the above objectives, the workflow execution method, apparatus, processor, and computer-readable storage medium of the present invention are as follows: The workflow execution method for business operations is characterized by the following steps: (1) Receive business data from at least one channel and generate a unified event; (2) Generate business object candidates and business evidence packages based on the unified event and its corresponding original data, wherein the business evidence package includes the association basis of the business object candidates and the original data reference; (3) Compile the industry process template and tenant difference configuration into an executable state diagram with version, and fix the configuration snapshot corresponding to the executable state diagram when the process instance in the executable state diagram starts; (4) Using an artificial intelligence model to generate structured candidate results based on the business evidence package, the structured candidate results include candidate fields, evidence references and confidence levels; (5) The deterministic migration gate determines whether state migration is allowed based on the current state of the process instance, the structured candidate results, the configuration snapshot, and the authorization information, and generates an action command when state migration is allowed; The artificial intelligence model does not directly change the state of the process instance, nor does it directly call external connectors. (6) Record the state transition intent, step ledger record and reliable outgoing mail message, and the connector executes the action command based on the reliable outgoing mail message; (7) Receive the result event returned by the connector and advance the process instance based on the result event.

[0005] Optionally, when the result event indicates that the execution result cannot be determined, the result is checked with an external system, and the action command is not directly repeated before the result is confirmed.

[0006] Optionally, step (1) further includes: performing deduplication on the unified event, specifically including: When the business data carries a source message identifier, the event fingerprint is calculated based on the tenant's tenant identifier, the channel's account identifier, the session identifier of the receiving business data, the source message identifier, and the attachment hash. When the business data does not carry a source message identifier, a substitute fingerprint is calculated based on the hash of the text, sender, time window, and attachments of the business data, and the automatic execution level of the unified event using the substitute fingerprint is reduced. The event fingerprint and the alternative fingerprint are used to describe the unified event; Events with the same unified event fingerprint or the same alternative fingerprint are marked as duplicate events, and no new process instance is created for the duplicate events.

[0007] Optionally, a business object candidate and a business evidence package are generated based on the unified event and its corresponding original data, including: The candidate business objects are generated based on at least one of the following association information: group role binding, explicit business number, cargo owner alias, file name rules, file content hash, and historical collaboration context; and the matching criteria for the candidate business objects are saved. The results of the business object candidate determination include unique matching, conflicting matching, and insufficient evidence. When the determination result is a unique match, the deterministic transition gate is allowed to perform a state transition judgment; when the determination result is a conflicting match or insufficient evidence, the action command is not generated and the process is transferred to manual processing.

[0008] Optionally, compiling the industry process template and tenant difference configuration into a versioned executable state diagram includes: Within the predetermined slots of the industry process template, the tenant-differential configuration covers group binding, field mapping, routing rules, data rules, message templates, SLA parameters, and connector parameters. The compilation results are subjected to type validation, required field validation, reference integrity validation, permission conflict validation, no exit state validation, illegal loop validation, and timeout and retry limit validation. After the validation passes, an immutable executable state diagram with version number and configuration hash is generated. When the process instance is started, the workflow definition version, authorization snapshot, and connector contract version are fixed. During operation, the fixed immutable executable state diagram and configuration snapshot are referenced. After the configuration is published, it is only used for new process instances. The execution rules of the running process instance are not changed due to the configuration publication.

[0009] Optionally, the workflow execution method further includes: performing schema validation on the structured candidate results, and then solidifying them into a candidate result snapshot after carrying the model or rule version, schema version, and result hash; The deterministic migration gate is further determined based on the state snapshot of the process instance, the candidate result snapshot, the configuration snapshot, and the authorization snapshot. The determination results of the deterministic migration gate include allowing migration, rejecting migration, and manual review; When the determination result indicates that migration is allowed, the action command is output; When the determination result is rejection, record the reason for rejection and do not output the action command; When the judgment result is manual review, the freeze will be automatically executed and a manual processing task will be created.

[0010] Optionally, step (6) further includes the step of: using action-level idempotent keys to prevent the same action from being executed repeatedly; The action-level idempotent key is calculated and generated based on the tenant identifier, process instance identifier, logical step identifier, business object identifier, action type, and load version. The connector categorizes the returned execution results into four types: success, failure, partial success, and uncertain, and generates corresponding result events. When the execution result is uncertain, a verification query is initiated using the returned request identifier, the action-level idempotent key, or the business unique key; If execution is confirmed, the confirmed execution result is reused; if execution is not confirmed, the original action-level idempotent key is used to re-execute; if it cannot be confirmed, the result remains in an uncertain state and is transferred to manual processing.

[0011] Optionally, the workflow execution method further includes: When it is necessary to send the business data to the target collaboration group, a collaboration context is created. The collaboration context records at least the source business object, source group identifier, target group identifier, target group role, allowed feedback type, associated token, token version, effective time window, and security view rules. Before sending data to the target collaboration group, the fields, files and status are projected with a security view according to the security view rules, and the associated token is carried in the outgoing message; After receiving feedback from the target group, the matching relationship between the feedback and the collaboration context is verified based on the group role of the feedback party, the associated token, the effective time window, the feedback file type, and the uniqueness of the business object. If the verification is successful, the feedback is written into the business evidence package of the source business object. Before sending the feedback results back to the source group, perform the security view projection again and verify the target group, tenant, and customer affiliation.

[0012] The apparatus for implementing workflow execution for business operations is characterized in that the apparatus comprises: A processor is configured to execute computer-executable instructions; The memory stores one or more computer-executable instructions, which, when executed by the processor, implement the various steps of the workflow execution method for implementing the business described above.

[0013] The processor for implementing the workflow of business operations is characterized in that the processor is configured to execute computer-executable instructions, and when the computer-executable instructions are executed by the processor, the various steps of the above-described workflow execution method for implementing business operations are implemented.

[0014] The computer-readable storage medium is characterized in that it stores a computer program thereon, which can be executed by a processor to implement the various steps of the workflow execution method for implementing the above-described business processes.

[0015] The workflow execution method of this invention utilizes an artificial intelligence model for candidate generation and a deterministic migration gate to uniquely control states and actions, fundamentally eliminating uncertainty caused by model illusions. A dual-layer anti-duplicate mechanism of event fingerprints and action-level idempotent keys prevents repeated order creation and uploading. Result event modeling and state verification mechanisms prevent blind retries. Templates are compiled into immutable versions and instances are fixed snapshots, enabling reliable cross-tenant replication. Collaborative contexts and security views ensure accurate cross-group feedback and prevent unauthorized disclosure. Checkpoint repair reuses completed steps, avoiding redundant work. End-to-end versioned auditing ensures traceability. These mechanisms collectively endow unstructured communication-driven customs processes with enterprise-level determinism, idempotency, recoverability, and compliance. Attached Figure Description

[0016] Figure 1 This is a schematic diagram of the overall architecture of the workflow platform in one embodiment of the workflow execution method of the present invention.

[0017] Figure 2 This is a schematic diagram illustrating the compilation and version fixing of industry process templates and tenant-specific configurations in one embodiment of the workflow execution method for the business of the present invention.

[0018] Figure 3 This is a schematic diagram illustrating the collaborative context of data exchange between customer groups and supplier groups in one embodiment of the workflow execution method of the present invention.

[0019] Figure 4 This is a schematic diagram of an event-driven deterministic execution method flow in one embodiment of the workflow execution method for the business of the present invention. Detailed Implementation

[0020] To more clearly describe the technical content of the present invention, the following description is provided in conjunction with specific embodiments.

[0021] Please refer to the table below for the following terms used in this embodiment: The workflow execution method for this business according to the present invention includes the following steps: (1) Receive business data from at least one channel and generate a unified event; (2) Generate business object candidates and business evidence packages based on the unified event and its corresponding original data, wherein the business evidence package includes the association basis of the business object candidates and the original data reference; (3) Compile the industry process template and tenant difference configuration into an executable state diagram with version, and fix the configuration snapshot corresponding to the executable state diagram when the process instance in the executable state diagram starts; (4) Using an artificial intelligence model to generate structured candidate results based on the business evidence package, the structured candidate results include candidate fields, evidence references and confidence levels; (5) The deterministic migration gate determines whether state migration is allowed based on the current state of the process instance, the structured candidate results, the configuration snapshot, and the authorization information, and generates an action command when state migration is allowed; The artificial intelligence model does not directly change the state of the process instance, nor does it directly call external connectors. (6) Record the state transition intent, step ledger record and reliable outgoing mail message, and the connector executes the action command based on the reliable outgoing mail message; (7) Receive the result event returned by the connector and advance the process instance based on the result event.

[0022] In some optional embodiments, when the result event indicates that the execution result cannot be determined, the result is checked with an external system, and the action command is not directly repeated before the result is confirmed.

[0023] In some optional embodiments, step (1) further includes: deduplicating the unified event, specifically including: When the business data carries a source message identifier, the event fingerprint is calculated based on the tenant's tenant identifier, the channel's account identifier, the session identifier of the receiving business data, the source message identifier, and the attachment hash. When the business data does not carry a source message identifier, a substitute fingerprint is calculated based on the hash of the text, sender, time window, and attachments of the business data, and the automatic execution level of the unified event using the substitute fingerprint is reduced. The event fingerprint and the alternative fingerprint are used to describe the unified event; Events with the same unified event fingerprint or the same alternative fingerprint are marked as duplicate events, and no new process instance is created for the duplicate events.

[0024] In some optional embodiments, generating business object candidates and business evidence packages based on the unified event and its corresponding original data includes: The candidate business objects are generated based on at least one of the following association information: group role binding, explicit business number, cargo owner alias, file name rules, file content hash, and historical collaboration context; and the matching criteria for the candidate business objects are saved. The results of the business object candidate determination include unique matching, conflicting matching, and insufficient evidence. When the determination result is a unique match, the deterministic transition gate is allowed to perform a state transition judgment; when the determination result is a conflicting match or insufficient evidence, the action command is not generated and the process is transferred to manual processing.

[0025] In some optional embodiments, compiling the industry process template and tenant-specific configurations into a versioned executable state diagram includes: Within the predetermined slots of the industry process template, the tenant-differential configuration covers group binding, field mapping, routing rules, data rules, message templates, SLA parameters, and connector parameters. The compilation results are subjected to type validation, required field validation, reference integrity validation, permission conflict validation, no exit state validation, illegal loop validation, and timeout and retry limit validation. After the validation passes, an immutable executable state diagram with version number and configuration hash is generated. When the process instance is started, the workflow definition version, authorization snapshot, and connector contract version are fixed. During operation, the fixed immutable executable state diagram and configuration snapshot are referenced. After the configuration is published, it is only used for new process instances. The execution rules of the running process instance are not changed due to the configuration publication.

[0026] In some optional embodiments, the workflow execution method further includes: performing schema validation on the structured candidate results, and then solidifying them into a candidate result snapshot after carrying the model or rule version, schema version, and result hash; The deterministic migration gate is further determined based on the state snapshot of the process instance, the candidate result snapshot, the configuration snapshot, and the authorization snapshot. The determination results of the deterministic migration gate include allowing migration, rejecting migration, and manual review; When the determination result indicates that migration is allowed, the action command is output; When the determination result is rejection, record the reason for rejection and do not output the action command; When the judgment result is manual review, the freeze will be automatically executed and a manual processing task will be created.

[0027] In some optional embodiments, step (6) further includes the step of: using action-level idempotent keys to prevent the same action from being performed repeatedly; The action-level idempotent key is calculated and generated based on the tenant identifier, process instance identifier, logical step identifier, business object identifier, action type, and load version. The connector categorizes the returned execution results into four types: success, failure, partial success, and uncertain, and generates corresponding result events. When the execution result is uncertain, a verification query is initiated using the returned request identifier, the action-level idempotent key, or the business unique key; If execution is confirmed, the confirmed execution result is reused; if execution is not confirmed, the original action-level idempotent key is used to re-execute; if it cannot be confirmed, the result remains in an uncertain state and is transferred to manual processing.

[0028] In some optional embodiments, the workflow execution method further includes: When it is necessary to send the business data to the target collaboration group, a collaboration context is created. The collaboration context records at least the source business object, source group identifier, target group identifier, target group role, allowed feedback type, associated token, token version, effective time window, and security view rules. Before sending data to the target collaboration group, the fields, files and status are projected with a security view according to the security view rules, and the associated token is carried in the outgoing message; After receiving feedback from the target group, the matching relationship between the feedback and the collaboration context is verified based on the group role of the feedback party, the associated token, the effective time window, the feedback file type, and the uniqueness of the business object. If the verification is successful, the feedback is written into the business evidence package of the source business object. Before sending the feedback results back to the source group, perform the security view projection again and verify the target group, tenant, and customer affiliation.

[0029] The apparatus for implementing a workflow execution method for business operations according to the present invention, wherein the apparatus includes: A processor is configured to execute computer-executable instructions; The memory stores one or more computer-executable instructions, which, when executed by the processor, implement the various steps of the workflow execution method for implementing the business described above.

[0030] The present invention discloses a processor for implementing a business workflow, wherein the processor is configured to execute computer-executable instructions, and when the computer-executable instructions are executed by the processor, the various steps of the above-described business workflow execution method are implemented.

[0031] The computer-readable storage medium of the present invention stores a computer program thereon, which can be executed by a processor to implement the various steps of the workflow execution method for implementing the above-described business processes.

[0032] Compared with other methods, this invention achieves the following beneficial effects through the organic combination of multi-channel event normalization and evidence association, version-fixed executable state graph, two-layer control separating artificial intelligence model and deterministic migration gate, action-level idempotency and result event verification, collaborative context and security view projection, and checkpoint repair and end-to-end auditing: (i) Significantly Improved Execution Determinism. This invention strictly limits the artificial intelligence model to a structured candidate generator. The output of the artificial intelligence model serves only as suggested candidate results and must not directly change the business state or call external interfaces. When the process instance starts, the executable state diagram version, business candidate snapshot, authorization snapshot, and connector contract snapshot are fixed. The deterministic transition gate performs three-value judgments based on the above fixed snapshots. Since all inputs to the transition gate are immutable snapshots, completely repeatable judgment results can be obtained under the same input conditions, fundamentally avoiding abnormal state jumps and unpredictable actions caused by model illusion, model version changes, or context drift.

[0033] (II) Duplicate order creation, duplicate uploads, and duplicate notifications are effectively eliminated. At the input level, this invention achieves tenant-level deduplication through event fingerprinting; duplicate events only add a receiving record without creating a duplicate process instance. At the external action level, state transition intentions, step ledgers, and action commands are written within the same atomic boundary. Action commands carry an action-level idempotent key determined by the tenant identifier, process instance identifier, logical step identifier, business object identifier, action type, and payload version, forming a double layer of protection with the event-level fingerprint. Even in the event of message replay, network retries, or service restarts, the connector first queries the step ledger or the target system's acknowledgment before deciding whether to execute or reuse existing results, ensuring that external side effects take effect only once.

[0034] (III) Significantly Enhanced Fault Recovery Capabilities. This invention models the execution results of external interfaces into four categories of outcome events: success, failure, partial success, and uncertain results. The state machine only consumes outcome events to advance the process, without relying on the instantaneous return of synchronous calls. When an interface timeout leads to an uncertain result, the process enters a verification state. The external system status is confirmed through the external request identifier, action idempotent key, business unique key, or query interface. Resending is only allowed if it is confirmed that the system does not exist. If it cannot be confirmed, it remains uncertain or is transferred to manual intervention, avoiding business data chaos caused by blind retries. The manual task, as a controlled state in the state diagram, saves checkpoint information and receives repair events verified by the migration gate. During recovery, it reuses the execution results already confirmed in the step ledger and does not repeat completed actions, enabling long-running customs processes to have enterprise-level recovery capabilities.

[0035] (iv) The process configuration has the ability to be quickly replicated across tenants while maintaining version consistency. This invention abstracts industry-standard processes into reusable templates. Tenants only need to configure group binding, field mapping, routing rules, file rules, message templates, SLAs, and connector parameters within predefined slots; configure compiler execution types, required fields, referential integrity, permissions, loops, timeouts, and connector contracts for multi-dimensional verification. After verification, an immutable state diagram and configuration hash are generated. During the execution of the process instance, it always references the version snapshot fixed at startup. New configurations only affect new instances, and migration of old instances requires explicit rule verification. This allows the same process skeleton to be quickly replicated between different customs brokers, freight forwarders, and suppliers, while avoiding the problem of inconsistent rules before and after the same instance due to configuration changes during operation.

[0036] (v) Accurate and traceable cross-collaboration group feedback. This invention binds the source business object, source evidence package, source group, target group, association token, effective time window, and security view rules through the collaborative context. Outgoing materials carry the association token. When the supplier group returns documents or opinions, the system verifies the combination of group role, token, time window, and document type. If a unique match is found, the system writes back the source business evidence package. If there is any ambiguity, the system automatically transfers the case to the work unit. This ensures that every document and opinion exchanged across groups can be accurately placed, reducing the risk of incorrect, missing, and mixed orders.

[0037] (vi) Data leakage risk is effectively controlled. This invention limits the scope of customers and suppliers that can be accessed by a session at the group binding level. Each association, query and transmission carries an authorization context. Before sending back the customer, a secure view projection is performed on the order fields, files, status and supplier internal notes according to the target group role, tenant and customer affiliation. Only the outgoing fields and files are allowed to enter the returned content, which effectively avoids cross-information leakage in the scenario of multiple customers in the same counter and the mis-sending of supplier internal notes.

[0038] (vii) Complete end-to-end audit chain. This invention uses an append-only event logging method to save the complete trajectory of each instance from the original event, event fingerprint, business candidate basis, configuration version, candidate result snapshot, authorization snapshot, migration gate judgment basis, action command and idempotent key, result event, cross-group collaboration record to manual repair event. Each key result can be traced back to its trigger source, the rule or model version it is based on, the interface called and its receipt, the operator and the reason for the change, providing a solid technical foundation for business review, responsibility definition and compliance audit.

[0039] For the specific implementation scheme of this embodiment, please refer to the relevant descriptions in the above embodiments, which will not be repeated here.

[0040] It is understood that the same or similar parts in the above embodiments can be referred to each other, and the contents not described in detail in some embodiments can be referred to the same or similar contents in other embodiments.

[0041] It should be noted that in the description of this invention, the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance. Furthermore, in the description of this invention, unless otherwise stated, "a plurality of" means at least two.

[0042] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing a particular logical function or process, and the scope of the preferred embodiments of the invention includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as will be understood by those skilled in the art to which embodiments of the invention pertain.

[0043] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution device. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0044] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The corresponding program can be stored in a computer-readable storage medium. When the program is executed, it includes one or a combination of the steps of the method embodiments.

[0045] Furthermore, the functional units in the various embodiments of the present invention can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.

[0046] The storage media mentioned above can be read-only memory, disk, or optical disk, etc.

[0047] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0048] In this specification, the invention has been described with reference to specific embodiments thereof. However, it will be apparent that various modifications and variations can be made without departing from the spirit and scope of the invention. Therefore, the specification and drawings should be considered illustrative rather than restrictive.

Claims

1. A workflow execution method for a business, characterized in that, The workflow execution method includes the following steps: (1) Receive business data from at least one channel and generate a unified event; (2) Generate business object candidates and business evidence packages based on the unified event and its corresponding original data, wherein the business evidence package includes the association basis of the business object candidates and the original data reference; (3) Compile the industry process template and tenant difference configuration into an executable state diagram with version, and fix the configuration snapshot corresponding to the executable state diagram when the process instance in the executable state diagram starts; (4) Using an artificial intelligence model to generate structured candidate results based on the business evidence package, the structured candidate results include candidate fields, evidence references and confidence levels; (5) The deterministic migration gate determines whether state migration is allowed based on the current state of the process instance, the structured candidate results, the configuration snapshot, and the authorization information, and generates an action command when state migration is allowed; The artificial intelligence model does not directly change the state of the process instance, nor does it directly call external connectors. (6) Record the state transition intent, step ledger record and reliable outgoing mail message, and the connector executes the action command based on the reliable outgoing mail message; (7) Receive the result event returned by the connector and advance the process instance based on the result event.

2. The workflow execution method according to claim 1, characterized in that, When the result event indicates that the execution result cannot be determined, the result is checked with an external system, and the action command is not directly repeated before the result is confirmed.

3. The workflow execution method according to claim 1, characterized in that, Step (1) further includes: deduplicating the unified event, specifically including: When the business data carries a source message identifier, the event fingerprint is calculated based on the tenant's tenant identifier, the channel's account identifier, the session identifier of the receiving business data, the source message identifier, and the attachment hash. When the business data does not carry a source message identifier, a substitute fingerprint is calculated based on the hash of the text, sender, time window, and attachments of the business data, and the automatic execution level of the unified event using the substitute fingerprint is reduced. The event fingerprint and the alternative fingerprint are used to describe the unified event; Events with the same unified event fingerprint or the same alternative fingerprint are marked as duplicate events, and no new process instance is created for the duplicate events.

4. The workflow execution method according to claim 1, characterized in that, Based on the unified event and its corresponding original data, a business object candidate and a business evidence package are generated, including: The candidate business objects are generated based on at least one of the following association information: group role binding, explicit business number, cargo owner alias, file name rules, file content hash, and historical collaboration context; and the matching criteria for the candidate business objects are saved. The results of the business object candidate determination include unique matching, conflicting matching, and insufficient evidence. When the determination result is a unique match, the deterministic transition gate is allowed to perform a state transition judgment; when the determination result is a conflicting match or insufficient evidence, the action command is not generated and the process is transferred to manual processing.

5. The workflow execution method according to claim 1, characterized in that, The process of compiling industry process templates and tenant-specific configurations into a versioned executable state diagram includes: Within the predetermined slots of the industry process template, the tenant-differential configuration covers group binding, field mapping, routing rules, data rules, message templates, SLA parameters, and connector parameters. The compilation results are subjected to type validation, required field validation, reference integrity validation, permission conflict validation, no exit state validation, illegal loop validation, and timeout and retry limit validation. After the validation passes, an immutable executable state diagram with version number and configuration hash is generated. When the process instance is started, the workflow definition version, authorization snapshot, and connector contract version are fixed. During operation, the fixed immutable executable state diagram and configuration snapshot are referenced. After the configuration is published, it is only used for new process instances. The execution rules of the running process instance are not changed due to the configuration publication.

6. The workflow execution method according to claim 1, characterized in that, The workflow execution method further includes: performing schema verification on the structured candidate results, and then solidifying them into a candidate result snapshot after carrying the model or rule version, schema version and result hash; The deterministic migration gate is further determined based on the state snapshot of the process instance, the candidate result snapshot, the configuration snapshot, and the authorization snapshot. The determination results of the deterministic migration gate include allowing migration, rejecting migration, and manual review; When the determination result indicates that migration is allowed, the action command is output; When the determination result is rejection, record the reason for rejection and do not output the action command; When the judgment result is manual review, the freeze will be automatically executed and a manual processing task will be created.

7. The workflow execution method according to claim 1, characterized in that, Step (6) further includes the step of: using action-level idempotent keys to prevent the same action from being executed repeatedly; The action-level idempotent key is calculated and generated based on the tenant identifier, process instance identifier, logical step identifier, business object identifier, action type, and load version. The connector categorizes the returned execution results into four types: success, failure, partial success, and uncertain, and generates corresponding result events. When the execution result is uncertain, a verification query is initiated using the returned request identifier, the action-level idempotent key, or the business unique key; If execution is confirmed, the confirmed execution result is reused; if execution is not confirmed, the original action-level idempotent key is used to re-execute; if it cannot be confirmed, the result remains in an uncertain state and is transferred to manual processing.

8. The workflow execution method according to claim 1, characterized in that, The workflow execution method further includes: When it is necessary to send the business data to the target collaboration group, a collaboration context is created. The collaboration context records at least the source business object, source group identifier, target group identifier, target group role, allowed feedback type, associated token, token version, effective time window, and security view rules. Before sending data to the target collaboration group, the fields, files and status are projected with a security view according to the security view rules, and the associated token is carried in the outgoing message; After receiving feedback from the target group, the matching relationship between the feedback and the collaboration context is verified based on the group role of the feedback party, the associated token, the effective time window, the feedback file type, and the uniqueness of the business object. If the verification is successful, the feedback is written into the business evidence package of the source business object. Before sending the feedback results back to the source group, perform the security view projection again and verify the target group, tenant, and customer affiliation.

9. An apparatus for executing a business workflow, characterized in that, The device includes: A processor is configured to execute computer-executable instructions; The memory stores one or more computer-executable instructions, which, when executed by the processor, implement the various steps of the workflow execution method for the business described in any one of claims 1 to 8.

10. A processor for implementing workflow execution in business operations, characterized in that, The processor is configured to execute computer-executable instructions, which, when executed by the processor, implement the various steps of the workflow execution method for the service described in any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that, It stores a computer program that can be executed by a processor to implement the various steps of the workflow execution method for the business as described in any one of claims 1 to 8.