WO2019080231A1 - Email sending method and device in workflow system and computer device - Google Patents

Email sending method and device in workflow system and computer device

Info

Publication number
WO2019080231A1
WO2019080231A1 PCT/CN2017/112523 CN2017112523W WO2019080231A1 WO 2019080231 A1 WO2019080231 A1 WO 2019080231A1 CN 2017112523 W CN2017112523 W CN 2017112523W WO 2019080231 A1 WO2019080231 A1 WO 2019080231A1
Authority
WO
WIPO (PCT)
Prior art keywords
mail
task
information
node
status
Prior art date
Application number
PCT/CN2017/112523
Other languages
French (fr)
Chinese (zh)
Inventor
吴静
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019080231A1 publication Critical patent/WO2019080231A1/en

Links

Images

Classifications

    • 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/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management
    • 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/10Office automation; Time management
    • G06Q10/107Computer-aided management of electronic mailing [e-mailing]

Definitions

  • the present application relates to the field of information processing technologies, and in particular, to a mail sending method, apparatus, storage medium, and computer device in a workflow system.
  • Workflow is the organization and organization of a set of tasks to complete a business process. It is an abstract and general description of the business process and the business rules between its various operational steps.
  • the workflow defines the trigger sequence and trigger conditions of the task, and splits each task into multiple node tasks.
  • Each node task can be completed by one or more software systems, or can be completed by one or a group of people. This is done by one or more people working with the software system.
  • the main problem with workflow resolution is that in order to achieve a business goal, a computer is used to automatically deliver documents, information, or tasks between multiple participants in accordance with certain predetermined rules.
  • the traditional method of email reminding on a workflow system is to set a corresponding mail node on the workflow system, and when the task flows to the mail node, the corresponding mail is generated, and the received mail is set to the mail node. The person sends the appropriate message and then forwards the task to the next node of the mail node.
  • This traditional method has a large number of nodes in the workflow system due to the necessity of configuring corresponding mail nodes, which increases the complexity of workflow data flowing through the nodes.
  • a mail transmitting method, apparatus, storage medium, and computer device in a workflow system are provided.
  • a method for sending a mail in a workflow system comprising: acquiring a task status of a node task on a current node in a workflow system; obtaining, from a preset plurality of mail templates, a status of the task a matching mail template; generating a to-be-sent mail according to the task information and the mail template of the node task; and sending the to-be-sent mail to the user terminal corresponding to the task status.
  • a mail sending device in a workflow system comprising: a task information acquiring module, configured to acquire a task state of a node task on a current node in a workflow system; and an email template obtaining module, configured to be preset
  • the mail template is configured to obtain a mail template that matches the task status
  • the mail generating module is configured to generate a mail to be sent according to the task information and the mail template of the node task
  • a mail sending module configured to The sending of the mail is sent to the user terminal corresponding to the task status.
  • One or more non-transitory readable storage mediums storing computer readable instructions, when executed by one or more processors, cause one or more processors to perform the steps of: acquiring a workflow In the system, the task status of the node task on the current node; obtaining a mail template matching the task status from the preset plurality of mail templates; generating a to-be-sent according to the task information and the mail template of the node task And sending the to-be-sent mail to the user terminal corresponding to the task status.
  • a computer device comprising a memory and a processor, wherein the memory stores computer readable instructions, the computer readable instructions being executed by the processor, such that the processor performs the step of: acquiring a workflow system The task status of the node task on the current node; the mail template matching the task status is obtained from the preset plurality of mail templates; and the to-be-sent mail is generated according to the task information and the mail template of the node task; And sending the to-be-sent email to the user terminal corresponding to the task status.
  • FIG. 1 is an application environment diagram of a mail sending method in a workflow system in an embodiment
  • FIG. 2 is a flow chart of a method for sending a mail in a workflow system in an embodiment
  • FIG. 3 is a flowchart of generating a to-be-sent email according to task information and a mail template of the node task in an embodiment
  • FIG. 4 is a flow chart of a method for sending a mail in a workflow system in another embodiment
  • FIG. 5 is a structural block diagram of a mail transmitting apparatus in a workflow system in an embodiment.
  • Figure 6 is a diagram showing the internal structure of a computer device in an embodiment.
  • the mail sending method in the workflow system provided by the embodiment of the present application can be applied to the application environment shown in FIG. 1 .
  • computer device 110 can be coupled to user terminal 120 over a network.
  • a BPM (Business Process Management) system is configured on the computer device 120, and multiple workflow data is stored, and the node where each workflow data is located and the task status of the node task on the corresponding node are recorded. Corresponding processing user and other information.
  • the computer device 120 may acquire a task status on the current node where the workflow data is located in each workflow system, and obtain an email template that matches the task status from the preset multiple email templates; Information and mail templates generate pending mail; send pending mail to User terminal 120 corresponding to the task status.
  • a mail sending method in a workflow system is provided.
  • the application is mainly applied to the computer device shown in FIG. 1 as an example, and the method includes :
  • Step S202 Acquire a task state of a node task on the current node in the workflow system.
  • a workflow system is a system for processing workflow data on a workflow.
  • the system can be a BPM (Business Process Management) system for processing, managing, and approving workflow data for the entire workflow data, and can also be responsible for processing work associated with the BPM system.
  • BPM Business Process Management
  • Other associated systems for node tasks on some nodes in the stream can be used.
  • a workflow data can be a task in a workflow system.
  • the workflow system has multiple nodes and logical relationships between each node. Different nodes correspond to different phases of a task.
  • a workflow data can be the same or different for processing users on each node.
  • a node task of the corresponding node can be generated. That is, the node to be processed to which the corresponding workflow data flows, and the task information on the current node is related task data that needs to be processed when the corresponding workflow data is on the current node.
  • the task status indicates the current state of the node task on the corresponding node, and the task status contained on the different nodes is different.
  • the task status of the node task on the node A and the node B may include one or more of a status to be allocated, an in-distributed state, a processed state, and a processed state.
  • a status to be allocated an in-distributed state
  • a processed state a processed state.
  • a processed state a processed state.
  • the to-be-allocated state on the node A and the to-be-allocated state on the node B are also two different states, corresponding task information. It is not necessarily the same.
  • the computer device may acquire the task status of the node task on the changed node when detecting a change of the node where the workflow data is located, or when the task status of the node task changes, the node task may be acquired after the task change Task status.
  • the changed node is the current node.
  • Step S204 Obtain a mail template matching the task status from the preset plurality of mail templates.
  • the computer device presets the node task on the current node, and corresponds to the mail in different task states. Template.
  • the computer device can query a mail template matching the status of the task from a preset plurality of mail templates, and obtain the mail template.
  • the mail template matching the task status indicates a mail template that is suitable for processing the node task generated by the workflow data flowing to the current node and in the task state.
  • the mail templates corresponding to different nodes and/or different task states are not necessarily the same.
  • the mail template can include one or more of a mail title template, a mail body template, and recipient information.
  • the computer device sets, for each mail template, a template identifier for uniquely identifying the mail template, and according to an operation of the administrator user, some or all of the different task states under one or more nodes, Correspondence is established respectively with the template identifier of the matching mail template.
  • the computer device obtains the mail template identified by the corresponding template identifier according to the correspondence established between the task status and the corresponding template identifier.
  • the method before step S204, the method further includes: detecting whether a mail template is configured for the task status, and if yes, executing step S204.
  • the computer device can detect if the task status is configured with a mail template. Optionally, it is queried whether there is a mail mark corresponding to the task status; whether the mail template is configured according to whether the mail mark exists or not. If yes, it means that the task status is configured with a mail template.
  • the mail mark indicates that a corresponding mail template is configured for the corresponding task status.
  • the computer device may be configured to indicate whether the corresponding task status is configured with a template mail field, and set the field information indicating that the corresponding mail template exists or not, for example, a field value such as “yes”, “yes” or “0” may be set.
  • the computer device can receive the editing information of the mail template in the task state, and detect whether the editing user corresponding to the editing information has the editing authority, and if so, the mail according to the editing information.
  • the template is edited, and the edited mail template is associated with the task status, wherein the edit information may be modification information and/or creation information of the mail template.
  • Step S206 generating a to-be-sent mail according to the task information of the node task and the mail template.
  • the computer device may obtain task information that the workflow data is on the current node, and extract field information or task files related to the task status from the task information, and load the field information and/or the task file into the mail template to generate The message to be sent.
  • the related field information may include one or more of a task name, a task time limit, and a task profile.
  • Step S208 the mail to be sent is sent to the user terminal corresponding to the task status.
  • the user terminal may be a terminal corresponding to the recipient in the mail to be sent.
  • the computer device presets information for one or more recipients corresponding to the task status.
  • the computer device can detect whether the recipient is included in the to-be-sent email, and if yes, send the to-be-generated email to the user terminal corresponding to the recipient. Otherwise, the computer device can query the information of one or more recipients corresponding to the task status, obtain the mailbox of the queried recipient, and send the to-be-generated mail to the queried recipient mailbox, thereby implementing the pending
  • the sending email is sent to the user terminal of the receiving user.
  • the method for sending a mail in the workflow system obtains a task state of a node task on the current node in the workflow system; and obtains an email template that matches the task status from the preset multiple email templates;
  • the task information and the mail template of the task generate a mail to be sent;
  • the mail to be sent is sent to the user terminal corresponding to the task state, so that the mail corresponding to the node task can be generated for the task status in each node, and the workflow data is avoided.
  • the corresponding node mail is specially configured, which can reduce the number of nodes in the workflow system and reduce the complexity of workflow data flowing in the node.
  • step S204 includes: querying all mail templates corresponding to the task status; and obtaining, from the queried mail template, a mail template that matches the task type of the node task.
  • the task types of node tasks that are on the same node are not necessarily the same.
  • the workflow system can be adapted to process multiple types of workflow data. Different types of workflow data may be transferred to one or more of the same nodes during processing.
  • the task type of the node task is the task type to which the workflow data belongs. That is, different types of workflow data, when flowing to the same node, the task type of the corresponding node task is also different.
  • the computer device further sets a correspondence between different task types and different mail templates, and establishes a correspondence between different task types and template identifiers of the mail templates.
  • the computer device may first query all the template identifiers corresponding to the task status, and further query the template identifier that matches the task type from the template identifier that is queried, and obtain the mail template corresponding to the template identifier.
  • the workflow system can be applied to process workflow data of insurance, and the types of workflow data in the system include the type of pension insurance and the type of dividend insurance.
  • the workflow data A and the workflow data B belong to the pension insurance type and the dividend type respectively, and the two workflow data are respectively flowed to the current node, and the generated corresponding node task A and node task B are in the same waiting.
  • the computer device may first query all the template identifiers corresponding to the to-be-assigned state on the current node, and obtain the template identifier A corresponding to the pension insurance type from the template identifier that is obtained, and obtain the template email A corresponding to the template identifier A.
  • the template ID B corresponding to the dividend type is obtained
  • the template mail B corresponding to the template identifier B is obtained as the to-be-sent mail for generating the node task B.
  • step S204 includes: generating a to-be-sent mail according to the task information of the node task and the mail template, including: querying the number of users applicable to the user who processes the node task; and obtaining the mail template whose task status matches the number of users.
  • the computer device For the node task on each node, the computer device also presets a user who is in the different task state to process the node task, and the user may include one or more. If the number of users for users who process node tasks is different, the corresponding mail templates are not necessarily the same.
  • the computer device also sets a template identifier corresponding to the number of different users.
  • the computer device can query the number of users of the user that is suitable for processing the node task, and query all template identifiers corresponding to the task status, and determine the template corresponding to the number of users of the user who processes the node task in the template identifier that is queried. Identify and obtain the template message corresponding to the template ID.
  • the user applicable to the processing of the node task may be further divided into users suitable for processing the node task and in different task states according to the task state.
  • the node task is The user in the state to be assigned is user A and user B, and the user in the audit state is user N.
  • the flexibility of the mail template can be further selected by further considering the number of users of the users that are suitable for processing the node tasks.
  • step S206 includes: acquiring historical mail information associated with the mail to be generated; and generating a mail to be sent according to the task information of the node task, the historical mail information, and the mail template.
  • the computer device may further query historical mail information associated with the to-be-generated mail, and the historical mail information includes historical mail generated by the workflow data, including the workflow data flow to the current node and the node before the current node, and the corresponding node task Generated historical mail
  • the historical mail information associated with the mail to be generated may include a history mail generated by a node task on the current node, and/or a history mail generated by a node task on the upstream node of the current node, and/or Or a recent historical message generated from the workflow data.
  • the computer device can obtain the historical mail information, load the historical mail information into the body of the mail template, and generate a to-be-sent mail according to the task information and the mail template.
  • the node adjacent to it is the upstream node relative to the node, and the node located adjacent to it is the downstream node relative to the node.
  • the above-mentioned certain node is the downstream node of the upstream node.
  • the computer device can detect whether any one or more of the current node or task status or mail template is set, whether a history mail needs to be loaded. If the history mail needs to be loaded for the current node or task status, a historical mail may be generated from the historical mail information and loaded into the corresponding location in the mail template. If the mail template needs to carry the historical mail information, you can also select a historical mail from the historical mail information and load it into the corresponding location in the mail template, for example, into the body template of the template mail.
  • the richness of the information carried in the generated mail can be improved, and the mail recipient can obtain more information, thereby improving the processing efficiency of the task of the node.
  • step S206 includes:
  • Step S302 Extract field information corresponding to the task status from the task information of the node task, and load the field information into the mail header and/or the mail body in the mail template.
  • the related information in the message information is set in the mail template, and the information to be filled can be located in the mail header and/or the mail body in the mail template.
  • the computer device may detect, according to the obtained mail template, the attribute of the field information that needs to be filled in the template information of the template and/or the template information of the mail body, and extract field information corresponding to the same attribute from the task information, and extract the extracted
  • the field information is populated to the location corresponding to the field to be filled.
  • the field information that needs to be filled may include one or more of a task name, a task time limit, a task profile, and user information for processing the task.
  • Step S304 determining corresponding recipient information according to the node task and the status information.
  • the computer device can query the user identifier corresponding to the status information, and obtain the recipient information corresponding to each queryed user identifier.
  • the task type to which the node task belongs may be further detected, and the user identifier corresponding to the task type is filtered out from the queried user identifier, and the recipient information corresponding to the filtered user identifier is obtained.
  • the recipient information may be a preset email address of the user.
  • Step S306 generating a to-be-sent mail according to the mail header, the mail body, and the recipient information.
  • the computer device can generate a mail to be sent according to the mail header and the mail body after filling the required filling information, and the determined recipient information.
  • the mail By extracting the field information corresponding to the task status from the task information of the node task, loading the field information into the mail header and/or the mail body in the mail template, and determining the recipient according to the node task and the task status, the mail can be improved.
  • the efficiency of the generation By extracting the field information corresponding to the task status from the task information of the node task, loading the field information into the mail header and/or the mail body in the mail template, and determining the recipient according to the node task and the task status, the mail can be improved. The efficiency of the generation.
  • the method before the step S208, further includes: displaying the to-be-sent mail; receiving the modification information of the mail to be sent, and modifying the mail to be sent according to the modification information.
  • Step S208 includes: transmitting the modified to-be-sent email to the user terminal corresponding to the task state.
  • the computer device can also display the generated to-be-sent mail before the mail is sent for the user to modify the confirmation.
  • the computer device can receive modification information of the displayed mail information, and modify the mail according to the modification information. Further, the computer device can respond to key messages in the generated mail The information is displayed in a highlighted or other form of attention so that the user can detect whether the associated information contained in the email is correct. This key information can be all or part of the field information loaded into the mail template.
  • the computer device can receive a sending instruction for the modified mail, and send the modified mail to the user terminal according to the sending instruction.
  • the mail sender can modify and confirm the mail to be sent, thereby improving the accuracy of the information carried by the mail.
  • FIG. 4 another method for sending a mail in a workflow system is provided, the method comprising:
  • Step S402 Acquire a task state of a node task in the workflow system that is on the current node.
  • the computer device can obtain a processing result of the node task generated by the workflow data, and according to the processing result, determine whether to transfer the workflow data stream to the next node or change the task status of the node task on the node. Wherein, when the flow to the next node, the next node is the current node, and if it is kept on the same node, the node is the current node.
  • the task state of the node task A on the node A includes a to-be-allocated state, a pending state, and a processing completion state.
  • the computer device can receive the processing result of the task A of the node, and when it is determined that the state of the task A of the node is the pending state according to the processing result, the pending state of the task A of the node can be obtained; when the task A according to the node is When the processing result determines that the corresponding workflow data is flowed to the node B, the node task B of the node B is generated, and the node state of the task B of the node is obtained.
  • the node B is the current node
  • the node A is the upstream node of the node B.
  • Step S404 when the mail template is configured for the task status, query all mail templates corresponding to the task status from the preset plurality of mail templates.
  • the computer device can detect whether the current task state in which the node task is located is set to a mail mark, and if so, determine that a mail template is configured for the task status.
  • the task status can be configured with multiple mail templates, and the computer device can pre-configure the correspondence between the mail identifiers of all the configured mail templates and the task status, and query all templates corresponding to the task status through the corresponding relationship. logo.
  • Step S406 querying the number of users applicable to the user who processes the node task.
  • the computer device also presets a user for processing a node task in a current task state, which may include one or more.
  • the users corresponding to different task types of the node task are not necessarily the same, and the task type can be determined according to the workflow data.
  • the computer pre-establishes the correspondence between the task status and the user ID of the appropriate user.
  • the user ID applicable to the task of the node can be queried, and the number of all user IDs queried is calculated.
  • Step S408 Obtain a mail template that matches the task type and the number of users of the node task from the queried mail template.
  • the computer device can select a mail template that matches the task type and the number of users according to the queried mail template.
  • the mail template matching the task status and the number of users can be obtained in a state in which the number of user identifiers is one.
  • the mail template may be a mail template indicating that the node task is assigned to the one user for processing.
  • the obtained mail template may be a mail template indicating that the plurality of users select whether to accept the task of processing the node.
  • Step S410 generating a to-be-sent mail according to the task information of the node task and the mail template.
  • the computer device may extract field information corresponding to the task status from the task information of the node task, load the field information into the mail header and/or the mail body in the mail template, and determine the corresponding recipient information according to the node task and the status information. ; Generate a message to be sent based on the message header, message body, and recipient information.
  • the computer device may further query whether the task file needs to be loaded in the mail template, and if yes, obtain a task file associated with the node task in the current task state, and load the task file into the mail template. , as attachment information of the mail to be sent.
  • the message body in the obtained mail template contains: "XX product XX account opening information preparation personnel is XX, please contact us if you have any questions.”, the "XX product" inside It can be determined based on the product name in the task information.
  • the computer device may also count the number of messages of the historical mail associated with the node task, and load the mail quantity information into the mail template, for example, may be loaded on the header of the mail, so that the generated to be sent The message carries the number of times the message was sent for the task of the node.
  • Step S412 the mail to be sent is sent to the user terminal corresponding to the task state.
  • the user terminal may be a user terminal corresponding to the queried user identifier. Likewise, the user terminal may also include one or more.
  • the mail sending method in the above workflow system by setting the task type of the node task, and setting different task types and email templates corresponding to the number of users, makes the generated mail carry more information and improves the entire workflow.
  • the efficiency of processing node tasks by setting the task type of the node task, and setting different task types and email templates corresponding to the number of users, makes the generated mail carry more information and improves the entire workflow. The efficiency of processing node tasks.
  • step S406 includes: acquiring user scheduling information that matches the task status, and querying the number of users of each assignable user in the user scheduling information, where the number of users is the number of users applicable to the user who processes the node task. .
  • the user scheduling information refers to information reflecting a task assignment status of a plurality of users, and the user is a user suitable for processing a node task in a current task state.
  • the user scheduling information includes task allocation information of a plurality of users, such as one or more of user information including each user, a number of task assignments of the corresponding user, a task status of each assigned task, and task information.
  • the user information includes the user's name, contact information, and the like, and also includes a user identifier for uniquely identifying the user information. Different user scheduling information includes different user identifiers, and the same user scheduling information does not necessarily have the same user identifier in different periods.
  • the user identifier of the user in the same department, the team, and/or the task type that is set to be processed may be extracted in advance, and the corresponding user scheduling information is generated according to the user information corresponding to the extracted user identifier and the task allocation information.
  • the user scheduling information matching the task information includes user information indicating that the task to be allocated is processed.
  • the computer device pre-records the work schedule information of each user, and according to the work schedule information, sets whether the corresponding user can be assigned at different times.
  • Computer equipment can detect every Whether the current system time is included in the work schedule information, and if so, the user corresponding to the work schedule information is determined to be an assignable user.
  • the computer device sets the user identifier in the corresponding work schedule information to the assignable flag according to the work schedule information, and is in the user identifier corresponding to the non-work schedule information, and then cancels the assignable marker.
  • the computer device can adjust the corresponding user identifier according to the current system time and each user's working time to adjust whether the corresponding user identifier is set.
  • the computer device can detect whether the user identifier is set in the user scheduling information, and if yes, determine that the corresponding user is an assignable user, and count the number of users that can be assigned. For example, there is a user A's work schedule information only work every Monday or Wednesday. Then, when the current system time is on Monday or Wednesday, the user identifier A of the user A is set to be assignable flag, and when it is on Tuesday, the assignable flag set for the user identifier A is canceled. By detecting whether the user identifier is set in each of the user identifiers, it is identified whether the corresponding user is an assignable user.
  • a mail sending apparatus in a workflow system comprising:
  • the task information obtaining module 502 is configured to acquire a task state of a node task on the current node in the workflow system.
  • the mail template obtaining module 504 is configured to obtain, from the preset plurality of mail templates, a mail template that matches the task status.
  • the mail generating module 506 is configured to generate a mail to be sent according to the task information of the node task and the mail template.
  • the mail sending module 508 is configured to send the to-be-sent mail to the user terminal corresponding to the task status.
  • the mail template obtaining module 504 is further configured to detect whether a mail template is configured for the task status, and if yes, obtain a mail template that matches the task status.
  • the mail template obtaining module 504 is further configured to query whether there is a mail mark corresponding to the task status, and determine whether the mail template is configured according to whether the mail mark exists.
  • the mail template obtaining module 504 is further configured to query all mail templates corresponding to the task status, and obtain a mail template that matches the task type of the node task from the queried mail template.
  • the mail template obtaining module 504 is further configured to query the number of users of the user that is suitable for processing the node task; and obtain the mail template that matches the task status and the number of users.
  • the mail generating module 506 is further configured to acquire historical mail information associated with the mail to be generated; and generate a mail to be sent according to the task information of the node task, the historical mail information, and the mail template.
  • the mail generating module 506 is further configured to extract field information corresponding to the task status from the task information of the node task, and load the field information into the mail header and/or the mail body in the mail template; The status information is used to determine the corresponding recipient information; the mail to be sent is generated according to the mail header, the mail body, and the recipient information.
  • the mail generating module 506 is further configured to display the mail to be sent; receive the modified information of the mail to be sent, and modify the mail to be sent according to the modified information.
  • the mail sending module 508 is further configured to send the modified mail to be sent to the user terminal corresponding to the task status.
  • Each of the above-described devices may be implemented in whole or in part by software, hardware, and combinations thereof.
  • Each of the above modules may be embedded in or independent of the processor in the computer device, or may be stored in a memory in the computer device in a software form, so that the processor invokes the operations corresponding to the above modules.
  • the processor can be a central processing unit (CPU), a microprocessor, a microcontroller, or the like.
  • a computer readable storage medium having computer readable instructions stored thereon, the computer readable instructions being executed by a processor to implement a mail transmission method in any one of the above embodiments A step of.
  • the computer readable instructions are executed by the processor to implement the following steps: Obtaining the task status of the node task on the current node in the workflow system; obtaining the mail template matching the task status from the preset multiple mail templates; generating the to-be-sent mail according to the task information and the mail template of the node task Sending the to-be-sent email to the user terminal corresponding to the task status.
  • the computer readable instructions are further executed by the processor to detect whether a mail template is configured for the task status, and if so, obtain a mail template that matches the status of the task.
  • the computer readable instructions are further executed by the processor to: query whether there is a mail mark corresponding to the task status; and determine whether the mail template is configured according to whether the mail mark exists.
  • the computer readable instructions are further executed by the processor to: query all mail templates corresponding to the task status; and obtain, from the queried mail template, the mails that match the task type of the node task template.
  • the computer readable instructions when executed by the processor, further implement the steps of querying a number of users of a user suitable for processing a node task; obtaining a mail template that matches the task status and the number of users.
  • the computer readable instructions are further executed by the processor to: obtain historical mail information associated with the mail to be generated; and generate a mail to be sent according to the task information of the node task, the historical mail information, and the mail template.
  • the computer readable instructions when executed by the processor, further implement the steps of: extracting field information corresponding to the task status from the task information of the node task, loading the field information into the mail header in the mail template and/or Or in the body of the mail; determine corresponding recipient information according to the node task and status information; generate a to-be-sent mail according to the mail header, the mail body, and the recipient information.
  • the computer readable instructions are further executed by the processor to: display the mail to be sent; receive the modified information of the mail to be sent, modify the mail to be sent according to the modified information; and modify the to-be-sent The mail is sent to the user terminal corresponding to the task status.
  • a computer apparatus comprising a memory, a processor, and computer readable instructions stored on the memory and executable on the processor, the processor executing the computer readable
  • the steps of the mail sending method in the workflow system of any of the above embodiments are implemented when instructed.
  • the computer device can be any of a server or a terminal. Terminals include, but are not limited to, mobile phones, tablets, portable notebooks, or smart wearable devices.
  • FIG. 6 it is a schematic diagram of the internal structure of a computer device in one embodiment.
  • the computer device includes a processor, memory, and network interface coupled by a system bus.
  • the processor of the computer device is used to provide computing and control capabilities to support the operation of the entire computer device.
  • the memory is used to store data, instruction code, etc., and the memory stores at least one computer readable instruction executable by the processor to implement the workflow system suitable for the computer device provided in the embodiments of the present application. How to send mail.
  • the memory may include a non-volatile storage medium such as a magnetic disk, an optical disk, a read-only memory (ROM), or the like.
  • the memory includes a non-volatile storage medium and an internal memory.
  • Non-volatile storage media stores operating systems, databases, and computer readable instructions.
  • the database stores data related to the mail sending method in the workflow system provided by the foregoing various embodiments, such as storing corresponding user information and workflow data, task information of the node task, and the like.
  • the computer readable instructions are executable by a processor for implementing a mail delivery method in a workflow system provided by the various embodiments above.
  • the internal memory in the computer device provides a cached operating environment for operating systems, databases, and computer readable instructions in a non-volatile storage medium.
  • the network interface may be an Ethernet card or a wireless network card or the like for communicating with an external terminal or server. It will be understood by those skilled in the art that the structure shown in FIG. 6 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation of the computer device to which the solution of the present application is applied.
  • the specific computer device may It includes more or fewer components than those shown in the figures, or some components are combined, or have different component arrangements.
  • the computer device can also include a display screen that can be used to display corresponding task assignment information and/or authorization information and the like.
  • the display screen can be a touch screen, such as a capacitive screen or an electronic screen, and a corresponding command can be generated by receiving a click operation of a control applied to the touch screen.
  • the processor executes the computer readable instructions to: obtain a task state of a node task on the current node in the workflow system; from a preset plurality of messages In the template, the mail template matching the task status is obtained; the mail to be sent is generated according to the task information and the mail template of the node task; and the mail to be sent is sent to the user terminal corresponding to the task status.
  • the processor when executing the computer readable instructions, further implements the steps of detecting whether a mail template is configured for the task status, and if so, obtaining a mail template that matches the status of the task.
  • the processor executes the computer readable instructions, the following steps are further performed: querying whether there is a mail mark corresponding to the task status; determining whether the mail template is configured according to whether the mail mark exists.
  • the processor executes the computer readable instructions, the following steps are further performed: querying all mail templates corresponding to the task status; and obtaining a mail template matching the task type of the node task from the queried mail template .
  • the processor when executing the computer readable instructions, further implements the steps of querying the number of users of the user appropriate for processing the node task; and obtaining a mail template that matches the task status and the number of users.
  • the processor when executing the computer readable instructions, further implements the steps of: obtaining historical mail information associated with the mail to be generated; generating a mail to be sent according to the task information of the node task, the historical mail information, and the mail template.
  • the processor when executing the computer readable instructions, further implements the steps of: extracting field information corresponding to the task status from the task information of the node task, loading the field information into the mail header in the mail template and/or In the body of the mail; determine the corresponding recipient information according to the node task and status information; generate the to-be-sent mail according to the mail header, the mail body and the recipient information.
  • the processor executes the computer readable instructions, the following steps are further implemented: displaying the to-be-sent mail; receiving the modification information of the mail to be sent, modifying the mail to be sent according to the modification information; and modifying the to-be-sent mail Send to the user terminal corresponding to the task status.
  • Non-volatile memory Any reference to a memory, storage, database, or other medium used herein may include non-volatile memory. Suitable non-volatile memories can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • ROM read only memory
  • PROM programmable ROM
  • EPROM electrically programmable ROM
  • EEPROM electrically erasable programmable ROM
  • flash memory any reference to a memory, storage, database, or other medium used herein may include non-volatile memory.
  • ROM read only memory
  • PROM programmable ROM
  • EPROM electrically programmable ROM
  • EEPROM electrically erasable programmable ROM

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Marketing (AREA)
  • Data Mining & Analysis (AREA)
  • Economics (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Information Transfer Between Computers (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

Disclosed is an email sending method in a workflow system. The method comprises: acquiring, in the workflow system, a task status of a node task on the current node; acquiring, from a plurality of preset email templates, an email template matched with the task status; generating a to-be-sent email according to the task information of the node task and the email template; and sending the to-be-sent email to a user terminal corresponding to the task status.

Description

工作流系统中的邮件发送方法、装置和计算机设备Mail sending method, device and computer device in workflow system
本申请要求于2017年10月24日提交中国专利局,申请号为2017109998587,发明名称为“工作流系统中的邮件发送方法、装置和计算机设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on October 24, 2017, the Chinese Patent Office, the application number is 2017109998587, the invention name is "the mail sending method, device and computer equipment in the workflow system", the entire contents of which are The citations are incorporated herein by reference.
技术领域Technical field
本申请涉及信息处理技术领域,特别是涉及一种工作流系统中的邮件发送方法、装置、存储介质和计算机设备。The present application relates to the field of information processing technologies, and in particular, to a mail sending method, apparatus, storage medium, and computer device in a workflow system.
背景技术Background technique
工作流(Workflow)是将一组任务组织起来以完成某个经营过程,是对工作流程及其各操作步骤之间业务规则的抽象、概括描述。工作流定义了任务的触发顺序和触发条件,将每个任务拆分成多个节点任务,每个节点任务可以由一个或多个软件系统完成,也可以由一个或一组人完成,还可以由一个或多个人与软件系统协作完成。工作流解决的主要问题是:为了实现某个业务目标,利用计算机在多个参与者之间按某种预定规则自动传递文档、信息或者任务。Workflow is the organization and organization of a set of tasks to complete a business process. It is an abstract and general description of the business process and the business rules between its various operational steps. The workflow defines the trigger sequence and trigger conditions of the task, and splits each task into multiple node tasks. Each node task can be completed by one or more software systems, or can be completed by one or a group of people. This is done by one or more people working with the software system. The main problem with workflow resolution is that in order to achieve a business goal, a computer is used to automatically deliver documents, information, or tasks between multiple participants in accordance with certain predetermined rules.
在工作流系统上处理任务的过程中,通常会需要进行邮件通知相应的任务信息,将任务信息邮件发送给相应的任务处理人或相关人员。传统的在工作流系统上进行邮件提醒的方法,是在工作流系统上设置相应的邮件节点,当任务流转至该邮件节点上时,才生成相应的邮件,向针对该邮件节点所设置的收件人发送相应的邮件,然后再将该任务流转至邮件节点的下一个节点。这种传统的方法,由于必须配置相应的邮件节点,使得工作流系统中的节点数量众多,增加了工作流数据在节点中流转的复杂性。 In the process of processing tasks on the workflow system, it is usually necessary to notify the corresponding task information by mail, and send the task information mail to the corresponding task handler or related personnel. The traditional method of email reminding on a workflow system is to set a corresponding mail node on the workflow system, and when the task flows to the mail node, the corresponding mail is generated, and the received mail is set to the mail node. The person sends the appropriate message and then forwards the task to the next node of the mail node. This traditional method has a large number of nodes in the workflow system due to the necessity of configuring corresponding mail nodes, which increases the complexity of workflow data flowing through the nodes.
发明内容Summary of the invention
根据本申请公开的各种实施例,提供一种工作流系统中的邮件发送方法、装置、存储介质和计算机设备。According to various embodiments disclosed herein, a mail transmitting method, apparatus, storage medium, and computer device in a workflow system are provided.
一种工作流系统中的邮件发送方法,所述方法包括:获取工作流系统中,处于当前节点上的节点任务的任务状态;从预设的多个邮件模板中,获取与所述任务状态相匹配的邮件模板;根据所述节点任务的任务信息和邮件模板生成待发送邮件;及将所述待发送邮件发送至与所述任务状态对应的用户终端。A method for sending a mail in a workflow system, the method comprising: acquiring a task status of a node task on a current node in a workflow system; obtaining, from a preset plurality of mail templates, a status of the task a matching mail template; generating a to-be-sent mail according to the task information and the mail template of the node task; and sending the to-be-sent mail to the user terminal corresponding to the task status.
一种工作流系统中的邮件发送装置,所述装置包括:任务信息获取模块,用于获取工作流系统中,处于当前节点上的节点任务的任务状态;邮件模板获取模块,用于从预设的多个邮件模板中,获取与所述任务状态相匹配的邮件模板;邮件生成模块,用于根据所述节点任务的任务信息和邮件模板生成待发送邮件;及邮件发送模块,用于将所述待发送邮件发送至与所述任务状态对应的用户终端。A mail sending device in a workflow system, the device comprising: a task information acquiring module, configured to acquire a task state of a node task on a current node in a workflow system; and an email template obtaining module, configured to be preset The mail template is configured to obtain a mail template that matches the task status, and the mail generating module is configured to generate a mail to be sent according to the task information and the mail template of the node task; and a mail sending module, configured to The sending of the mail is sent to the user terminal corresponding to the task status.
一个或多个存储有计算机可读指令的非易失性可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行如下步骤:获取工作流系统中,处于当前节点上的节点任务的任务状态;从预设的多个邮件模板中,获取与所述任务状态相匹配的邮件模板;根据所述节点任务的任务信息和邮件模板生成待发送邮件;及将所述待发送邮件发送至与所述任务状态对应的用户终端。One or more non-transitory readable storage mediums storing computer readable instructions, when executed by one or more processors, cause one or more processors to perform the steps of: acquiring a workflow In the system, the task status of the node task on the current node; obtaining a mail template matching the task status from the preset plurality of mail templates; generating a to-be-sent according to the task information and the mail template of the node task And sending the to-be-sent mail to the user terminal corresponding to the task status.
一种计算机设备,包括存储器和处理器,所述存储器中存储有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述处理器执行如下步骤:获取工作流系统中,处于当前节点上的节点任务的任务状态;从预设的多个邮件模板中,获取与所述任务状态相匹配的邮件模板;根据所述节点任务的任务信息和邮件模板生成待发送邮件;及将所述待发送邮件发送至与所述任务状态对应的用户终端。A computer device comprising a memory and a processor, wherein the memory stores computer readable instructions, the computer readable instructions being executed by the processor, such that the processor performs the step of: acquiring a workflow system The task status of the node task on the current node; the mail template matching the task status is obtained from the preset plurality of mail templates; and the to-be-sent mail is generated according to the task information and the mail template of the node task; And sending the to-be-sent email to the user terminal corresponding to the task status.
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请 的其它特征、目的和优点将从说明书、附图以及权利要求书变得明显。Details of one or more embodiments of the present application are set forth in the accompanying drawings and description below. This application Other features, objects, and advantages will be apparent from the description, drawings and claims.
附图说明DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present application. Other drawings may also be obtained from those of ordinary skill in the art in light of the inventive work.
图1为一个实施例中工作流系统中的邮件发送方法的应用环境图;1 is an application environment diagram of a mail sending method in a workflow system in an embodiment;
图2为一个实施例中工作流系统中的邮件发送方法的流程图;2 is a flow chart of a method for sending a mail in a workflow system in an embodiment;
图3为一个实施例中根据所述节点任务的任务信息和邮件模板生成待发送邮件的流程图;FIG. 3 is a flowchart of generating a to-be-sent email according to task information and a mail template of the node task in an embodiment;
图4为另一个实施例中工作流系统中的邮件发送方法的流程图;4 is a flow chart of a method for sending a mail in a workflow system in another embodiment;
图5为一个实施例中工作流系统中的邮件发送装置的结构框图;及5 is a structural block diagram of a mail transmitting apparatus in a workflow system in an embodiment; and
图6为一个实施例中计算机设备的内部结构图。Figure 6 is a diagram showing the internal structure of a computer device in an embodiment.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the objects, technical solutions, and advantages of the present application more comprehensible, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to be limiting.
本申请实施例所提供的工作流系统中的邮件发送方法,可应用于如图1所示的应用环境中。参考图1所示,计算机设备110可通过网络与用户终端120相连。计算机设备120上配置了BPM(Business Process Management,业务流程管理)系统,并存储了多份工作流数据,记录了每份工作流数据所处的节点,以及在对应节点上的节点任务的任务状态、对应的处理用户等信息。计算机设备120可获取每个工作流系统中,工作流数据所处当前节点上的任务状态,并从预设的多个邮件模板中,获取与任务状态相匹配的邮件模板;根据节点任务的任务信息和邮件模板生成待发送邮件;将待发送邮件发送至 与任务状态对应的用户终端120。The mail sending method in the workflow system provided by the embodiment of the present application can be applied to the application environment shown in FIG. 1 . Referring to FIG. 1, computer device 110 can be coupled to user terminal 120 over a network. A BPM (Business Process Management) system is configured on the computer device 120, and multiple workflow data is stored, and the node where each workflow data is located and the task status of the node task on the corresponding node are recorded. Corresponding processing user and other information. The computer device 120 may acquire a task status on the current node where the workflow data is located in each workflow system, and obtain an email template that matches the task status from the preset multiple email templates; Information and mail templates generate pending mail; send pending mail to User terminal 120 corresponding to the task status.
在一个实施例中,如图2所示,提供了一种工作流系统中的邮件发送方法,本申请主要以该方法应用于如图1所示的计算机设备中为例进行说明,该方法包括:In an embodiment, as shown in FIG. 2, a mail sending method in a workflow system is provided. The application is mainly applied to the computer device shown in FIG. 1 as an example, and the method includes :
步骤S202,获取工作流系统中,处于当前节点上的节点任务的任务状态。Step S202: Acquire a task state of a node task on the current node in the workflow system.
工作流系统为用于对工作流上的工作流数据进行处理的系统。该系统可为用于对整个工作流数据进行工作流数据的查询、管理以及审批等处理的BPM(Business Process Management,业务流程管理)系统,还可为与该BPM系统有关联的、负责处理工作流中的部分节点上的节点任务的其它关联系统。A workflow system is a system for processing workflow data on a workflow. The system can be a BPM (Business Process Management) system for processing, managing, and approving workflow data for the entire workflow data, and can also be responsible for processing work associated with the BPM system. Other associated systems for node tasks on some nodes in the stream.
一份工作流数据可为在工作流系统中的一项任务。工作流系统中设置了多个节点,以及每个节点之间的逻辑关系,不同节点对应了一项任务所处的不同阶段,一份工作流数据在各节点上的处理用户可相同或不同。工作流数据被流转到某一节点上时,可生成对应节点的节点任务。即为相应工作流数据所流转到的待处理的节点,当前节点上的任务信息为对应工作流数据在当前节点上时,所需处理的相关任务数据。A workflow data can be a task in a workflow system. The workflow system has multiple nodes and logical relationships between each node. Different nodes correspond to different phases of a task. A workflow data can be the same or different for processing users on each node. When workflow data is streamed to a node, a node task of the corresponding node can be generated. That is, the node to be processed to which the corresponding workflow data flows, and the task information on the current node is related task data that needs to be processed when the corresponding workflow data is on the current node.
任务状态表示处于对应节点上的节点任务的当前状态,不同节点上包含的任务状态不同。举例来说,存在某一节点A和节点B,节点A和节点B上的节点任务的任务状态均可包括待分配状态、分配中状态、处理中状态、处理完毕状态等其中的一种或多种。显然地,由于工作流数据处于节点A和节点B上是两种不同的阶段,因而处在节点A上的待分配状态和节点B上的待分配状态也是两种不同的状态,对应的任务信息也不一定相同。The task status indicates the current state of the node task on the corresponding node, and the task status contained on the different nodes is different. For example, there may be a certain node A and a node B, and the task status of the node task on the node A and the node B may include one or more of a status to be allocated, an in-distributed state, a processed state, and a processed state. Kind. Obviously, since the workflow data is on the node A and the node B in two different stages, the to-be-allocated state on the node A and the to-be-allocated state on the node B are also two different states, corresponding task information. It is not necessarily the same.
计算机设备可在检测到一份工作流数据所处的节点产生变动时,获取变动后的节点上的节点任务的任务状态,或者节点任务的任务状态产生变动时,可该获取该节点任务变动后的任务状态。其中,变动后的节点即为当前节点。The computer device may acquire the task status of the node task on the changed node when detecting a change of the node where the workflow data is located, or when the task status of the node task changes, the node task may be acquired after the task change Task status. Among them, the changed node is the current node.
步骤S204,从预设的多个邮件模板中,获取与任务状态相匹配的邮件模板。Step S204: Obtain a mail template matching the task status from the preset plurality of mail templates.
计算机设备预设了当前节点上的节点任务,在不同任务状态下对应的邮 件模板。计算机设备可从预设的多个邮件模板中,查询与该任务状态相匹配的邮件模板,并获取该邮件模板。与任务状态相匹配的邮件模板表示适用于处理流转至当前节点上工作流数据所产生的节点任务,处于该任务状态下的邮件模板。其中,不同的节点和/或不同的任务状态对应的邮件模板不一定相同。邮件模板中可包含邮件标题模板、邮件正文模板以及收件人信息等其中的一种或多种。The computer device presets the node task on the current node, and corresponds to the mail in different task states. Template. The computer device can query a mail template matching the status of the task from a preset plurality of mail templates, and obtain the mail template. The mail template matching the task status indicates a mail template that is suitable for processing the node task generated by the workflow data flowing to the current node and in the task state. The mail templates corresponding to different nodes and/or different task states are not necessarily the same. The mail template can include one or more of a mail title template, a mail body template, and recipient information.
在一个实施例中,计算机设备针对每个邮件模板设置了用于唯一标识该邮件模板的模板标识,并根据管理员用户的操作,将一个或多个节点下的部分或全部不同的任务状态,分别与相匹配的邮件模板的模板标识建立对应关系。计算机设备可根据该任务状态与对应模板标识之间建立的对应关系,获取相应模板标识所标识的邮件模板。In one embodiment, the computer device sets, for each mail template, a template identifier for uniquely identifying the mail template, and according to an operation of the administrator user, some or all of the different task states under one or more nodes, Correspondence is established respectively with the template identifier of the matching mail template. The computer device obtains the mail template identified by the corresponding template identifier according to the correspondence established between the task status and the corresponding template identifier.
在一个实施例中,在步骤S204之前,还包括:检测对任务状态是否配置了邮件模板,若是,则执行步骤S204。In an embodiment, before step S204, the method further includes: detecting whether a mail template is configured for the task status, and if yes, executing step S204.
并非所有的节点和/或所有的任务状态都需要设置对应的邮件。计算机设备可检测该任务状态是否配置了邮件模板。可选地,查询是否存在与任务状态对应的邮件标记;根据是否存在邮件标记判断是否配置了邮件模板。若是,则表示该任务状态配置了邮件模板。其中,该邮件标记表示对相应的任务状态配置了对应的邮件模板。计算机设备可设置用于表示对应任务状态是否配置了模板邮件的字段,对该字段设置分别表示存在或不存在对应邮件模板的信息,比如可设置“是”、yes”或者“0”等字段值表示存在对应邮件模板的信息,设置“否”、“no”或者“1”等字段值分别表示存在或不存在对应邮件模板的信息。其中,当该字段值为表示存在邮件模板的字段值时,即表示存在邮件标记。在一个实施例中,计算机设备可接收对该任务状态下的邮件模板的编辑信息,检测该编辑信息对应的编辑用户是否具有编辑权限,若是,则根据编辑信息对邮件模板进行编辑,将编辑后的邮件模板与该任务状态进行关联。其中,该编辑信息可为对邮件模板的修改信息和/或创建信息等。Not all nodes and/or all task states need to set the corresponding email. The computer device can detect if the task status is configured with a mail template. Optionally, it is queried whether there is a mail mark corresponding to the task status; whether the mail template is configured according to whether the mail mark exists or not. If yes, it means that the task status is configured with a mail template. The mail mark indicates that a corresponding mail template is configured for the corresponding task status. The computer device may be configured to indicate whether the corresponding task status is configured with a template mail field, and set the field information indicating that the corresponding mail template exists or not, for example, a field value such as “yes”, “yes” or “0” may be set. Indicates that there is information corresponding to the mail template, and the field values such as "no", "no", or "1" indicate that there is or does not exist in the corresponding mail template, wherein when the field value is a field value indicating that the mail template exists , in other words, the computer device can receive the editing information of the mail template in the task state, and detect whether the editing user corresponding to the editing information has the editing authority, and if so, the mail according to the editing information. The template is edited, and the edited mail template is associated with the task status, wherein the edit information may be modification information and/or creation information of the mail template.
步骤S206,根据节点任务的任务信息和邮件模板生成待发送邮件。 Step S206, generating a to-be-sent mail according to the task information of the node task and the mail template.
计算机设备可获取工作流数据处于当前节点上的任务信息,并从该任务信息中提取与该任务状态相关的字段信息或任务文件,将该字段信息和/或任务文件加载至邮件模板中,生成待发送的邮件。其中,该相关的字段信息可包括任务的名称、任务时限、任务简介等其中的一种或多种。The computer device may obtain task information that the workflow data is on the current node, and extract field information or task files related to the task status from the task information, and load the field information and/or the task file into the mail template to generate The message to be sent. The related field information may include one or more of a task name, a task time limit, and a task profile.
步骤S208,将待发送邮件发送至与任务状态对应的用户终端。Step S208, the mail to be sent is sent to the user terminal corresponding to the task status.
该用户终端可为待发送邮件中的收件人对应的终端。计算机设备预设了与该任务状态对应的一个或多个收件人的信息。计算机设备可检测待发送邮件中是否包含收件人,若是,则可将待生成邮件发送至该收件人对应的用户终端。否则,计算机设备可查询与该任务状态对应的一个或多个收件人的信息,获取查询到的收件人的邮箱,将待生成邮件发送至查询到的收件人邮箱,从而实现将待发送邮件发送至该接收用户的用户终端。The user terminal may be a terminal corresponding to the recipient in the mail to be sent. The computer device presets information for one or more recipients corresponding to the task status. The computer device can detect whether the recipient is included in the to-be-sent email, and if yes, send the to-be-generated email to the user terminal corresponding to the recipient. Otherwise, the computer device can query the information of one or more recipients corresponding to the task status, obtain the mailbox of the queried recipient, and send the to-be-generated mail to the queried recipient mailbox, thereby implementing the pending The sending email is sent to the user terminal of the receiving user.
上述工作流系统中的邮件发送方法,通过获取工作流系统中,处于当前节点上的节点任务的任务状态;从预设的多个邮件模板中,获取与任务状态相匹配的邮件模板;根据节点任务的任务信息和邮件模板生成待发送邮件;将待发送邮件发送至与任务状态对应的用户终端,使得可针对每个节点中的任务状态来生成对应节点任务的邮件,避免了在工作流数据中专门配置相应的节点邮件,从而可降低工作流系统中的节点数量,降低工作流数据在节点中流转的复杂度。The method for sending a mail in the workflow system obtains a task state of a node task on the current node in the workflow system; and obtains an email template that matches the task status from the preset multiple email templates; The task information and the mail template of the task generate a mail to be sent; the mail to be sent is sent to the user terminal corresponding to the task state, so that the mail corresponding to the node task can be generated for the task status in each node, and the workflow data is avoided. The corresponding node mail is specially configured, which can reduce the number of nodes in the workflow system and reduce the complexity of workflow data flowing in the node.
在一个实施例中,步骤S204包括:查询与任务状态对应的所有邮件模板;从查询出的邮件模板中,获取与节点任务的任务类型相匹配的邮件模板。In an embodiment, step S204 includes: querying all mail templates corresponding to the task status; and obtaining, from the queried mail template, a mail template that matches the task type of the node task.
处于相同节点上的节点任务的任务类型不一定相同。工作流系统中可适用于处理多种类型的工作流数据,不同类型的工作流数据,在被处理过程中,可能流转至一个或者多个相同的节点。节点任务的任务类型为工作流数据所属的任务类型。即不同类型的工作流数据,流转至相同的节点时,对应节点任务的任务类型也不相同。计算机设备还进一步设置了不同任务类型与不同的邮件模板的对应关系,并建立了不同任务类型与邮件模板的模板标识之间的对应关系。 The task types of node tasks that are on the same node are not necessarily the same. The workflow system can be adapted to process multiple types of workflow data. Different types of workflow data may be transferred to one or more of the same nodes during processing. The task type of the node task is the task type to which the workflow data belongs. That is, different types of workflow data, when flowing to the same node, the task type of the corresponding node task is also different. The computer device further sets a correspondence between different task types and different mail templates, and establishes a correspondence between different task types and template identifiers of the mail templates.
计算机设备可首先查询与该任务状态对应的所有模板标识,从所查询的出的模板标识中,进一步查询与任务类型相匹配的模板标识,并获取该模板标识对应的邮件模板。The computer device may first query all the template identifiers corresponding to the task status, and further query the template identifier that matches the task type from the template identifier that is queried, and obtain the mail template corresponding to the template identifier.
举例来说,工作流系统中可适用于处理保险类的工作流数据,其系统中的工作流数据的类型包括养老险类型和分红险类型。工作流系统中存在工作流数据A和工作流数据B分别属于养老险类型和分红类型,该两份工作流数据分别流转至当前节点上,生成的对应节点任务A和节点任务B均处于相同待分配的任务状态。则计算机设备可首先查询与当前节点上,待分配状态对应的所有模板标识,并可从查询出的模板标识中,获取与养老险类型对应的模板标识A,获取模板标识A对应的模板邮件A,作为用于生成节点任务A的待发送邮件;并获取与分红险类型对应的模板标识B,获取模板标识B对应的模板邮件B,作为用于生成节点任务B的待发送邮件。For example, the workflow system can be applied to process workflow data of insurance, and the types of workflow data in the system include the type of pension insurance and the type of dividend insurance. In the workflow system, the workflow data A and the workflow data B belong to the pension insurance type and the dividend type respectively, and the two workflow data are respectively flowed to the current node, and the generated corresponding node task A and node task B are in the same waiting. The assigned task status. The computer device may first query all the template identifiers corresponding to the to-be-assigned state on the current node, and obtain the template identifier A corresponding to the pension insurance type from the template identifier that is obtained, and obtain the template email A corresponding to the template identifier A. As the to-be-sent mail for generating the node task A, the template ID B corresponding to the dividend type is obtained, and the template mail B corresponding to the template identifier B is obtained as the to-be-sent mail for generating the node task B.
通过进一步设置节点任务的任务类型,并获取与节点任务的任务类型相匹配的邮件模板,作为用于生成该节点任务的待发送邮件。使得可提高工作流数据中,对不同类型的工作流数据进行处理的通用性。By further setting the task type of the node task, and obtaining the mail template matching the task type of the node task, as the mail to be sent for generating the node task. This makes it possible to improve the versatility of processing different types of workflow data in workflow data.
在一个实施例中,步骤S204包括:根据节点任务的任务信息和邮件模板生成待发送邮件,包括:查询适用于处理节点任务的用户的用户数量;获取任务状态和用户数量相匹配的邮件模板。In an embodiment, step S204 includes: generating a to-be-sent mail according to the task information of the node task and the mail template, including: querying the number of users applicable to the user who processes the node task; and obtaining the mail template whose task status matches the number of users.
针对每个节点上的节点任务,计算机设备还预设了处于不同任务状态下来处理该节点任务的用户,该用户可包括一个或多个。适用于处理节点任务的用户的用户数量不同,则对应的邮件模板也不一定相同。计算机设备还设置了不同用户数量对应的模板标识。计算机设备可查询适用于处理节点任务的用户的用户数量,并查询适与该任务状态对应的所有模板标识,在查询出的模板标识中,确定适用于处理节点任务的用户的用户数量对应的模板标识,并获取该模板标识对应的模板邮件。在一个实施例中,该适用于处理节点任务的用户,可进一步根据该任务状态划分为适用于处理该节点任务,在不同任务状态下的用户。比如,对于处于同一节点下的节点任务,该节点任务在 处于待分配状态下的用户为用户A和用户B,处于审核状态下对应的用户为用户N。For the node task on each node, the computer device also presets a user who is in the different task state to process the node task, and the user may include one or more. If the number of users for users who process node tasks is different, the corresponding mail templates are not necessarily the same. The computer device also sets a template identifier corresponding to the number of different users. The computer device can query the number of users of the user that is suitable for processing the node task, and query all template identifiers corresponding to the task status, and determine the template corresponding to the number of users of the user who processes the node task in the template identifier that is queried. Identify and obtain the template message corresponding to the template ID. In one embodiment, the user applicable to the processing of the node task may be further divided into users suitable for processing the node task and in different task states according to the task state. For example, for a node task that is under the same node, the node task is The user in the state to be assigned is user A and user B, and the user in the audit state is user N.
通过进一步考虑适用于处理节点任务的用户的用户数量,可进一步选取邮件模板的灵活性。The flexibility of the mail template can be further selected by further considering the number of users of the users that are suitable for processing the node tasks.
在一个实施例中,步骤S206包括:获取与待生成邮件关联的历史邮件信息;根据节点任务的任务信息、历史邮件信息和邮件模板生成待发送邮件。In an embodiment, step S206 includes: acquiring historical mail information associated with the mail to be generated; and generating a mail to be sent according to the task information of the node task, the historical mail information, and the mail template.
计算机设备可进一步查询与待生成邮件关联的历史邮件信息,历史邮件信息包含通过该工作流数据所生成的历史邮件,包含工作流数据流转至当前节点以及当前节点之前的节点上,对应的节点任务产生的历史邮件The computer device may further query historical mail information associated with the to-be-generated mail, and the historical mail information includes historical mail generated by the workflow data, including the workflow data flow to the current node and the node before the current node, and the corresponding node task Generated historical mail
在一个实施例中,与待生成邮件关联的历史邮件信息,可包括处于当前节点上的节点任务产生的历史邮件,和/或包括当前节点的上游节点上的节点任务产生的历史邮件,和/或根据该工作流数据所产生的最近的一份历史邮件。计算机设备可获取该历史邮件信息,将该历史邮件信息加载到邮件模板中的正文中,根据该任务信息和邮件模板生成待发送邮件。In one embodiment, the historical mail information associated with the mail to be generated may include a history mail generated by a node task on the current node, and/or a history mail generated by a node task on the upstream node of the current node, and/or Or a recent historical message generated from the workflow data. The computer device can obtain the historical mail information, load the historical mail information into the body of the mail template, and generate a to-be-sent mail according to the task information and the mail template.
其中,相对于某一节点来说,位于其相邻的、在前的节点即为相对于该节点的上游节点,位于其相邻的、在后的节点即为相对于该节点的下游节点。对应的,相对于该上游节点而言,上述的某一节点即为该上游节点的下游节点。Wherein, relative to a certain node, the node adjacent to it is the upstream node relative to the node, and the node located adjacent to it is the downstream node relative to the node. Correspondingly, with respect to the upstream node, the above-mentioned certain node is the downstream node of the upstream node.
在一个实施例中,计算机设备可检测对当前节点或任务状态或邮件模板中的任意一种或多种,是否设置了需要加载历史邮件。若针对当前节点或任务状态设置了需要加载历史邮件,则可从历史邮件信息中选取最近生成一份历史邮件,加载至邮件模板中的对应位置处。若在邮件模板中标记了需要携带历史邮件信息,也可从历史邮件信息中选取最近生成一份历史邮件,加载至邮件模板中的对应位置处,比如加载至模板邮件的正文模板中。In one embodiment, the computer device can detect whether any one or more of the current node or task status or mail template is set, whether a history mail needs to be loaded. If the history mail needs to be loaded for the current node or task status, a historical mail may be generated from the historical mail information and loaded into the corresponding location in the mail template. If the mail template needs to carry the historical mail information, you can also select a historical mail from the historical mail information and load it into the corresponding location in the mail template, for example, into the body template of the template mail.
通过进一步获取历史邮件信息,可提高生成的邮件中携带的信息的丰富性,使邮件接收者可获取更多的信息,从而可提高对该节点任务的处理效率。By further obtaining the historical mail information, the richness of the information carried in the generated mail can be improved, and the mail recipient can obtain more information, thereby improving the processing efficiency of the task of the node.
在一个实施例中,如图3所示,步骤S206包括: In one embodiment, as shown in FIG. 3, step S206 includes:
步骤S302,从节点任务的任务信息中提取与任务状态对应的字段信息,将字段信息加载到邮件模板中的邮件标题和/或邮件正文中。Step S302: Extract field information corresponding to the task status from the task information of the node task, and load the field information into the mail header and/or the mail body in the mail template.
邮件模板中设置了用于填充任务信息中的相关字段信息,该需要填充的信息可位于邮件模板中的邮件标题和/或邮件正文中。计算机设备可针对获取的邮件模板,检测该模板的邮件标题和/或邮件正文的模板信息中,需要填充的字段信息的属性,并从该任务信息中提取对应属性相同的字段信息,将提取的字段信息填充至对应需要填充字段的位置处。The related information in the message information is set in the mail template, and the information to be filled can be located in the mail header and/or the mail body in the mail template. The computer device may detect, according to the obtained mail template, the attribute of the field information that needs to be filled in the template information of the template and/or the template information of the mail body, and extract field information corresponding to the same attribute from the task information, and extract the extracted The field information is populated to the location corresponding to the field to be filled.
其中,需要填充的字段信息可包括任务的名称、任务时限、任务简介、处理该任务的用户信息等其中的一种或多种。The field information that needs to be filled may include one or more of a task name, a task time limit, a task profile, and user information for processing the task.
步骤S304,根据节点任务和状态信息确定对应的收件人信息。Step S304, determining corresponding recipient information according to the node task and the status information.
计算机设备可查询与该状态信息对应的用户标识,获取每个查询出的用户标识对应的收件人信息。在一个实施例中,可进一步检测该节点任务所属的任务类型,从查询出的用户标识中筛选出与该任务类型对应的用户标识,获取筛选出的用户标识对应的收件人信息。其中,该收件人信息可为预设的该用户的邮箱。The computer device can query the user identifier corresponding to the status information, and obtain the recipient information corresponding to each queryed user identifier. In an embodiment, the task type to which the node task belongs may be further detected, and the user identifier corresponding to the task type is filtered out from the queried user identifier, and the recipient information corresponding to the filtered user identifier is obtained. The recipient information may be a preset email address of the user.
步骤S306,根据邮件标题、邮件正文和收件人信息生成待发送邮件。Step S306, generating a to-be-sent mail according to the mail header, the mail body, and the recipient information.
计算机设备可根据填充玩所需填充信息后的邮件标题和邮件正文,以及确定的收件人信息,生成待发送邮件。The computer device can generate a mail to be sent according to the mail header and the mail body after filling the required filling information, and the determined recipient information.
通过从节点任务的任务信息中提取与任务状态对应的字段信息,将字段信息加载到邮件模板中的邮件标题和/或邮件正文,并根据节点任务和任务状态来确定收件人,可提高邮件生成的效率。By extracting the field information corresponding to the task status from the task information of the node task, loading the field information into the mail header and/or the mail body in the mail template, and determining the recipient according to the node task and the task status, the mail can be improved. The efficiency of the generation.
在一个实施例中,在步骤S208之前,上述方法还包括:展示待发送邮件;接收对待发送邮件的修改信息,根据该修改信息对待发送邮件进行修改。步骤S208包括:将修改后的待发送邮件发送至与任务状态对应的用户终端。In an embodiment, before the step S208, the method further includes: displaying the to-be-sent mail; receiving the modification information of the mail to be sent, and modifying the mail to be sent according to the modification information. Step S208 includes: transmitting the modified to-be-sent email to the user terminal corresponding to the task state.
计算机设备还可在发送该邮件之前,展示所生成的待发送邮件,以供用户修改确认。计算机设备可接收对展示的邮件信息的修改信息,根据该修改信息对该邮件进行修改。进一步地,计算机设备可对生成的邮件中的关键信 息采取高亮或者其他引起注意的形式来显示,以使得用户可检测该邮件中包含的关联信息是否正确。该关键信息可为加载至邮件模板中的全部或部分字段信息。The computer device can also display the generated to-be-sent mail before the mail is sent for the user to modify the confirmation. The computer device can receive modification information of the displayed mail information, and modify the mail according to the modification information. Further, the computer device can respond to key messages in the generated mail The information is displayed in a highlighted or other form of attention so that the user can detect whether the associated information contained in the email is correct. This key information can be all or part of the field information loaded into the mail template.
计算机设备可接收对修改后的邮件的发送指令,根据该发送指令将修改后的邮件发送至用户终端。The computer device can receive a sending instruction for the modified mail, and send the modified mail to the user terminal according to the sending instruction.
通过进行对待发送邮件的展示,可使得邮件发送者对待发送邮件进行修改和确认,提高了邮件携带的信息的准确性。By displaying the mail to be sent, the mail sender can modify and confirm the mail to be sent, thereby improving the accuracy of the information carried by the mail.
在一个实施例中,如图4所示,提供了另一种工作流系统中的邮件发送方法,该方法包括:In an embodiment, as shown in FIG. 4, another method for sending a mail in a workflow system is provided, the method comprising:
步骤S402,获取工作流系统中,处于当前节点上的节点任务的任务状态。Step S402: Acquire a task state of a node task in the workflow system that is on the current node.
计算机设备可获取对工作流数据所产生的节点任务的处理结果,根据该处理结果确定是将该工作流数据流转至下一节点,还是更改在该节点上的节点任务的任务状态。其中,当流转至下一节点时,该下一节点即为当前节点,若保持在同一节点上时,则该节点即为当前节点。The computer device can obtain a processing result of the node task generated by the workflow data, and according to the processing result, determine whether to transfer the workflow data stream to the next node or change the task status of the node task on the node. Wherein, when the flow to the next node, the next node is the current node, and if it is kept on the same node, the node is the current node.
举例来说,若存在节点A,处于节点A上的节点任务A的任务状态包含待分配状态、待处理状态、处理完成状态。计算机设备可接收当对该节点任务A的处理结果,当根据该处理结果确定该节点任务A的状态为待处理状态时,可获取该节点任务A的待处理状态;当根据该节点任务A的处理结果,确定对应工作流数据被流转至节点B时,则产生节点B的节点任务B,并获取该节点任务B的节点状态。其中,该节点B即为当前节点,节点A即为节点B的上游节点。For example, if there is a node A, the task state of the node task A on the node A includes a to-be-allocated state, a pending state, and a processing completion state. The computer device can receive the processing result of the task A of the node, and when it is determined that the state of the task A of the node is the pending state according to the processing result, the pending state of the task A of the node can be obtained; when the task A according to the node is When the processing result determines that the corresponding workflow data is flowed to the node B, the node task B of the node B is generated, and the node state of the task B of the node is obtained. The node B is the current node, and the node A is the upstream node of the node B.
步骤S404,当对该任务状态配置了邮件模板时,从预设的多个邮件模板中,查询与任务状态对应的所有邮件模板。Step S404, when the mail template is configured for the task status, query all mail templates corresponding to the task status from the preset plurality of mail templates.
计算机设备可检测节点任务所处的当前任务状态是否被设置了邮件标记,若是,则判定对该任务状态配置了邮件模板。任务状态可配置多个邮件模板,计算机设备可预先将该配置的所有邮件模板的邮件标识与该任务状态之间建立对应关系,通过该对应关系,查询到与该任务状态对应的所有模板 标识。The computer device can detect whether the current task state in which the node task is located is set to a mail mark, and if so, determine that a mail template is configured for the task status. The task status can be configured with multiple mail templates, and the computer device can pre-configure the correspondence between the mail identifiers of all the configured mail templates and the task status, and query all templates corresponding to the task status through the corresponding relationship. Logo.
步骤S406,查询适用于处理节点任务的用户的用户数量。Step S406, querying the number of users applicable to the user who processes the node task.
计算机设备还预设了用于处理处于当前任务状态的节点任务的用户,该用户可包括一个或多个。且节点任务的不同任务类型对应的用户也不一定相同,任务类型可根据工作流数据所确定。针对每种任务类型,计算机预先建立了该任务状态与合适用户的用户标识之间的对应关系。通过该任务类型和对应关系,可查询出适用于处理该节点任务的用户标识,计算查询出的所有用户标识的数量。The computer device also presets a user for processing a node task in a current task state, which may include one or more. The users corresponding to different task types of the node task are not necessarily the same, and the task type can be determined according to the workflow data. For each type of task, the computer pre-establishes the correspondence between the task status and the user ID of the appropriate user. Through the task type and the corresponding relationship, the user ID applicable to the task of the node can be queried, and the number of all user IDs queried is calculated.
步骤S408,从查询出的邮件模板中,获取与节点任务的任务类型和用户数量相匹配的邮件模板。Step S408: Obtain a mail template that matches the task type and the number of users of the node task from the queried mail template.
计算机设备可根据查询出的邮件模板中,选取与该任务类型和用户数量相匹配的邮件模板。The computer device can select a mail template that matches the task type and the number of users according to the queried mail template.
举例来说,当任务状态为待分配状态、且对应的用户数量为一个时,可获取与用户标识的数量为一个的状态下,与任务状态和用户数量相匹配的邮件模板。其中该邮件模板可为表示将节点任务分配至该一个用户进行处理的邮件模板。而当用户数量为多个时,则获取的邮件模板可为表示有该多个用户自行选择是否接受处理该节点任务的邮件模板。For example, when the task status is the status to be assigned and the corresponding number of users is one, the mail template matching the task status and the number of users can be obtained in a state in which the number of user identifiers is one. The mail template may be a mail template indicating that the node task is assigned to the one user for processing. When the number of users is multiple, the obtained mail template may be a mail template indicating that the plurality of users select whether to accept the task of processing the node.
步骤S410,根据节点任务的任务信息和邮件模板生成待发送邮件。Step S410, generating a to-be-sent mail according to the task information of the node task and the mail template.
计算机设备可从节点任务的任务信息中提取与任务状态对应的字段信息,将字段信息加载到邮件模板中的邮件标题和/或邮件正文中;根据节点任务和状态信息确定对应的收件人信息;根据邮件标题、邮件正文和收件人信息生成待发送邮件。The computer device may extract field information corresponding to the task status from the task information of the node task, load the field information into the mail header and/or the mail body in the mail template, and determine the corresponding recipient information according to the node task and the status information. ; Generate a message to be sent based on the message header, message body, and recipient information.
在一个实施例中,计算机设备还可查询邮件模板中是否配置了需要加载任务文件,若是,则可获取与该节点任务处于当前的任务状态关联的任务文件,将该任务文件加载至邮件模板中,作为待发送邮件的附件信息。In an embodiment, the computer device may further query whether the task file needs to be loaded in the mail template, and if yes, obtain a task file associated with the node task in the current task state, and load the task file into the mail template. , as attachment information of the mail to be sent.
举例来说,获取的邮件模板中的邮件正文包含的信息为:“XX产品XX帐户开户资料准备人员为XX,有问题请及时联系。”,里面的“XX产品” 可根据任务信息中的产品名称来确定。For example, the message body in the obtained mail template contains: "XX product XX account opening information preparation personnel is XX, please contact us if you have any questions.", the "XX product" inside It can be determined based on the product name in the task information.
在一个实施例中,计算机设备还可统计与该节点任务关联的历史邮件的邮件数量,并将该邮件数量信息也加载至邮件模板中,比如可加载在邮件的标题上,使生成的待发送邮件中,携带针对该节点任务所发送的邮件的次数信息。In one embodiment, the computer device may also count the number of messages of the historical mail associated with the node task, and load the mail quantity information into the mail template, for example, may be loaded on the header of the mail, so that the generated to be sent The message carries the number of times the message was sent for the task of the node.
步骤S412,将待发送邮件发送至与任务状态对应的用户终端。Step S412, the mail to be sent is sent to the user terminal corresponding to the task state.
该用户终端可为查询出的用户标识对应的用户终端。同样地,用户终端也可包括一个或多个。The user terminal may be a user terminal corresponding to the queried user identifier. Likewise, the user terminal may also include one or more.
上述工作流系统中的邮件发送方法,通过设置节点任务的任务类型,并设置不同的任务类型以及用户数量对应的邮件模板,使得生成的邮件所携带的信息更加丰富,也提高了整个工作流中对节点任务的处理效率。The mail sending method in the above workflow system, by setting the task type of the node task, and setting different task types and email templates corresponding to the number of users, makes the generated mail carry more information and improves the entire workflow. The efficiency of processing node tasks.
在一个实施例中,步骤S406包括:获取与任务状态相匹配的用户调度信息,查询用户调度信息中每个可分配用户的用户数量,该用户数量即为适用于处理节点任务的用户的用户数量。In an embodiment, step S406 includes: acquiring user scheduling information that matches the task status, and querying the number of users of each assignable user in the user scheduling information, where the number of users is the number of users applicable to the user who processes the node task. .
用户调度信息是指反映多个用户的任务分配状况的信息,该用户为适用于处理处于当前任务状态的节点任务的用户。该用户调度信息中包含了多个用户的任务分配信息,如包括每个用户的用户信息以及对应用户的任务分配数量、每个分配任务的任务状态以及任务信息等其中的一种或多种。用户信息包含用户的姓名、联系方式等,还包含用于唯一标识用户信息的用户标识。不同的用户调度信息中包含的用户标识不同,相同的用户调度信息在不同周期下包含的用户标识也不一定相同。The user scheduling information refers to information reflecting a task assignment status of a plurality of users, and the user is a user suitable for processing a node task in a current task state. The user scheduling information includes task allocation information of a plurality of users, such as one or more of user information including each user, a number of task assignments of the corresponding user, a task status of each assigned task, and task information. The user information includes the user's name, contact information, and the like, and also includes a user identifier for uniquely identifying the user information. Different user scheduling information includes different user identifiers, and the same user scheduling information does not necessarily have the same user identifier in different periods.
在一个实施例中,可预先提取处于相同的部门、团队,和/或被设置处理的任务类型的用户的用户标识,根据提取的用户标识对应的用户信息以及任务分配信息生成对应的用户调度信息。与任务信息相匹配的用户调度信息中包含表示适用于处理该待分配任务的用户信息。In an embodiment, the user identifier of the user in the same department, the team, and/or the task type that is set to be processed may be extracted in advance, and the corresponding user scheduling information is generated according to the user information corresponding to the extracted user identifier and the task allocation information. . The user scheduling information matching the task information includes user information indicating that the task to be allocated is processed.
计算机设备预先记录了每个用户的工作时间安排信息,根据该工作时间安排信息设置了对应用户在不同时间下是否可被分配。计算机设备可检测每 个工作时间安排信息中是否包含当前系统时间,若是,则判定该工作时间安排信息对应的用户为可分配用户。The computer device pre-records the work schedule information of each user, and according to the work schedule information, sets whether the corresponding user can be assigned at different times. Computer equipment can detect every Whether the current system time is included in the work schedule information, and if so, the user corresponding to the work schedule information is determined to be an assignable user.
在一个实施例中,计算机设备根据工作时间安排信息,将处于对应工作时间安排信息的用户标识设置了可分配标记,处于对应非工作时间安排信息的用户标识,则取消可分配标记。计算机设备可根据当前系统时间和每个用户的工作时间安排信息,实时调整对应用户标识是否被设置可分配标记。In one embodiment, the computer device sets the user identifier in the corresponding work schedule information to the assignable flag according to the work schedule information, and is in the user identifier corresponding to the non-work schedule information, and then cancels the assignable marker. The computer device can adjust the corresponding user identifier according to the current system time and each user's working time to adjust whether the corresponding user identifier is set.
计算机设备可检测用户调度信息中,每个用户标识是否设置了可分配标记,若是,则判定对应用户为可分配用户,并统计可分配用户的用户数量。比如,存在某一用户A的工作时间安排信息仅为每周一或每周三进行工作。则在当前系统时间处于周一或周三时,对该用户A的用户标识A设置可分配标记,当处于周二时,则取消对用户标识A设置的可分配标记。通过检测用户调度信息中,每个用户标识是否设置了可分配标记,识别对应用户是否为可分配用户。The computer device can detect whether the user identifier is set in the user scheduling information, and if yes, determine that the corresponding user is an assignable user, and count the number of users that can be assigned. For example, there is a user A's work schedule information only work every Monday or Wednesday. Then, when the current system time is on Monday or Wednesday, the user identifier A of the user A is set to be assignable flag, and when it is on Tuesday, the assignable flag set for the user identifier A is canceled. By detecting whether the user identifier is set in each of the user identifiers, it is identified whether the corresponding user is an assignable user.
通过进一步考虑用户是否为可分配用户,可进一步提高了对模板邮件选择的灵活性。By further considering whether the user is an assignable user, the flexibility of template mail selection can be further improved.
在一个实施例中,如图5所示,提供了一种工作流系统中的邮件发送装置,该装置包括:In one embodiment, as shown in FIG. 5, a mail sending apparatus in a workflow system is provided, the apparatus comprising:
任务信息获取模块502,用于获取工作流系统中,处于当前节点上的节点任务的任务状态。The task information obtaining module 502 is configured to acquire a task state of a node task on the current node in the workflow system.
邮件模板获取模块504,用于从预设的多个邮件模板中,获取与任务状态相匹配的邮件模板。The mail template obtaining module 504 is configured to obtain, from the preset plurality of mail templates, a mail template that matches the task status.
邮件生成模块506,用于根据节点任务的任务信息和邮件模板生成待发送邮件。The mail generating module 506 is configured to generate a mail to be sent according to the task information of the node task and the mail template.
邮件发送模块508,用于将待发送邮件发送至与任务状态对应的用户终端。The mail sending module 508 is configured to send the to-be-sent mail to the user terminal corresponding to the task status.
在一个实施例中,邮件模板获取模块504还用于检测对任务状态是否配置了邮件模板,若是,则获取与任务状态相匹配的邮件模板。 In an embodiment, the mail template obtaining module 504 is further configured to detect whether a mail template is configured for the task status, and if yes, obtain a mail template that matches the task status.
在一个实施例中,邮件模板获取模块504还用于查询是否存在与任务状态对应的邮件标记;根据是否存在邮件标记判断是否配置了邮件模板。In an embodiment, the mail template obtaining module 504 is further configured to query whether there is a mail mark corresponding to the task status, and determine whether the mail template is configured according to whether the mail mark exists.
在一个实施例中,邮件模板获取模块504还用于查询与任务状态对应的所有邮件模板;从查询出的邮件模板中,获取与节点任务的任务类型相匹配的邮件模板。In an embodiment, the mail template obtaining module 504 is further configured to query all mail templates corresponding to the task status, and obtain a mail template that matches the task type of the node task from the queried mail template.
在一个实施例中,邮件模板获取模块504还用于查询适用于处理节点任务的用户的用户数量;获取任务状态和用户数量相匹配的邮件模板。In one embodiment, the mail template obtaining module 504 is further configured to query the number of users of the user that is suitable for processing the node task; and obtain the mail template that matches the task status and the number of users.
在一个实施例中,邮件生成模块506还用于获取与待生成邮件关联的历史邮件信息;根据节点任务的任务信息、历史邮件信息和邮件模板生成待发送邮件。In an embodiment, the mail generating module 506 is further configured to acquire historical mail information associated with the mail to be generated; and generate a mail to be sent according to the task information of the node task, the historical mail information, and the mail template.
在一个实施例中,邮件生成模块506还用于从节点任务的任务信息中提取与任务状态对应的字段信息,将字段信息加载到邮件模板中的邮件标题和/或邮件正文中;根据节点任务和状态信息确定对应的收件人信息;根据邮件标题、邮件正文和收件人信息生成待发送邮件。In an embodiment, the mail generating module 506 is further configured to extract field information corresponding to the task status from the task information of the node task, and load the field information into the mail header and/or the mail body in the mail template; The status information is used to determine the corresponding recipient information; the mail to be sent is generated according to the mail header, the mail body, and the recipient information.
在一个实施例中,邮件生成模块506还用于展示待发送邮件;接收对待发送邮件的修改信息,根据该修改信息对待发送邮件进行修改。In an embodiment, the mail generating module 506 is further configured to display the mail to be sent; receive the modified information of the mail to be sent, and modify the mail to be sent according to the modified information.
邮件发送模块508还用于将修改后的待发送邮件发送至与任务状态对应的用户终端。The mail sending module 508 is further configured to send the modified mail to be sent to the user terminal corresponding to the task status.
上述装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。该处理器可以为中央处理单元(CPU)、微处理器、单片机等。Each of the above-described devices may be implemented in whole or in part by software, hardware, and combinations thereof. Each of the above modules may be embedded in or independent of the processor in the computer device, or may be stored in a memory in the computer device in a software form, so that the processor invokes the operations corresponding to the above modules. The processor can be a central processing unit (CPU), a microprocessor, a microcontroller, or the like.
在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机可读指令,计算机可读指令被处理器执行时实现上述实施例中任一项工作流系统中的邮件发送方法的步骤。In one embodiment, there is provided a computer readable storage medium having computer readable instructions stored thereon, the computer readable instructions being executed by a processor to implement a mail transmission method in any one of the above embodiments A step of.
在一个实施例中,该计算机可读指令被处理器执行时实现以下步骤:获 取工作流系统中,处于当前节点上的节点任务的任务状态;从预设的多个邮件模板中,获取与任务状态相匹配的邮件模板;根据节点任务的任务信息和邮件模板生成待发送邮件;将待发送邮件发送至与任务状态对应的用户终端。In one embodiment, the computer readable instructions are executed by the processor to implement the following steps: Obtaining the task status of the node task on the current node in the workflow system; obtaining the mail template matching the task status from the preset multiple mail templates; generating the to-be-sent mail according to the task information and the mail template of the node task Sending the to-be-sent email to the user terminal corresponding to the task status.
在一个实施例中,该计算机可读指令被处理器执行时还实现以下步骤:检测对任务状态是否配置了邮件模板,若是,则获取与任务状态相匹配的邮件模板。In one embodiment, the computer readable instructions are further executed by the processor to detect whether a mail template is configured for the task status, and if so, obtain a mail template that matches the status of the task.
在一个实施例中,该计算机可读指令被处理器执行时还实现以下步骤:查询是否存在与任务状态对应的邮件标记;根据是否存在邮件标记判断是否配置了邮件模板。In one embodiment, the computer readable instructions are further executed by the processor to: query whether there is a mail mark corresponding to the task status; and determine whether the mail template is configured according to whether the mail mark exists.
在一个实施例中,该计算机可读指令被处理器执行时还实现以下步骤:查询与任务状态对应的所有邮件模板;从查询出的邮件模板中,获取与节点任务的任务类型相匹配的邮件模板。In one embodiment, the computer readable instructions are further executed by the processor to: query all mail templates corresponding to the task status; and obtain, from the queried mail template, the mails that match the task type of the node task template.
在一个实施例中,该计算机可读指令被处理器执行时还实现以下步骤:查询适用于处理节点任务的用户的用户数量;获取任务状态和用户数量相匹配的邮件模板。In one embodiment, the computer readable instructions, when executed by the processor, further implement the steps of querying a number of users of a user suitable for processing a node task; obtaining a mail template that matches the task status and the number of users.
在一个实施例中,该计算机可读指令被处理器执行时还实现以下步骤:获取与待生成邮件关联的历史邮件信息;根据节点任务的任务信息、历史邮件信息和邮件模板生成待发送邮件。In one embodiment, the computer readable instructions are further executed by the processor to: obtain historical mail information associated with the mail to be generated; and generate a mail to be sent according to the task information of the node task, the historical mail information, and the mail template.
在一个实施例中,该计算机可读指令被处理器执行时还实现以下步骤:从节点任务的任务信息中提取与任务状态对应的字段信息,将字段信息加载到邮件模板中的邮件标题和/或邮件正文中;根据节点任务和状态信息确定对应的收件人信息;根据邮件标题、邮件正文和收件人信息生成待发送邮件。In one embodiment, the computer readable instructions, when executed by the processor, further implement the steps of: extracting field information corresponding to the task status from the task information of the node task, loading the field information into the mail header in the mail template and/or Or in the body of the mail; determine corresponding recipient information according to the node task and status information; generate a to-be-sent mail according to the mail header, the mail body, and the recipient information.
在一个实施例中,该计算机可读指令被处理器执行时还实现以下步骤:展示待发送邮件;接收对待发送邮件的修改信息,根据该修改信息对待发送邮件进行修改;将修改后的待发送邮件发送至与任务状态对应的用户终端。In one embodiment, the computer readable instructions are further executed by the processor to: display the mail to be sent; receive the modified information of the mail to be sent, modify the mail to be sent according to the modified information; and modify the to-be-sent The mail is sent to the user terminal corresponding to the task status.
在一个实施例中,提供了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机可读指令,处理器执行计算机可读 指令时实现上述实施例中任一项工作流系统中的邮件发送方法的步骤。In one embodiment, a computer apparatus is provided comprising a memory, a processor, and computer readable instructions stored on the memory and executable on the processor, the processor executing the computer readable The steps of the mail sending method in the workflow system of any of the above embodiments are implemented when instructed.
在一个实施例中,该计算机设备可为服务器或者终端等其中的任意一种。终端包括但不限于手机、平板电脑、便携式笔记本或智能穿戴设备等。如图6所示,为一个实施例中计算机设备的内部结构示意图。该计算机设备包括通过系统总线连接的处理器、存储器和网络接口。其中,该计算机设备的处理器用于提供计算和控制能力,支撑整个计算机设备的运行。存储器用于存储数据、指令代码等,存储器上存储至少一个计算机可读指令,该计算机可读指令可被处理器执行,以实现本申请实施例中提供的适用于计算机设备的工作流系统中的邮件发送方法。存储器可包括磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等非易失性存储介质等。例如,在一个实施例中,存储器包括非易失性存储介质及内存储器。非易失性存储介质存储有操作系统、数据库和计算机可读指令。该数据库中存储有用于实现以上各个实施例所提供的一种工作流系统中的邮件发送方法相关的数据,比如可存储相应的用户信息和工作流数据、节点任务的任务信息等。该计算机可读指令可被处理器所执行,以用于实现以上各个实施例所提供的一种工作流系统中的邮件发送方法。计算机设备中的内存储器为非易失性存储介质中的操作系统、数据库和计算机可读指令提供高速缓存的运行环境。网络接口可以是以太网卡或无线网卡等,用于与外部的终端或服务器进行通信。本领域技术人员可以理解,图6中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。比如该计算机设备还可包括显示屏,该显示屏可用于显示相应的任务分配信息和/或授权信息等。显示屏可以是触摸屏,比如为电容屏或电子屏,可通过接收作用于该触摸屏上显示的控件的点击操作,生成相应的指令。In one embodiment, the computer device can be any of a server or a terminal. Terminals include, but are not limited to, mobile phones, tablets, portable notebooks, or smart wearable devices. As shown in FIG. 6, it is a schematic diagram of the internal structure of a computer device in one embodiment. The computer device includes a processor, memory, and network interface coupled by a system bus. The processor of the computer device is used to provide computing and control capabilities to support the operation of the entire computer device. The memory is used to store data, instruction code, etc., and the memory stores at least one computer readable instruction executable by the processor to implement the workflow system suitable for the computer device provided in the embodiments of the present application. How to send mail. The memory may include a non-volatile storage medium such as a magnetic disk, an optical disk, a read-only memory (ROM), or the like. For example, in one embodiment, the memory includes a non-volatile storage medium and an internal memory. Non-volatile storage media stores operating systems, databases, and computer readable instructions. The database stores data related to the mail sending method in the workflow system provided by the foregoing various embodiments, such as storing corresponding user information and workflow data, task information of the node task, and the like. The computer readable instructions are executable by a processor for implementing a mail delivery method in a workflow system provided by the various embodiments above. The internal memory in the computer device provides a cached operating environment for operating systems, databases, and computer readable instructions in a non-volatile storage medium. The network interface may be an Ethernet card or a wireless network card or the like for communicating with an external terminal or server. It will be understood by those skilled in the art that the structure shown in FIG. 6 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation of the computer device to which the solution of the present application is applied. The specific computer device may It includes more or fewer components than those shown in the figures, or some components are combined, or have different component arrangements. For example, the computer device can also include a display screen that can be used to display corresponding task assignment information and/or authorization information and the like. The display screen can be a touch screen, such as a capacitive screen or an electronic screen, and a corresponding command can be generated by receiving a click operation of a control applied to the touch screen.
在一个实施例中,该处理器执行计算机可读指令时实现以下步骤:获取工作流系统中,处于当前节点上的节点任务的任务状态;从预设的多个邮件 模板中,获取与任务状态相匹配的邮件模板;根据节点任务的任务信息和邮件模板生成待发送邮件;将待发送邮件发送至与任务状态对应的用户终端。In one embodiment, the processor executes the computer readable instructions to: obtain a task state of a node task on the current node in the workflow system; from a preset plurality of messages In the template, the mail template matching the task status is obtained; the mail to be sent is generated according to the task information and the mail template of the node task; and the mail to be sent is sent to the user terminal corresponding to the task status.
在一个实施例中,该处理器执行计算机可读指令时还实现以下步骤:检测对任务状态是否配置了邮件模板,若是,则获取与任务状态相匹配的邮件模板。In one embodiment, the processor, when executing the computer readable instructions, further implements the steps of detecting whether a mail template is configured for the task status, and if so, obtaining a mail template that matches the status of the task.
在一个实施例中,该处理器执行计算机可读指令时还实现以下步骤:查询是否存在与任务状态对应的邮件标记;根据是否存在邮件标记判断是否配置了邮件模板。In one embodiment, when the processor executes the computer readable instructions, the following steps are further performed: querying whether there is a mail mark corresponding to the task status; determining whether the mail template is configured according to whether the mail mark exists.
在一个实施例中,该处理器执行计算机可读指令时还实现以下步骤:查询与任务状态对应的所有邮件模板;从查询出的邮件模板中,获取与节点任务的任务类型相匹配的邮件模板。In one embodiment, when the processor executes the computer readable instructions, the following steps are further performed: querying all mail templates corresponding to the task status; and obtaining a mail template matching the task type of the node task from the queried mail template .
在一个实施例中,该处理器执行计算机可读指令时还实现以下步骤:查询适用于处理节点任务的用户的用户数量;获取任务状态和用户数量相匹配的邮件模板。In one embodiment, the processor, when executing the computer readable instructions, further implements the steps of querying the number of users of the user appropriate for processing the node task; and obtaining a mail template that matches the task status and the number of users.
在一个实施例中,该处理器执行计算机可读指令时还实现以下步骤:获取与待生成邮件关联的历史邮件信息;根据节点任务的任务信息、历史邮件信息和邮件模板生成待发送邮件。In one embodiment, the processor, when executing the computer readable instructions, further implements the steps of: obtaining historical mail information associated with the mail to be generated; generating a mail to be sent according to the task information of the node task, the historical mail information, and the mail template.
在一个实施例中,该处理器执行计算机可读指令时还实现以下步骤:从节点任务的任务信息中提取与任务状态对应的字段信息,将字段信息加载到邮件模板中的邮件标题和/或邮件正文中;根据节点任务和状态信息确定对应的收件人信息;根据邮件标题、邮件正文和收件人信息生成待发送邮件。In one embodiment, the processor, when executing the computer readable instructions, further implements the steps of: extracting field information corresponding to the task status from the task information of the node task, loading the field information into the mail header in the mail template and/or In the body of the mail; determine the corresponding recipient information according to the node task and status information; generate the to-be-sent mail according to the mail header, the mail body and the recipient information.
在一个实施例中,该处理器执行计算机可读指令时还实现以下步骤:展示待发送邮件;接收对待发送邮件的修改信息,根据该修改信息对待发送邮件进行修改;将修改后的待发送邮件发送至与任务状态对应的用户终端。In one embodiment, when the processor executes the computer readable instructions, the following steps are further implemented: displaying the to-be-sent mail; receiving the modification information of the mail to be sent, modifying the mail to be sent according to the modification information; and modifying the to-be-sent mail Send to the user terminal corresponding to the task status.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成。该计算机可读指令可存储在存储器上,比如存储于一非易失性计算机可读取存储介质中。该 程序被执行时,可实现包括如上述各方法的实施例的流程。Those of ordinary skill in the art will appreciate that all or part of the process of implementing the above-described embodiments may be accomplished by computer readable instructions for instructing the associated hardware. The computer readable instructions can be stored on a memory, such as in a non-transitory computer readable storage medium. The When the program is executed, a flow including an embodiment of the methods as described above can be implemented.
本申请所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性存储器。合适的非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。Any reference to a memory, storage, database, or other medium used herein may include non-volatile memory. Suitable non-volatile memories can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
上述各实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments may be arbitrarily combined. For the sake of brevity of description, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, It should be considered as the scope of this manual.
上述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。 The above embodiments are merely illustrative of several embodiments of the present application, and the description thereof is more specific and detailed, but is not to be construed as limiting the scope of the invention. It should be noted that a number of variations and modifications may be made by those skilled in the art without departing from the spirit and scope of the present application. Therefore, the scope of the invention should be determined by the appended claims.

Claims (20)

  1. 一种工作流系统中的邮件发送方法,其特征在于,所述方法包括:A mail sending method in a workflow system, characterized in that the method comprises:
    获取工作流系统中,处于当前节点上的节点任务的任务状态;Obtaining the task status of the node task on the current node in the workflow system;
    从预设的多个邮件模板中,获取与所述任务状态相匹配的邮件模板;Obtaining a mail template matching the status of the task from a plurality of preset mail templates;
    根据所述节点任务的任务信息和邮件模板生成待发送邮件;及Generating an email to be sent according to task information and a mail template of the node task; and
    将所述待发送邮件发送至与所述任务状态对应的用户终端。Sending the to-be-sent mail to the user terminal corresponding to the task status.
  2. 根据权利要求1所述的方法,其特征在于,在所述获取与所述任务状态相匹配的邮件模板之前,还包括:The method according to claim 1, wherein before the obtaining the mail template matching the task status, the method further comprises:
    检测对所述任务状态是否配置了邮件模板,若是,则获取与所述任务状态相匹配的邮件模板。It is detected whether a mail template is configured for the task status, and if so, a mail template matching the task status is obtained.
  3. 根据权利要求2所述的方法,其特征在于,所述检测对所述任务状态是否配置了邮件模板,包括:The method according to claim 2, wherein the detecting whether the mail status is configured for the task status comprises:
    查询是否存在与所述任务状态对应的邮件标记;及Query whether there is a mail mark corresponding to the status of the task; and
    根据是否存在邮件标记判断是否配置了邮件模板。Determine whether a mail template is configured based on whether or not there is a mail mark.
  4. 根据权利要求1所述的方法,其特征在于,所述获取与所述任务状态相匹配的邮件模板,包括:The method according to claim 1, wherein the obtaining a mail template matching the status of the task comprises:
    查询适用于处理所述节点任务的用户的用户数量;及Querying the number of users applicable to the user who handles the node task; and
    获取所述任务状态和所述用户数量相匹配的邮件模板。Obtaining a mail template whose task status matches the number of users.
  5. 根据权利要求1所述的方法,其特征在于,所述根据所述节点任务的任务信息和邮件模板生成待发送邮件,包括:The method according to claim 1, wherein the generating the to-be-sent mail according to the task information and the mail template of the node task comprises:
    获取与待生成邮件关联的历史邮件信息;及Obtain historical email information associated with the message to be generated; and
    根据所述节点任务的任务信息、历史邮件信息和邮件模板生成待发送邮件。The to-be-sent mail is generated according to the task information, the historical mail information, and the mail template of the node task.
  6. 根据权利要求1所述的方法,其特征在于,所述根据所述节点任务的任务信息和邮件模板生成待发送邮件,包括:The method according to claim 1, wherein the generating the to-be-sent mail according to the task information and the mail template of the node task comprises:
    从所述节点任务的任务信息中提取与所述任务状态对应的字段信息,将所述字段信息加载到邮件模板中的邮件标题和/或邮件正文中; Extracting field information corresponding to the task status from the task information of the node task, and loading the field information into a mail header and/or a mail body in the mail template;
    根据所述节点任务和所述状态信息确定对应的收件人信息;及Determining corresponding recipient information according to the node task and the status information; and
    根据所述邮件标题、邮件正文和收件人信息生成待发送邮件。A mail to be sent is generated based on the mail header, the mail body, and the recipient information.
  7. 根据权利要求1所述的方法,其特征在于,在所述将所述待发送邮件发送至与所述任务状态对应的用户终端之前,还包括:The method according to claim 1, wherein before the sending the to-be-sent mail to the user terminal corresponding to the task status, the method further includes:
    展示所述待发送邮件;及Displaying the to-be-sent mail; and
    接收对所述待发送邮件的修改信息,根据该修改信息对所述待发送邮件进行修改;Receiving modification information about the to-be-sent mail, and modifying the to-be-sent mail according to the modification information;
    所述将所述待发送邮件发送至与所述任务状态对应的用户终端,包括:The sending the to-be-sent mail to the user terminal corresponding to the task status includes:
    将修改后的待发送邮件发送至与所述任务状态对应的用户终端。Sending the modified to-be-sent mail to the user terminal corresponding to the task status.
  8. 一种工作流系统中的邮件发送装置,其特征在于,所述装置包括:A mail sending device in a workflow system, characterized in that the device comprises:
    任务信息获取模块,用于获取工作流系统中,处于当前节点上的节点任务的任务状态;a task information obtaining module, configured to acquire a task state of a node task on the current node in the workflow system;
    邮件模板获取模块,用于从预设的多个邮件模板中,获取与所述任务状态相匹配的邮件模板;a mail template obtaining module, configured to obtain, from a preset plurality of mail templates, a mail template that matches a status of the task;
    邮件生成模块,用于根据所述节点任务的任务信息和邮件模板生成待发送邮件;及a mail generating module, configured to generate a to-be-sent mail according to task information and a mail template of the node task; and
    邮件发送模块,用于将所述待发送邮件发送至与所述任务状态对应的用户终端。And a mail sending module, configured to send the to-be-sent mail to the user terminal corresponding to the task status.
  9. 一个或多个存储有计算机可读指令的非易失性存储介质,所述计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行如下步骤:One or more non-volatile storage media storing computer readable instructions, when executed by one or more processors, cause one or more processors to perform the following steps:
    获取工作流系统中,处于当前节点上的节点任务的任务状态;Obtaining the task status of the node task on the current node in the workflow system;
    从预设的多个邮件模板中,获取与所述任务状态相匹配的邮件模板;Obtaining a mail template matching the status of the task from a plurality of preset mail templates;
    根据所述节点任务的任务信息和邮件模板生成待发送邮件;及Generating an email to be sent according to task information and a mail template of the node task; and
    将所述待发送邮件发送至与所述任务状态对应的用户终端。Sending the to-be-sent mail to the user terminal corresponding to the task status.
  10. 根据权利要求9所述的存储介质,其特征在于,所述计算机可读指令被一个或多个处理器执行时,还使得一个或多个处理器执行如下步骤:The storage medium of claim 9, wherein when the computer readable instructions are executed by one or more processors, the one or more processors further cause the following steps:
    检测对所述任务状态是否配置了邮件模板,若是,则获取与所述任务状 态相匹配的邮件模板。Detecting whether a mail template is configured for the task status, and if yes, acquiring the task status The matching message template.
  11. 根据权利要求10所述的存储介质,其特征在于,所述计算机可读指令被一个或多个处理器执行时,还使得一个或多个处理器执行如下步骤:The storage medium of claim 10, wherein when the computer readable instructions are executed by one or more processors, the one or more processors further cause the following steps:
    查询是否存在与所述任务状态对应的邮件标记;及Query whether there is a mail mark corresponding to the status of the task; and
    根据是否存在邮件标记判断是否配置了邮件模板。Determine whether a mail template is configured based on whether or not there is a mail mark.
  12. 根据权利要求9所述的存储介质,其特征在于,所述计算机可读指令被一个或多个处理器执行时,还使得一个或多个处理器执行如下步骤:The storage medium of claim 9, wherein when the computer readable instructions are executed by one or more processors, the one or more processors further cause the following steps:
    查询适用于处理所述节点任务的用户的用户数量;及Querying the number of users applicable to the user who handles the node task; and
    获取所述任务状态和所述用户数量相匹配的邮件模板。Obtaining a mail template whose task status matches the number of users.
  13. 根据权利要求9所述的存储介质,其特征在于,所述计算机可读指令被一个或多个处理器执行时,还使得一个或多个处理器执行如下步骤:The storage medium of claim 9, wherein when the computer readable instructions are executed by one or more processors, the one or more processors further cause the following steps:
    获取与待生成邮件关联的历史邮件信息;及Obtain historical email information associated with the message to be generated; and
    根据所述节点任务的任务信息、历史邮件信息和邮件模板生成待发送邮件。The to-be-sent mail is generated according to the task information, the historical mail information, and the mail template of the node task.
  14. 根据权利要求9所述的存储介质,其特征在于,所述计算机可读指令被一个或多个处理器执行时,还使得一个或多个处理器执行如下步骤:The storage medium of claim 9, wherein when the computer readable instructions are executed by one or more processors, the one or more processors further cause the following steps:
    从所述节点任务的任务信息中提取与所述任务状态对应的字段信息,将所述字段信息加载到邮件模板中的邮件标题和/或邮件正文中;Extracting field information corresponding to the task status from the task information of the node task, and loading the field information into a mail header and/or a mail body in the mail template;
    根据所述节点任务和所述状态信息确定对应的收件人信息;及Determining corresponding recipient information according to the node task and the status information; and
    根据所述邮件标题、邮件正文和收件人信息生成待发送邮件。A mail to be sent is generated based on the mail header, the mail body, and the recipient information.
  15. 一种计算机设备,包括存储器和处理器,所述存储器中存储有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述处理器执行如下步骤:A computer device comprising a memory and a processor, the memory storing computer readable instructions, the computer readable instructions being executed by the processor such that the processor performs the following steps:
    获取工作流系统中,处于当前节点上的节点任务的任务状态;Obtaining the task status of the node task on the current node in the workflow system;
    从预设的多个邮件模板中,获取与所述任务状态相匹配的邮件模板;Obtaining a mail template matching the status of the task from a plurality of preset mail templates;
    根据所述节点任务的任务信息和邮件模板生成待发送邮件;及Generating an email to be sent according to task information and a mail template of the node task; and
    将所述待发送邮件发送至与所述任务状态对应的用户终端。 Sending the to-be-sent mail to the user terminal corresponding to the task status.
  16. 根据权利要求15所述的计算机设备,其特征在于,所述计算机可读指令被所述处理器执行时,还使得所述处理器执行如下步骤:The computer apparatus according to claim 15 wherein said computer readable instructions, when executed by said processor, further cause said processor to perform the following steps:
    检测对所述任务状态是否配置了邮件模板,若是,则获取与所述任务状态相匹配的邮件模板。It is detected whether a mail template is configured for the task status, and if so, a mail template matching the task status is obtained.
  17. 根据权利要求16所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时,还使得所述处理器执行如下步骤:A storage medium according to claim 16 wherein said computer readable instructions, when executed by said processor, further cause said processor to perform the following steps:
    查询是否存在与所述任务状态对应的邮件标记;及Query whether there is a mail mark corresponding to the status of the task; and
    根据是否存在邮件标记判断是否配置了邮件模板。Determine whether a mail template is configured based on whether or not there is a mail mark.
  18. 根据权利要求15所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时,还使得所述处理器执行如下步骤:A storage medium according to claim 15 wherein said computer readable instructions, when executed by said processor, further cause said processor to perform the following steps:
    查询适用于处理所述节点任务的用户的用户数量;及Querying the number of users applicable to the user who handles the node task; and
    获取所述任务状态和所述用户数量相匹配的邮件模板。Obtaining a mail template whose task status matches the number of users.
  19. 根据权利要求15所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时,还使得所述处理器执行如下步骤:A storage medium according to claim 15 wherein said computer readable instructions, when executed by said processor, further cause said processor to perform the following steps:
    获取与待生成邮件关联的历史邮件信息;及Obtain historical email information associated with the message to be generated; and
    根据所述节点任务的任务信息、历史邮件信息和邮件模板生成待发送邮件。The to-be-sent mail is generated according to the task information, the historical mail information, and the mail template of the node task.
  20. 根据权利要求15所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时,还使得所述处理器执行如下步骤:A storage medium according to claim 15 wherein said computer readable instructions, when executed by said processor, further cause said processor to perform the following steps:
    从所述节点任务的任务信息中提取与所述任务状态对应的字段信息,将所述字段信息加载到邮件模板中的邮件标题和/或邮件正文中;Extracting field information corresponding to the task status from the task information of the node task, and loading the field information into a mail header and/or a mail body in the mail template;
    根据所述节点任务和所述状态信息确定对应的收件人信息;及Determining corresponding recipient information according to the node task and the status information; and
    根据所述邮件标题、邮件正文和收件人信息生成待发送邮件。 A mail to be sent is generated based on the mail header, the mail body, and the recipient information.
PCT/CN2017/112523 2017-10-24 2017-11-23 Email sending method and device in workflow system and computer device WO2019080231A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710999858.7A CN107730210A (en) 2017-10-24 2017-10-24 E-mail sending method, device and computer equipment in Workflow system
CN201710999858.7 2017-10-24

Publications (1)

Publication Number Publication Date
WO2019080231A1 true WO2019080231A1 (en) 2019-05-02

Family

ID=61213421

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/112523 WO2019080231A1 (en) 2017-10-24 2017-11-23 Email sending method and device in workflow system and computer device

Country Status (2)

Country Link
CN (1) CN107730210A (en)
WO (1) WO2019080231A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108830555A (en) * 2018-05-29 2018-11-16 平安科技(深圳)有限公司 Mail configuration method, device, computer equipment and storage medium
CN109146431A (en) * 2018-09-18 2019-01-04 平安科技(深圳)有限公司 Project task management method, device, computer equipment and storage medium
CN109447472B (en) * 2018-10-30 2023-11-28 平安科技(深圳)有限公司 Performance task data processing method and device, computer equipment and storage medium
CN109816218A (en) * 2019-01-04 2019-05-28 深圳壹账通智能科技有限公司 Management of enterprise operation method, apparatus, computer equipment and storage medium
CN110351182B (en) * 2019-05-31 2022-06-17 平安科技(深圳)有限公司 Mail sending method, device, equipment and computer readable storage medium
CN111641547B (en) * 2020-04-27 2022-11-29 完美世界控股集团有限公司 Mail processing method, client, server and system
CN115037715A (en) * 2022-06-22 2022-09-09 中国平安财产保险股份有限公司 Task flow method and device based on mail filing, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577973A (en) * 2013-11-01 2014-02-12 金蝶软件(中国)有限公司 Method and device for processing workflow task
US20160234139A1 (en) * 2015-02-09 2016-08-11 Angela Christine Botner Classification Based Email Construction, Work Flow, and Dashboard Rendering
CN107122955A (en) * 2017-04-27 2017-09-01 北京中云微迅信息技术有限公司 Method for approving workflow and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8583466B2 (en) * 2005-08-09 2013-11-12 Oracle International Corporation System and method for routing workflow items based on workflow templates in a call center
JP5167662B2 (en) * 2007-03-19 2013-03-21 株式会社リコー Workflow management system
CN105160467A (en) * 2015-08-26 2015-12-16 长安马自达汽车有限公司 Engineering change control management system and method therefor
CN106933862B (en) * 2015-12-30 2020-02-04 北京神州泰岳软件股份有限公司 Method and device for generating mail report

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577973A (en) * 2013-11-01 2014-02-12 金蝶软件(中国)有限公司 Method and device for processing workflow task
US20160234139A1 (en) * 2015-02-09 2016-08-11 Angela Christine Botner Classification Based Email Construction, Work Flow, and Dashboard Rendering
CN107122955A (en) * 2017-04-27 2017-09-01 北京中云微迅信息技术有限公司 Method for approving workflow and system

Also Published As

Publication number Publication date
CN107730210A (en) 2018-02-23

Similar Documents

Publication Publication Date Title
WO2019080231A1 (en) Email sending method and device in workflow system and computer device
US20230370415A1 (en) Systems and methods for converting emails to chat conversations
CN108259553A (en) The sending method and terminal device of business mail
CN104270528B (en) Information group sending system and method
US8019821B2 (en) Method for creating adaptive distributions
CN109032663A (en) Generation method, device, computer equipment and the storage medium of interface document
US20130007139A1 (en) Logical thread management through email infrastructure
US11706175B2 (en) Electronic mail delivery negotiation and rejection using sender specified acceptance criteria values
US20100250690A1 (en) Handling meeting invitations and calendar system
US20170103132A1 (en) Identifying search results from local and remote search of communications in parallel
CN110738038A (en) Contract text generation method, device, equipment and computer readable storage medium
US20220029841A1 (en) Group management in a messaging service
WO2019227719A1 (en) Email configuration method, device, computer apparatus, and storage medium
US10402381B2 (en) Determine confidence of mail archive ownership from senders in “sent items” folder
US10623356B2 (en) System and method for processing incoming emails
US11290409B2 (en) User device messaging application for interacting with a messaging service
WO2019070411A1 (en) Automatically maintaining a social media event database
CN105610697A (en) Mail management method and system and mail synchronization device
CN111641547A (en) Mail processing method, client, server and system
US20170147962A1 (en) Method and system for assigning service requests
WO2016075707A1 (en) System and method to automatically manage email communication
US20150129654A1 (en) Notification System Based on Intelligent Mail Barcodes
US11349800B2 (en) Integration of an email, service and a messaging service
CN116235483A (en) Messaging service
CN104243654B (en) Information groupsend system and information groupsend method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17929699

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 21/09/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17929699

Country of ref document: EP

Kind code of ref document: A1