CN113792534A - Method and device for processing flow - Google Patents

Method and device for processing flow Download PDF

Info

Publication number
CN113792534A
CN113792534A CN202110229754.4A CN202110229754A CN113792534A CN 113792534 A CN113792534 A CN 113792534A CN 202110229754 A CN202110229754 A CN 202110229754A CN 113792534 A CN113792534 A CN 113792534A
Authority
CN
China
Prior art keywords
flow
node
data
circulation path
template
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110229754.4A
Other languages
Chinese (zh)
Inventor
刘志杰
姚尧
宋梅贞
李娟�
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jingdong Technology Holding Co Ltd
Original Assignee
Jingdong Technology Holding Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jingdong Technology Holding Co Ltd filed Critical Jingdong Technology Holding Co Ltd
Priority to CN202110229754.4A priority Critical patent/CN113792534A/en
Publication of CN113792534A publication Critical patent/CN113792534A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/177Editing, e.g. inserting or deleting of tables; using ruled lines
    • G06F40/18Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0633Workflow analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • General Engineering & Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Health & Medical Sciences (AREA)
  • Quality & Reliability (AREA)
  • Educational Administration (AREA)
  • General Business, Economics & Management (AREA)
  • Development Economics (AREA)
  • Tourism & Hospitality (AREA)
  • Game Theory and Decision Science (AREA)
  • Operations Research (AREA)
  • Marketing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the disclosure discloses a method and a device for processing a flow. One embodiment of the method comprises: the method comprises the steps that a flow template is obtained from a preset data table in response to the fact that a flow creation request based on the flow template is received, wherein the flow template comprises preset flow nodes, circulation paths and forms, and the data table is used for storing different flow templates; displaying the form and collecting data input by a user in the form; creating a flow according to the flow nodes, the circulation path and the collected data; and executing the flow. The implementation mode is helpful for improving the convenience of the flow processing process.

Description

Method and device for processing flow
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to a method and a device for processing a flow.
Background
Workflow generally refers to the automation of a part or the whole of a business process in a computer application environment, and is mainly used for automatically performing the process of transferring documents, information or tasks among a plurality of participants according to some predefined rules, so as to achieve a certain expected business goal or promote the achievement of the goal.
The workflow management system is generally used for defining and managing workloads, executing workflow instances according to workflow rules predefined in the system, and providing a software support environment for the operation of business systems of enterprises. For example, activti is a foreign-style open-source workflow engine, solving many problems in the BPM field. With the development of business, many workflow systems currently provide process services to be further improved.
Disclosure of Invention
The embodiment of the disclosure provides a method and a device for processing a flow.
In a first aspect, an embodiment of the present disclosure provides a method for processing a flow, the method including: the method comprises the steps that a flow template is obtained from a preset data table in response to the fact that a flow creation request based on the flow template is received, wherein the flow template comprises preset flow nodes, circulation paths and forms, and the data table is used for storing different flow templates; displaying the form and collecting data input by a user in the form; creating a flow according to the flow nodes, the circulation path and the collected data; and executing the flow.
In a second aspect, an embodiment of the present disclosure provides an apparatus for processing a flow, the apparatus including: the flow creation device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is configured to respond to the receipt of a flow creation request based on a flow template, the flow template is acquired from a preset data table, the flow template comprises preset flow nodes, a circulation path and a form, and the data table is used for storing different flow templates; the collection unit is configured to display the form and collect data input in the form by a user; a creation unit configured to create a flow according to the flow node, the circulation path, and the collected data; an execution unit configured to execute the flow.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including: one or more processors; storage means for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method as described in any implementation of the first aspect.
In a fourth aspect, embodiments of the present disclosure provide a computer-readable medium on which a computer program is stored, which computer program, when executed by a processor, implements the method as described in any of the implementations of the first aspect.
According to the method and the device for processing the flow, the preset data table is used for storing different flow templates, so that processes such as new data table creation and the like are avoided when the flow template is created, and further, when the flow is created, related data of the flow template can be directly obtained from the preset data table to complete flow creation and execution, and the method and the device are beneficial to improving the operation convenience of the whole process.
Drawings
Other features, objects and advantages of the disclosure will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which one embodiment of the present disclosure may be applied;
FIG. 2 is a flow diagram for one embodiment of a method for processing a flow according to the present disclosure;
FIG. 3 is a flow diagram of yet another embodiment of a method for processing a flow according to the present disclosure;
FIG. 4 is a flow diagram of yet another embodiment of a method for processing a flow according to the present disclosure;
FIG. 5 is a flow diagram of yet another embodiment of a method for processing a flow according to the present disclosure;
FIG. 6 is a schematic block diagram illustration of one embodiment of an apparatus for processing flow in accordance with the present disclosure;
FIG. 7 is a schematic structural diagram of an electronic device suitable for use in implementing embodiments of the present disclosure.
Detailed Description
The present disclosure is described in further detail below with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only relevant portions are shown in the drawings.
It should be noted that, in the present disclosure, the embodiments and features of the embodiments may be combined with each other without conflict. The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 illustrates an exemplary architecture 100 to which embodiments of the disclosed method for process flow or apparatus for process flow may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The terminal devices 101, 102, 103 interact with a server 105 via a network 104 to receive or send messages or the like. Various client applications may be installed on the terminal devices 101, 102, 103. Such as browser-type applications, search-type applications, instant messaging tools, process-handling or process-management-type applications, and so forth.
The terminal apparatuses 101, 102, and 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices including, but not limited to, smart phones, tablet computers, e-book readers, laptop portable computers, desktop computers, and the like. When the terminal apparatuses 101, 102, 103 are software, they can be installed in the electronic apparatuses listed above. It may be implemented as multiple pieces of software or software modules (e.g., multiple pieces of software or software modules to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.
The server 105 may be a server that provides various services, such as a backend server that provides support for client applications installed on the terminal devices 101, 102, 103. The server 105 may receive the flow creation requests sent by the terminal devices 101, 102, and 103, and obtain data, such as flow nodes, circulation paths, and forms, included in the flow template from a preset data table according to the flow template corresponding to the flow creation request, and then may control the terminal devices 101, 102, and 103 to display the forms, collect data by using the forms, and create and execute the flow according to the flow nodes, the circulation paths, and the collected data.
The server 105 may directly receive a flow creation request sent from a user to the server 105 through an application installed in the server 105 itself, or may display a form, create and execute a flow, or the like. At this time, the terminal apparatuses 101, 102, 103 and the network 104 may not exist.
It should be noted that the method for processing a flow provided by the embodiment of the present disclosure is generally executed by the server 105, and accordingly, the apparatus for processing a flow is generally disposed in the server 105.
It should be further noted that, in some cases, the terminal devices 101, 102, and 103 may also directly receive the flow creation request, obtain the corresponding flow template from the preset data table according to the flow creation request, and create and execute the flow based on the flow template. At this point, the exemplary system architecture 100 may not have the server 105 and the network 104.
The server 105 may be hardware or software. When the server 105 is hardware, it may be implemented as a distributed server cluster composed of a plurality of servers, or may be implemented as a single server. When the server 105 is software, it may be implemented as multiple pieces of software or software modules (e.g., multiple pieces of software or software modules used to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of a method for processing a flow is shown in accordance with the present disclosure. The method for processing the flow comprises the following steps:
step 201, in response to receiving a flow creation request based on a flow template, obtaining the flow template from a preset data table.
In this embodiment, the flow creation request may be used to request the creation of a flow. The process flow can be various process flows for realizing different tasks or purposes according to different application scenes or application requirements. For example, the process may be various workflows (e.g., leave processes, project handoff processes, etc.).
The process template may be used to predefine or specify the relevant content of the process. According to different application requirements, various different process templates can be established in advance so as to complete different process creation quickly. For example, a flow template corresponding to the leave request flow may be previously established, and a flow template corresponding to the project handover flow may be previously established.
Generally, a flow template may specify flow nodes, flow paths, and forms of a corresponding flow in advance. A process node may refer to each state that may occur in the entire process of the process. Taking the leave asking process as an example, the process nodes of a simple leave asking process may include a start node, an approval node, and an end node.
The flow path may refer to a path formed by a flow between flow nodes. Taking the above leave asking process as an example, the flow path may include a path from the start node to the approval node, and a path from the approval node to the end node.
The form may be a form of various styles. The attributes in the form can be flexibly set according to the actual application scene. Still taking the leave flow as an example, the attributes of the form may include, but are not limited to: user name, time to leave, reason to leave, etc.
The data tables may be data tables of various structures in a database. The database may be a database communicatively coupled to the execution agent (e.g., server 105 shown in fig. 1). The preset data table may be used to store various pre-established process templates. At this time, when a new flow template is created, the related data of the newly created flow template may be stored in the preset flow table.
Specifically, a data table with a data structure that can be commonly used can be pre-designed by a technician according to requirements, and thus, even if the flow templates corresponding to different data structures correspond, the data table can be uniformly stored, so that subsequent use, management and maintenance are facilitated.
The execution agent may receive a flow creation request sent by a user through a device (e.g., terminal devices 101, 102, 103, etc. shown in fig. 1) used by the user, and then obtain data related to a flow template corresponding to the flow creation request from a data table for storing flow templates in a database in communication connection with the execution agent. When initiating a flow creation request, a user may first select a desired flow template from the flow templates, and then initiate the flow creation request according to the selected flow template.
Step 202, displaying the form included in the flow template, and collecting data input by the user in the form.
In this embodiment, the execution body may control to display a form corresponding to the flow template to the user, and then collect data filled in the form by the user. Generally, various fields or attributes preset may be included in the form to allow the user to fill in corresponding field values or attribute values.
For example, the execution subject may control to present a form on a terminal device used by the user, and the form includes three attributes of a user name, a leave request time, and a leave request reason. Then, the user may fill in the corresponding attribute values in the form by using the terminal device, and then the execution subject may obtain the attribute values corresponding to the user name, the leave request time, and the leave request reason filled in by the user.
And step 203, creating a flow according to the flow nodes, the circulation paths and the acquired data included in the flow template.
In this embodiment, the execution main body may create a new flow according to the flow nodes, the circulation path, and the data collected by using the form included in the flow template.
Step 204, the process is executed.
In this embodiment, the execution agent may control the start of execution of the newly created flow. Specifically, according to the flow path of the flow, the flow is performed from the starting flow node until the flow is terminated when the flow is transferred to the terminated flow node.
In some optional implementations of this embodiment, the flow template may further include attribute information of each flow node. The attribute information may include various attribute information of the process node.
Alternatively, the attribute information may include authority information. The authority information can be used for indicating the execution authority of the flow node for the data in the form. The data in the form may refer to data collected using the form. The execution authority can be flexibly set according to different application scenes. For example, execution rights include, but are not limited to: read-write rights, editing rights, etc.
At this time, in the process of executing the flow, authority information of the flow node starting to be started may be acquired, and in response to detecting a preset operation for data in the form, an execution result is generated according to the authority information.
The preset operation may refer to various operations for the form, and may be specifically set according to actual application requirements. For example, the preset operations include, but are not limited to: read operations, modify operations, and the like.
Specifically, if the authority information indicates that the data in the form has an execution authority for executing the preset operation, the preset operation on the data in the form is accepted and executed, so that an execution result is obtained. If the permission information indicates that the data in the form does not have the execution permission for executing the preset operation, the preset operation on the data in the form can be refused to be executed, and prompt information is generated to prompt that the preset operation cannot be executed on the data in the form currently.
As an example, if the authority information indicates that the flow node has an editing authority for the data in the form, the data in the form may be edited in the processing process of the flow node. If the process node indicated by the authority information does not have the editing authority for the data in the form, the data in the form can be refused to be edited in the processing process of the process node. At this time, if an editing request for the data in the form is received in the processing process of the flow node, a prompt message may be displayed to prompt that the data in the form cannot be edited currently.
Therefore, the execution authority of the processing personnel of each process node on the form data can be flexibly controlled, and the data safety and correctness in the process of flow circulation are ensured.
In some alternative implementations of the present embodiment, the form may include a handler field. Wherein the handler field may be used to indicate a handler (e.g., approver, etc.) of the process node. At this point, the processing chevron values that the user fills in for the processing chevron may be collected. Then, in the process of creating the flow, the handler corresponding to each flow node may be set according to the processing field value corresponding to the flow node, so that the corresponding handler may complete the processing of the flow node in the subsequent control.
Therefore, the user can flexibly designate the handler of the process node according to the actual requirement, so that the handler designated by the user in the form is read and handed to the handler to process the corresponding process node in the process execution process, and the flexibility of the process processing process is improved.
In some optional implementations of this embodiment, the flow template may further include an associated event for each field in the form. Wherein the correlation event can be used to assist the form in collecting data. The associated events may be preset by a technician according to application requirements. At this point, when the form is exposed, the associated events of the fields in the form may be invoked to collect data.
For example, the association event may include a verification event for verifying the attribute values filled in by the user for the fields in the form. At this time, after the user fills in the attribute value, a verification event written in advance by a technician may be called to verify whether the attribute value filled in by the user meets requirements (such as whether the format is correct or not), so as to avoid situations that the flow cannot be normally circulated due to a filling error of form data.
For another example, the associated event may include a reminder event for prompting a manner of filling in attribute values of fields in the form. At this time, when the user fills in the attribute values, the filling requirement of the reminding event reminding attribute values or the selectable attribute value set of the attribute values, which are written in advance by the technical staff, can be called to assist the user in correctly filling in the form.
Therefore, the method can flexibly set the associated event in each field in the form in the flow template according to the actual application scene or application requirement so as to assist the user to correctly and quickly fill in the form, thereby accelerating the process of flow creation and execution.
In some optional implementations of this embodiment, a flow processing instruction sent by the target system may also be received, and then the flow processing instruction is executed.
The target system may be a system for performing various tasks or purposes according to different application scenarios. For example, the target system may be a settlement system, a security service system, an item management system, and so forth.
The flow processing instructions may be used to instruct the flow to perform various processes including, but not limited to: creating a new flow, pausing execution of the flow, resuming execution of the flow, ending execution of the flow, creating and executing an associated flow, and so forth.
Specifically, a technician may write a docking interface between the target system and the process in advance, and at this time, the transmission and execution of the process instruction may be implemented by using the pre-written docking interface.
As an example, the security service system may send a pause instruction to pause execution of the associated flow upon detecting that a security issue exists. After the security issue is resolved, a resume instruction may be sent to resume execution of the associated flow.
As yet another example, a user of the project management system may directly invoke the interface to send a flow processing instruction for instructing the creation of a new project, and may in turn create and execute a new flow in accordance with the flow processing instruction.
Therefore, the association and the cooperation of the target system and the process processing process are facilitated, the user is further facilitated to process the relevant matters of the process, and the process processing efficiency is improved.
In some optional implementation manners of this embodiment, when building the flow template, the user may build the flow template through a drag-and-drop development manner. For example, the user may set the flow nodes and the flow paths between the flow nodes by dragging. Further, the user can set attribute information of each flow node and creation conditions of each flow path, and the like.
In the prior art, when each flow template is created, a new data table needs to be established in a database to store relevant data of the flow template, and different flow templates may correspond to different data table structures, which results in complex data table types and is difficult to manage and maintain uniformly.
In the method provided by the embodiment of the disclosure, various process templates are stored by using the data table in a manner of designing the data table with a general data structure and the like, and a process that a corresponding data table needs to be newly built for each process template is avoided, so that the number of the data tables needing to be managed and maintained is greatly reduced, and the management and maintenance difficulty of the data tables is also reduced.
With further reference to FIG. 3, a flow 300 of yet another embodiment of a method for processing a flow is illustrated. The process 300 of the method for processing a process flow includes the steps of:
step 301, in response to receiving a flow creation request based on a flow template, obtaining the flow template from a preset data table.
Step 302, displaying the form, and collecting data by using the form.
Step 303, selecting a circulation path from the circulation paths included in the flow template as an effective circulation path according to the creation condition of the circulation path.
In this embodiment, the flow template may further include a creation condition of the circulation path. Specifically, the creation conditions corresponding to each of the flow paths between the flow nodes may be included. Different circulation paths formed between different flow nodes can have the same creation condition or different creation conditions.
The creating condition of the circulation path may be used to indicate a condition that needs to be satisfied when the circulation path is created. For example, the creation condition may include level information indicating a job level to which the user belongs. At this time, a circulation path corresponding to the job level may be selected from the flow template as an effective circulation path according to the job level of the user who initiated the flow creation request.
And 304, creating a flow according to the effective circulation path, the flow nodes corresponding to the effective circulation path and the acquired data.
In this embodiment, the flow node corresponding to the flow path may refer to a flow node included in the flow path. And according to the creation condition of the circulation path, flexibly selecting an effective circulation path to create a flow capable of being effectively executed.
In step 305, the process is executed.
In some optional implementations of the present embodiment, the creation condition of the circulation path may include age information of the circulation path. The time efficiency information may be used to indicate the effective time and the ineffective time of the circulation path.
At this time, the current time may be obtained first, then the effective circulation path at the current time is selected as the effective circulation path, and then the flow is created and executed according to the effective circulation path.
As an example, the flow template includes a first flow path and the first flow path has valid times monday through friday and invalid times saturday and sunday. At this time, if the user requests to create the flow on monday through friday, the first flow path is an effective flow path, and the created flow may include the first flow path. Correspondingly, if the user requests to create the flow on saturday or sunday, the first flow path is an invalid flow path, and the created flow may not include the first flow path.
The content that is not described in detail in this embodiment may refer to the related description in the embodiment corresponding to fig. 2, and is not described herein again.
According to the method provided by the embodiment of the disclosure, the creation condition is set for each flow path in the flow template in advance, so that when a flow creation request based on the flow template is received, the current effective flow path can be selected in real time according to the creation condition to create and execute the flow, processes of manually eliminating invalid flow paths and the like after the flow is created are avoided, and the effectiveness and the execution efficiency of the flow creation are improved.
With further reference to FIG. 4, a flow 400 of yet another embodiment of a method for processing a flow is illustrated. The process 400 of the method for processing a process flow includes the steps of:
step 401, in response to receiving a flow creation request based on a flow template, obtaining the flow template from a preset data table.
Step 402, displaying the form, and collecting data by using the form.
And step 403, creating a flow according to the flow nodes, the circulation paths and the data included in the flow template.
Step 404, executing the process, and in response to determining that the process node starting to start has the associated process, acquiring and displaying information for displaying the associated process corresponding to the process node starting to start.
In this embodiment, the flow template may further include association information of each flow node. Wherein the association information may be used to indicate whether the process node has an associated process. Specifically, the association information of each process node may be set according to the actual application requirement, and the process associated with the process node may be set.
For example, in the process of item pickup, an associated process for indicating replenishment of a new item may be set at a process node of the item pickup.
When each process node starts to be started, whether the process node has an associated process can be determined according to the associated information of the process node. If the flow node does not have the associated flow, the flow path related to the flow node can be normally executed. If the process node has an associated process, information for displaying the associated process corresponding to the process node can be acquired.
The information for presentation may be various information of the associated flow. For example, the information for presentation may be identification information, profile information, or the like of the associated flow.
Specifically, information for showing an associated flow corresponding to the flow node may be stored in advance in a database connected to the execution agent. In this case, the execution agent may acquire information for displaying an associated flow corresponding to the current flow node from the database.
Step 405, in response to receiving an execution instruction corresponding to the displayed associated flow, creating and executing the associated flow indicated by the execution instruction.
In this embodiment, the user may determine whether to execute each associated flow corresponding to the current flow node according to the information for presentation. Specifically, the user may send the execution instruction for the associated flow by clicking display information of the associated flow, and at this time, the execution subject may create and execute the associated flow.
It should be noted that, the preset data table may further store a flow template corresponding to each associated flow. At this time, the execution subject may obtain a flow template corresponding to the associated flow indicated by the execution instruction from the data table, and then create and execute the corresponding associated flow according to the obtained flow template.
Optionally, when the associated process corresponding to the current process node is created and executed, the execution of the circulation path related to the current process node may be suspended until the execution of the associated process is finished, and then the execution of the circulation path related to the current process node is resumed.
Optionally, for a flow node, the execution result of the associated flow of the flow node may assist the execution of the relevant flow path of the flow node.
Therefore, for a relatively complex flow, when a corresponding flow template is created, the flow can be split into flow nodes, corresponding flow paths and associated flows of the flow nodes, so that the overall flow logic is simpler and easier to expand.
The content that is not described in detail in this embodiment may refer to the related description in the embodiment corresponding to fig. 2, and is not described herein again.
According to the method provided by the embodiment of the disclosure, the associated processes are set for the process nodes in the process template in advance, so that a user can select to create and execute different associated processes according to different application requirements or application scenes in the process of process circulation, different requirements of different users for the same process can be met, and efficient execution of complex processes is facilitated.
With further reference to FIG. 5, a flow 500 of yet another embodiment of a method for processing a flow is illustrated. The process 500 of the method for processing a process flow includes the steps of:
step 501, in response to receiving a flow creation request based on a flow template, obtaining the flow template from a preset data table.
Step 502, displaying the form, and collecting data by using the form.
Step 503, creating a flow according to the flow nodes, the circulation path and the data included in the flow template.
And step 504, executing the flow, and creating and executing the tagging flow in response to the fact that the starting flow node is determined to be provided with the tagging and in response to the fact that the tagging instruction aiming at the starting flow node is received.
In this embodiment, the process template may further include tagging information of each process node. The tagging information may be used to indicate whether the process node sets tagging. Tagging may refer to the temporary addition of a new approver or verifier. Specifically, whether each process node needs to be signed or not can be set according to actual application requirements.
Specifically, when each process node starts to be started, whether the process node is provided with a label or not may be determined according to the label information of the process node. If the flow node is not signed, the flow path related to the flow node can be executed normally. If the process node is provided with the tag, the information for displaying which is corresponding to the process node and used for indicating the tag can be obtained.
The information for showing the tag may be various kinds of information for indicating the tag. For example, there may be an icon, a button, or the like for indicating the addition of a label. In this case, the information for presentation for instructing the application of the label may be stored in advance in a database connected to the execution main body. The execution body may obtain and display information for indicating tagging corresponding to the current process node from the database. The display information corresponding to different process nodes and used for indicating the tagging may be the same or different.
And then, the user can determine whether to add the label according to the current actual demand. If the signature is required, the signature instruction for the current process node can be sent by clicking display information for indicating signature, and the like, and at this time, the execution main body can create and execute the corresponding signature process.
Optionally, the user may set a handler (e.g., an approver or a verifier) corresponding to the signing process when sending the signing instruction. For example, the user may select a person from a preset list of persons as the handler of the tagging process.
It should be noted that, the preset data table may further store a flow template of the tagging flow corresponding to each flow node. At this time, the execution main body may obtain the flow template corresponding to the tagging instruction from the data table, and then create and execute the corresponding tagging flow according to the obtained flow template.
The content that is not described in detail in this embodiment may refer to the related description in the embodiment corresponding to fig. 2, and is not described herein again.
According to the method provided by the embodiment of the disclosure, whether the process node needs to be signed is preset in the process template, so that the required signed process can be flexibly selected to be created and executed according to different application requirements or application scenes in the process of flow circulation, the process processing process has higher flexibility, new process nodes and circulation paths do not need to be manually and temporarily added, and the convenience of user process processing is facilitated to be improved.
With further reference to fig. 6, as an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of an apparatus for processing a flow, which corresponds to the method embodiment shown in fig. 2, and which may be applied in various electronic devices in particular.
As shown in fig. 6, the apparatus 600 for processing a flow provided in this embodiment includes an obtaining unit 601, an acquiring unit 602, a creating unit 603, and an executing unit 604. The obtaining unit 601 is configured to, in response to receiving a flow creation request based on a flow template, obtain the flow template from a preset data table, where the flow template includes preset flow nodes, a circulation path, and a form, and the data table is used for storing different flow templates; the collecting unit 602 is configured to display the form and collect data input by the user in the form; the creating unit 603 is configured to create a flow from the flow node, the circulation path, and the collected data; the execution unit 604 is configured to execute a flow.
In the present embodiment, in the apparatus 600 for processing a flow: the specific processing of the obtaining unit 601, the acquiring unit 602, the creating unit 603, and the executing unit 604 and the technical effects thereof can refer to the related descriptions of step 201, step 202, step 203, and step 204 in the corresponding embodiment of fig. 2, which are not described herein again.
In some optional implementation manners of this embodiment, the flow template further includes a creation condition of the circulation path; and the above creation unit 603 is further configured to: selecting a circulation path from the circulation paths as an effective circulation path according to the creating condition; and creating a flow according to the effective circulation path, the flow nodes and the data corresponding to the effective circulation path.
In some optional implementations of this embodiment, the creation condition includes age information; and the above creation unit 603 is further configured to: acquiring current time; and selecting the effective circulation path at the current time as the effective circulation path according to the corresponding aging information.
In some optional implementation manners of this embodiment, the process template further includes attribute information of the process node, where the attribute information includes association information used to indicate whether the process node has an associated process; and the execution unit 604 is further configured to: in response to the fact that the starting process node has the associated process, obtaining and displaying display information of the associated process corresponding to the starting process node; and in response to receiving an execution instruction corresponding to the displayed associated flow, creating and executing the associated flow indicated by the execution instruction.
In some optional implementations of this embodiment, the attribute information includes tagging information indicating whether tagging is set for the flow node; and the execution unit 604 is further configured to: and creating and executing a tagging flow in response to determining that the starting flow node is provided with a tagging and in response to receiving a tagging instruction for the starting flow node.
In some optional implementation manners of this embodiment, the attribute information further includes authority information, and the authority information is used to indicate an execution authority of the flow node for the data in the form; the execution unit 604 is further configured to: acquiring authority information of a process node starting to be started; and in response to detecting the preset operation aiming at the data in the form and in response to the permission information indicating that the data in the form does not have the permission to execute the preset operation, generating prompt information for prompting that the preset operation cannot be executed on the data in the form.
In some optional implementations of this embodiment, the form includes a handler field to indicate a handler of the flow node; and the above creation unit 603 is further configured to: and setting a handler of the flow node according to the processing A-shaped field value collected from the form.
In some optional implementations of this embodiment, the flow template further includes an associated event of a field in the form, where the associated event is used to assist in acquiring data; and the above-mentioned data acquisition using the form, including: the correlation event is invoked to collect data.
In the apparatus provided by the above embodiment of the present disclosure, in response to receiving a flow creation request based on a flow template, an obtaining unit obtains the flow template from a preset data table, where the flow template includes preset flow nodes, a flow path and a form, and the data table is used to store different flow templates; the acquisition unit displays the form and acquires data by using the form; the creating unit creates a flow according to the flow node, the circulation path and the data; the execution unit executes the flow. Therefore, the processes of creating a new data table and the like when the flow template is created are avoided, and further, when the flow is created, the related data of the flow template can be directly acquired from the preset data table to complete the creation and execution of the flow, and the operation convenience of the whole process is improved.
Referring now to FIG. 7, a block diagram of an electronic device (e.g., the server of FIG. 1) 700 suitable for use in implementing embodiments of the present disclosure is shown. The server shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 7, electronic device 700 may include a processing means (e.g., central processing unit, graphics processor, etc.) 701 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)702 or a program loaded from storage 708 into a Random Access Memory (RAM) 703. In the RAM703, various programs and data necessary for the operation of the electronic apparatus 700 are also stored. The processing device 701, the ROM 702, and the RAM703 are connected to each other by a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Generally, the following devices may be connected to the I/O interface 705: input devices 706 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 707 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 708 including, for example, magnetic tape, hard disk, etc.; and a communication device 709. The communication means 709 may allow the electronic device 700 to communicate wirelessly or by wire with other devices to exchange data. While fig. 7 illustrates an electronic device 700 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 7 may represent one device or may represent multiple devices as desired.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via the communication means 709, or may be installed from the storage means 708, or may be installed from the ROM 702. The computer program, when executed by the processing device 701, performs the above-described functions defined in the methods of embodiments of the present disclosure.
It should be noted that the computer readable medium described in the embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In embodiments of the present disclosure, however, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: the method comprises the steps that a flow template is obtained from a preset data table in response to the fact that a flow creation request based on the flow template is received, wherein the flow template comprises preset flow nodes, circulation paths and forms, and the data table is used for storing different flow templates; displaying the form and collecting data input by a user in the form; creating a flow according to the flow nodes, the circulation path and the collected data; and executing the flow.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes an acquisition unit, a creation unit, and an execution unit. Where the names of these units do not constitute a limitation on the units themselves in some cases, for example, the acquiring unit may also be described as "a unit that acquires a flow template from a preset data table in response to receiving a flow creation request based on the flow template".
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is made without departing from the spirit. For example, the above features and (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure are mutually replaced to form the technical solution.

Claims (11)

1. A method for processing a flow, comprising:
the method comprises the steps that a flow creation request based on a flow template is received, the flow template is obtained from a preset data table, wherein the flow template comprises preset flow nodes, a circulation path and a form, and the data table is used for storing different flow templates;
displaying the form and collecting data input by a user in the form;
creating a flow according to the flow node, the circulation path and the collected data;
and executing the flow.
2. The method of claim 1, wherein the flow template further comprises a creation condition of the flow path;
the creating a flow according to the flow node, the flow path and the data includes:
selecting a circulation path from the circulation paths as an effective circulation path according to the creating condition;
and creating a flow according to the effective circulation path, the flow node corresponding to the effective circulation path and the data.
3. The method of claim 2, wherein the creation conditions include age information;
the selecting a circulation path matched with the creating condition as an effective circulation path comprises:
acquiring current time;
and selecting the effective circulation path at the current time as the effective circulation path according to the corresponding aging information.
4. The method of claim 1, wherein the flow template further includes attribute information of the flow node, the attribute information including association information indicating whether the flow node has an associated flow;
the executing the process includes:
in response to the fact that the starting process node has the associated process, obtaining and displaying information for displaying the associated process corresponding to the starting process node;
and in response to receiving an execution instruction corresponding to the displayed associated flow, creating and executing the associated flow indicated by the execution instruction.
5. The method of claim 4, wherein the attribute information includes tagging information indicating whether tagging is set for the flow node;
the executing the process includes:
and creating and executing a tagging flow in response to determining that the starting flow node is provided with a tagging and in response to receiving a tagging instruction for the starting flow node.
6. The method of claim 4, wherein the attribute information further comprises authority information indicating execution authority of the flow node for the data in the form;
the executing the process includes:
acquiring authority information of a process node starting to be started;
in response to detecting a preset operation for the data in the form and in response to the permission information indicating that the data in the form does not have permission to execute the preset operation, generating prompt information for prompting that the preset operation cannot be executed for the data in the form.
7. The method of claim 1, wherein the form includes a handler field to indicate a handler of the flow node;
the creating a flow according to the flow node, the circulation path and the collected data comprises:
and setting the handler of the process node according to the processing A-shaped field value collected from the form.
8. The method of one of claims 1 to 7, wherein the flow template further comprises an associated event for a field in the form, the associated event for assisting in acquiring data;
the collecting data by using the form comprises:
invoking the correlation event to collect data.
9. An apparatus for processing a flow, comprising:
the flow creation device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is configured to respond to the receipt of a flow creation request based on a flow template, and acquire the flow template from a preset data table, the flow template comprises preset flow nodes, a circulation path and a form, and the data table is used for storing different flow templates;
the acquisition unit is configured to display the form and acquire data input in the form by a user;
the creating unit is configured to create a flow according to the flow node, the circulation path and the collected data;
an execution unit configured to execute the flow.
10. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-8.
11. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-8.
CN202110229754.4A 2021-03-02 2021-03-02 Method and device for processing flow Pending CN113792534A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110229754.4A CN113792534A (en) 2021-03-02 2021-03-02 Method and device for processing flow

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110229754.4A CN113792534A (en) 2021-03-02 2021-03-02 Method and device for processing flow

Publications (1)

Publication Number Publication Date
CN113792534A true CN113792534A (en) 2021-12-14

Family

ID=78876837

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110229754.4A Pending CN113792534A (en) 2021-03-02 2021-03-02 Method and device for processing flow

Country Status (1)

Country Link
CN (1) CN113792534A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103838706A (en) * 2012-11-22 2014-06-04 江苏现代造船技术有限公司 Flexible management information system with process and form customization function
WO2016188337A1 (en) * 2015-05-22 2016-12-01 阿里巴巴集团控股有限公司 Service implementation method and apparatus
CN106202025A (en) * 2016-07-21 2016-12-07 深圳艾派网络科技股份有限公司 A kind of OA workflow list method for customizing
CN107038533A (en) * 2017-04-18 2017-08-11 北京思特奇信息技术股份有限公司 A kind of method and system for realizing configurableization workflow examination and approval
CN110428217A (en) * 2019-07-03 2019-11-08 深圳市华宇讯科技有限公司 A kind of ERP system
CN111178815A (en) * 2018-11-12 2020-05-19 北大方正集团有限公司 Method and device for generating process instance template and computer readable storage medium
CN111199381A (en) * 2019-11-25 2020-05-26 江苏艾佳家居用品有限公司 Intelligent work order approval method based on process engine
CN112036736A (en) * 2020-08-28 2020-12-04 杭州指令集智能科技有限公司 Workflow creating method and device
CN112184077A (en) * 2020-10-30 2021-01-05 平安数字信息科技(深圳)有限公司 Configurable process approval method and device, computer equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103838706A (en) * 2012-11-22 2014-06-04 江苏现代造船技术有限公司 Flexible management information system with process and form customization function
WO2016188337A1 (en) * 2015-05-22 2016-12-01 阿里巴巴集团控股有限公司 Service implementation method and apparatus
CN106202025A (en) * 2016-07-21 2016-12-07 深圳艾派网络科技股份有限公司 A kind of OA workflow list method for customizing
CN107038533A (en) * 2017-04-18 2017-08-11 北京思特奇信息技术股份有限公司 A kind of method and system for realizing configurableization workflow examination and approval
CN111178815A (en) * 2018-11-12 2020-05-19 北大方正集团有限公司 Method and device for generating process instance template and computer readable storage medium
CN110428217A (en) * 2019-07-03 2019-11-08 深圳市华宇讯科技有限公司 A kind of ERP system
CN111199381A (en) * 2019-11-25 2020-05-26 江苏艾佳家居用品有限公司 Intelligent work order approval method based on process engine
CN112036736A (en) * 2020-08-28 2020-12-04 杭州指令集智能科技有限公司 Workflow creating method and device
CN112184077A (en) * 2020-10-30 2021-01-05 平安数字信息科技(深圳)有限公司 Configurable process approval method and device, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘聪;李世川;吕雪峰;: "基于Activiti+MongoDB的后勤自由流程信息系统", 计算机系统应用, no. 01, pages 80 - 85 *

Similar Documents

Publication Publication Date Title
US10951542B2 (en) Method for managing operational schedules of cloud-based systems
US8726176B2 (en) Active business client
US11132114B2 (en) Method and apparatus for generating customized visualization component
CN112036824A (en) Business approval method, system, storage medium and electronic equipment
US7734689B2 (en) System and method for managing processing of a plurality of events through an event management
WO2023093486A1 (en) Method and apparatus for generating project flow, electronic device, and storage medium
CN112015654A (en) Method and apparatus for testing
JP2018200687A (en) Attendance management method, computer program, and system using messenger
CN108959102B (en) Method and device for generating test data and testing application to be tested
CN114547521A (en) Authority-based interactive interface publishing method and device and electronic equipment
CN116136758A (en) Page generation method, device, equipment and medium
US20120089939A1 (en) Combined properties dialog from different sources
CN112183982A (en) Workflow creating method and device, computer equipment and storage medium
CN111598544A (en) Method and apparatus for processing information
JP2013242880A (en) Workflow management server, control method for workflow management server, program, and recording medium
US11659021B2 (en) Asynchronous distributed modular function calling
CN113792534A (en) Method and device for processing flow
CN113535574B (en) Automatic generation method, device, equipment and medium for test user data
US20190146782A1 (en) Configuration guide editor to generate interactive configuration guides and automation content
CN113112217B (en) Business process configuration method, device, electronic equipment and computer readable medium
CN113253991A (en) Task visualization processing method and device, electronic equipment and storage medium
US20190163523A1 (en) Performing an action on a composite of software instances
US11977922B2 (en) Resource reuse for pipeline workloads
CN117527735A (en) Page information processing method and device, user terminal and server
CN118170281A (en) Information interaction method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination