WO2019144459A1 - 任务流转控制方法、装置、设备及计算机可读存储介质 - Google Patents

任务流转控制方法、装置、设备及计算机可读存储介质 Download PDF

Info

Publication number
WO2019144459A1
WO2019144459A1 PCT/CN2018/077129 CN2018077129W WO2019144459A1 WO 2019144459 A1 WO2019144459 A1 WO 2019144459A1 CN 2018077129 W CN2018077129 W CN 2018077129W WO 2019144459 A1 WO2019144459 A1 WO 2019144459A1
Authority
WO
WIPO (PCT)
Prior art keywords
event
task
node
flow
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2018/077129
Other languages
English (en)
French (fr)
Inventor
孙成
龙觉刚
叶俊锋
赖云辉
罗先贤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Publication of WO2019144459A1 publication Critical patent/WO2019144459A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues

Definitions

  • the present application provides a task flow control method, apparatus, device, and computer readable storage medium, which are intended to improve the efficiency of task flow.
  • the present application provides a task flow control method, including: acquiring an event queue corresponding to the task, the event queue including a task event and an event node located after each task event; detecting the task event Controlling the flow of the task to the corresponding event node according to the event state; acquiring a task flow policy corresponding to the event node; determining, according to the task flow policy, the next event that the task is about to flow; The task flows to the next event.
  • a task flow control apparatus including:
  • a first acquiring unit configured to acquire an event queue corresponding to the task, where the event queue includes a task event and an event node located after each task event;
  • a first control unit configured to control, according to the event state, the task flow to reach a corresponding event node
  • a second acquiring unit configured to acquire a task flow policy corresponding to the event node
  • a first determining unit configured to determine, according to the task flow policy, a next event that the task is about to flow
  • a second control unit configured to control the task flow to reach the next event.
  • the present application further provides a computer device comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the processor executes the The task flow control method according to any one of the inventions is implemented in the program.
  • the application provides a task flow control method, device, computer device and computer readable storage medium.
  • the method includes: acquiring an event queue corresponding to the task, the event queue includes a task event and an event node located after each task event; detecting an event state of the task event; and controlling the task flow according to the event state Reaching a corresponding event node; acquiring a task flow policy corresponding to the event node; determining, according to the task flow policy, a next event that the task is about to flow; and controlling the task flow to reach the next event.
  • FIG. 1 is a schematic flowchart of a task flow control method according to an embodiment of the present application.
  • FIG. 2 is a schematic flowchart of a task flow control method according to an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of a task flow control method according to an embodiment of the present disclosure
  • FIG. 5 is a schematic diagram of a sub-flow of a task flow control method according to an embodiment of the present disclosure
  • FIG. 6 is a schematic block diagram of a task flow control apparatus according to an embodiment of the present application.
  • FIG. 7 is a schematic block diagram of a task flow control apparatus according to an embodiment of the present application.
  • FIG. 8 is a schematic block diagram of a second acquiring unit of a task flow control device according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic block diagram of a first determining unit of a task flow control device according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic block diagram of a computer device according to an embodiment of the present application.
  • FIG. 1 is a schematic flowchart of a task flow control method according to an embodiment of the present application.
  • the task flow control method can be applied to terminals such as servers, desktop computers, laptop computers, tablet computers, personal digital assistants (PDAs), smart phones (such as Android mobile phones, IOS mobile phones, etc.).
  • terminals such as servers, desktop computers, laptop computers, tablet computers, personal digital assistants (PDAs), smart phones (such as Android mobile phones, IOS mobile phones, etc.).
  • PDAs personal digital assistants
  • smart phones such as Android mobile phones, IOS mobile phones, etc.
  • the method includes steps S110-S160.
  • the event queue corresponding to the task may be obtained by acquiring a task identifier of the task, and matching the task identifier with a preset event database to obtain an event that matches the task identifier. queue.
  • Each event queue contains a unique queue identifier. If the queue identifier is the same as the task identifier, it is determined that the event queue corresponding to the queue identifier matches the task identifier.
  • the task is a transfer application task
  • the task identifier corresponding to the transfer application task is “ZG001”.
  • the event identifier "ZG001" is matched with the preset event database to obtain an event queue matching the task identifier "ZG001"; the event queue is the queue identifier "ZG001".
  • the event queue includes a task event and an event node located after each task event.
  • the types of event nodes include a connection node and an end node. If the event node is located between different task events, the event node is a connection node for connecting between different task events. If the event node is only after the task event, the event node is the end node and is used to end the current task flow. For example, if the event queue includes only one task event and one event node after the task event, the event node is an end node.
  • the task is a transfer application task.
  • the task events included in the event queue corresponding to the transfer application task include event A, event B1, event B2, and event B3; the event queue corresponding to the transfer request task includes an event node including node a after event A, and is located at event B1. Subsequent node b1, node b2 after event B2, is located at node b3 after event B3.
  • event A is the application for transfer
  • event B1 is approved by manager A
  • event B2 is approved by manager B
  • event B3 is approved by manager C.
  • Node a, node b1, node b2, or node b3 may each be a connected node or an ending node. If node a is a connection node, node a can be used to connect node b1, node b2 or node b3; if node a is an end node, node a is used to end the current task flow. Other event nodes and so on.
  • the event status of the task event includes a start status, a progress status, and a completion status.
  • the event A in the transfer application task is filled in for the transfer application, and the event status of the event A includes a start status, a progress status, and a completion status.
  • the start status is the transfer application creation
  • the status is the transfer application
  • the end status is the completion of the transfer application.
  • the event status of detecting the task event can be implemented by a process flow listener.
  • the process flow listener can be an activiti listener.
  • the event state is detected by the activiti listener, and it can be determined whether the event state of the task event is the end state; or the event state is detected by the activiti listener, and the event of the task event can be determined. Whether the status is the start status.
  • a task parameter record table corresponding to the task is generated, and the task parameter record table is used to record task parameters of the task.
  • the task parameters include a task identifier, a user identifier corresponding to the task, a task creation time, a task event or an event node that the task has flown, a time when the task flow is transferred to the task event or the event node, and the like.
  • the task parameter record table corresponding to the task is continuously updated to be called in the subsequent task flow control.
  • FIG. 2 is a schematic flowchart of a task flow control method according to an embodiment of the present application.
  • the event state of the task event includes an end state
  • the step of controlling the task flow to reach the corresponding event node according to the event state in step S130 may specifically include step S131.
  • the state of the event A in the transfer application task is detected to be the end state, and the transfer application task is transferred to the node a after the event A.
  • FIG. 3 is a schematic flowchart of a task flow control method according to an embodiment of the present application.
  • the event state of the task event includes a start state, and after detecting the event state of the task event, further includes steps S210-S220.
  • each task event corresponds to a unique processing identifier.
  • the processing identifier can be an employee number, a employee ID, and the like. For example, suppose event B1 is approved by manager A; event B2 is approved by manager B; event B3 is approved by manager C; correspondingly, the processing identifier of event B1 can be employee number of manager A.
  • the processing identifier may be mapped to one or more contact methods including, but not limited to, a mobile number, a fixed telephone number, various types of communication software accounts, and the like.
  • the process identifier is mapped to the mobile number. If the processing identifier corresponding to event B1 is the employee number of manager A, the employee number of manager A is mapped to the mobile number of manager A.
  • the reminder information is sent to the mobile phone of the manager A to remind the manager A to handle the event B1 in time to prevent the task from stagnating for a long time.
  • FIG. 4 is a sub-flow diagram of a task flow control method according to an embodiment of the present application.
  • the acquiring the task flow policy corresponding to the event node in step S140 may specifically include steps S141-S142.
  • a calling interface for invoking the task flow policy is preset in the event node.
  • setting a calling interface for invoking the task flow policy may be implemented by using a keyword extension or a keyword implements in java.
  • the keyword extends represents the inheritance of the parent class, can be used to implement the parent class, can also be used to call the parent class initialization, and will override the variables or functions defined by the parent class.
  • the keyword implements represents the implementation of the interface, which is defined by the keyword interface. For example, the public class S implements F indicates that the method is declared in the interface F, and the method is implemented in the class S.
  • the task flow policy is saved in the form of a code segment on the specified path to be called by the calling interface.
  • the corresponding task flow conversion policy is invoked by calling the interface, and the management personnel can modify or replace the task flow conversion policy more conveniently, thereby reducing the running cost.
  • FIG. 5 is a schematic diagram of a sub-flow of a task flow control method according to an embodiment of the present application.
  • the determining that the next event that the task is about to flow by the task according to the task flow policy in step S150 may specifically include steps S151-S153.
  • the task flow policy includes one or more node mapping relationships, and the node mapping relationship is used to indicate a connection relationship between the event node and the task event.
  • the task is a transfer application.
  • the task events corresponding to the transfer application task include event A, event B1, and event B2 event B3; the event node corresponding to the transfer application task includes node a after event A.
  • the task flow policy obtained at node a includes three node mapping relationships: (1) event A-node a-event B1; (2) event A-node a-event B2; 3) Event A - Node a - Event B3.
  • Each level identifier corresponds to a unique node mapping relationship.
  • the node mapping relationship corresponding to the user level “T2" is "Event A-Node a-Event B2".
  • different rank identifiers may correspond to the same node mapping relationship.
  • each node mapping relationship is used to represent a connection relationship between an event node and a task event. If the node mapping relationship has been determined, the next event that the task is about to flow will be determined by the node mapping relationship. For example, if the node mapping relationship is "Event A-Node a-Event B2", then the next event that the task arrives at node a is to be "Event B2".
  • the task flow can be automated, and the labor cost and the transfer time of the task flow are reduced.
  • FIG. 6 is a schematic block diagram of a task flow control apparatus according to an embodiment of the present application.
  • the apparatus includes a first acquisition unit 110, a first detection unit 120, a first control unit 130, a second acquisition unit 140, a first determination unit 150, and a second control unit 160.
  • the first obtaining unit 110 is configured to acquire an event queue corresponding to the task, where the event queue includes a task event and an event node located after each task event.
  • the event queue corresponding to the task may be obtained by acquiring a task identifier of the task, and matching the task identifier with a preset event database to obtain an event that matches the task identifier. queue.
  • Each event queue contains a unique queue identifier. If the queue identifier is the same as the task identifier, it is determined that the event queue corresponding to the queue identifier matches the task identifier.
  • the task is a transfer application task
  • the task identifier corresponding to the transfer application task is “ZG001”.
  • the event identifier "ZG001" is matched with the preset event database to obtain an event queue matching the task identifier "ZG001"; the event queue is the queue identifier "ZG001".
  • the event queue includes a task event and an event node located after each task event.
  • the types of event nodes include a connection node and an end node. If the event node is located between different task events, the event node is a connection node for connecting between different task events. If the event node is only after the task event, the event node is the end node and is used to end the current task flow. For example, if the event queue includes only one task event and one event node after the task event, the event node is an end node.
  • the task is a transfer application task.
  • the task events included in the event queue corresponding to the transfer application task include event A, event B1, and event B2 event B3.
  • the event queue corresponding to the transfer request task includes the node a after the event A, and is located after the event B1. Node b1, node b2 after event B2, node b3 after event B3.
  • event A is the application for transfer
  • event B1 is approved by manager A
  • event B2 is approved by manager B
  • event B3 is approved by manager C.
  • Node a, node b1, node b2, or node b3 may each be a connected node or an ending node. If node a is a connection node, node a can be used to connect node b1, node b2 or node b3; if node a is an end node, node a is used to end the current task flow. Other event nodes and so on.
  • the first detecting unit 120 is configured to detect an event state of the task event.
  • the event status of the task event includes a start status, a progress status, and a completion status.
  • the event A in the transfer application task is filled in for the transfer application, and the event status of the event A includes a start status, a progress status, and a completion status.
  • the start status is the transfer application creation
  • the status is the transfer application
  • the end status is the completion of the transfer application.
  • the event status of detecting the task event can be implemented by a process flow listener.
  • the process flow listener can be an activiti listener.
  • the event state is detected by the activiti listener, and it can be determined whether the event state of the task event is the end state; or the event state is detected by the activiti listener, and the event of the task event can be determined. Whether the status is the start status.
  • the first control unit 130 is configured to control the task flow to reach the corresponding event node according to the event state.
  • a task parameter record table corresponding to the task is generated, and the task parameter record table is used to record task parameters of the task.
  • the task parameters include a task identifier, a user identifier corresponding to the task, a task creation time, a task event or an event node that the task has flown, a time when the task flow is transferred to the task event or the event node, and the like.
  • the task parameter record table corresponding to the task is continuously updated to be called in the subsequent task flow control.
  • the event state of the task event includes an end state
  • the first control unit 130 is specifically configured to: if the event state of the task event is an end state, control the event flow to reach an event after the task event node.
  • the state of the event A in the transfer application task is detected to be the end state, and the transfer application task is transferred to the node a1 after the event A.
  • FIG. 7 is a schematic block diagram of a task flow control apparatus according to an embodiment of the present application.
  • the event state of the task event includes a start state
  • the device further includes a second processing unit 210 and an information sending unit 220.
  • the second processing unit 210 is configured to acquire, when the event state of the task event is a start state, a process identifier corresponding to the task event.
  • each task event corresponds to a unique processing identifier.
  • the processing identifier can be an employee number, a employee ID, and the like. For example, suppose event B1 is approved by manager A; event B2 is approved by manager B; event B3 is approved by manager C; correspondingly, the processing identifier of event B1 can be employee number of manager A.
  • the information sending unit 220 is configured to send the reminder information to the processing personnel corresponding to the processing identifier according to the processing identifier.
  • the processing identifier may be mapped to one or more contact methods including, but not limited to, a mobile number, a fixed telephone number, various types of communication software accounts, and the like.
  • the process identifier is mapped to the mobile number. If the processing identifier corresponding to event B1 is the employee number of manager A, the employee number of manager A is mapped to the mobile number of manager A.
  • the reminder information is sent to the mobile phone of the manager A to remind the manager A to handle the event B1 in time to prevent the task from stagnating for a long time.
  • the second obtaining unit 140 is configured to acquire a task flow policy corresponding to the event node.
  • FIG. 8 is a schematic block diagram of a second acquiring unit 140 of a task flow control apparatus according to an embodiment of the present application. Further, the second obtaining unit 140 includes an interface setting unit 141 and a policy acquiring unit 142.
  • the interface setting unit 141 is configured to preset a calling interface for invoking the task flow policy at the event node.
  • setting a calling interface for invoking the task flow policy may be implemented by using a keyword extension or a keyword implements in java.
  • the keyword extends represents the inheritance of the parent class, can be used to implement the parent class, can also be used to call the parent class initialization, and will override the variables or functions defined by the parent class.
  • the keyword implements represents the implementation of the interface, which is defined by the keyword interface. For example, the public class S implements F indicates that the method is declared in the interface F, and the method is implemented in the class S.
  • the policy obtaining unit 142 is configured to acquire, by using the calling interface, a task flow policy corresponding to the event node.
  • the task flow policy is saved in the form of a code segment on the specified path to be called by the calling interface.
  • the corresponding task flow conversion policy is invoked by calling the interface, and the management personnel can modify or replace the task flow conversion policy more conveniently, thereby reducing the running cost.
  • the first determining unit 150 is configured to determine, according to the task flow policy, the next event that the task is about to flow.
  • FIG. 9 is a schematic block diagram of a first determining unit 150 of a task flow control apparatus according to an embodiment of the present application. Further, the first determining unit 150 includes a third obtaining unit 151, a second determining unit 152, and a third determining unit 153.
  • the third obtaining unit 151 is configured to acquire a level identifier corresponding to the task.
  • each task corresponds to a unique one user identifier
  • the user identifier may be a login account name when the user creates a task, or may be a terminal number for creating a task.
  • Each user identifier corresponds to a unique level identifier
  • the level identifier corresponding to the task can be obtained by acquiring the user identifier corresponding to the task, and the level identifier can be set according to an actual personnel management framework, for example, It is "T1", “T2", “T3" and so on.
  • the user identifier is the user login account name “xiaoming”, and the user login account name “xiaoming” corresponds to the user level “T2”.
  • the task flow policy includes one or more node mapping relationships, and the node mapping relationship is used to indicate a connection relationship between the event node and the task event.
  • the task is a transfer application.
  • the task events corresponding to the transfer application task include event A, event B1, and event B2 event B3; the event node corresponding to the transfer application task includes node a after event A.
  • the task flow policy obtained at node a includes three node mapping relationships: (1) event A-node a-event B1; (2) event A-node a-event B2; 3) Event A - Node a - Event B3.
  • Each level identifier corresponds to a unique node mapping relationship.
  • the node mapping relationship corresponding to the user level “T2" is "Event A-Node a-Event B2".
  • different rank identifiers may correspond to the same node mapping relationship.
  • the third determining unit 153 is configured to determine, according to the node mapping relationship, a next event that the task is about to flow.
  • each node mapping relationship is used to represent a connection relationship between an event node and a task event. If the node mapping relationship has been determined, the next event that the task is about to flow will be determined by the node mapping relationship. For example, if the node mapping relationship is "Event A-Node a-Event B2", then the next event that the task arrives at node a is to be "Event B2".
  • the second control unit 160 is configured to control the task flow to reach the next event.
  • the task flow can be automated, and the labor cost and the transfer time of the task flow are reduced.
  • FIG. 10 is a schematic block diagram of a computer device according to an embodiment of the present application.
  • the computer device 500 device can be a terminal.
  • the terminal can be a communication-enabled electronic device such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant, and a wearable device.
  • the computer device 500 includes a processor 520, a memory, and a network interface 550 that are coupled by a system bus 510, where the memory can include a non-volatile storage medium 530 and an internal memory 540.
  • the non-volatile storage medium 530 can store an operating system 531 and a computer program 532.
  • the processor 520 can be caused to perform a task flow control method.
  • the processor 520 is used to provide computing and control capabilities to support the operation of the entire computer device 500.
  • the internal memory 540 provides an environment for the operation of a computer program in a non-volatile storage medium that, when executed by the processor 520, causes the processor 520 to perform a task flow control method.
  • the network interface 550 is used for network communication, such as sending assigned tasks and the like. It will be understood by those skilled in the art that the schematic block diagram of the computer device 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 500 to which the solution of the present application is applied.
  • the specific computer device 500 More or fewer components than those shown in the figures may be included, or some components may be combined, or have different component arrangements.
  • the processor 520 is configured to run the program code stored in the memory to implement the function of: acquiring an event queue corresponding to the task, where the event queue includes a task event and an event node located after each task event; Detecting an event state of the task event; controlling the task flow to reach a corresponding event node according to the event state; acquiring a task flow policy corresponding to the event node; determining, according to the task flow transfer policy, that the task is about to arrive The next event; controlling the flow of the task to reach the next event.
  • the event state of the task event includes an end state
  • the processor 520 controls the task flow to reach the corresponding event node according to the event state
  • the processor 520 further executes the following procedure:
  • the event state of the event is an end state
  • the task flow is controlled to reach the event node after the task event.
  • the event state of the task event includes a start state
  • the processor 520 further executes a program: if the event state of the task event is a start state, acquiring a processing identifier corresponding to the task event; sending, according to the processing identifier, reminding information to a processing personnel corresponding to the processing identifier.
  • the processor 520 when performing the next event that determines that the task is about to flow according to the task flow policy, specifically executes the following procedure: acquiring a level identifier corresponding to the task; And determining a corresponding node mapping relationship in the task flow policy; determining, according to the node mapping relationship, a next event that the task is about to flow.
  • the processor 520 may be a central processing unit (CPU), and the processor 520 may also be other general-purpose processors, a digital signal processor (DSP), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, etc.
  • the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the schematic block diagram of the computer device 500 does not constitute a limitation to the computer device 500, and may include more or fewer components than those illustrated, or some components may be combined, or different component arrangements.
  • a computer readable storage medium is stored, the computer readable storage medium storing a computer program, wherein the computer program comprises program instructions.
  • the task flow control method of the embodiment of the present application is implemented when the program instruction is executed by the processor.
  • the computer readable storage medium may be any medium that can store program code, such as a USB flash drive, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk.
  • program code such as a USB flash drive, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

提供了一种任务流转控制方法、装置、设备及计算机可读存储介质。该方法包括:获取所述任务对应的事件队列(S110),所述事件队列包括任务事件以及位于每一个任务事件之后的事件节点;检测所述任务事件的事件状态(S120);根据所述事件状态控制所述任务流转到达相应的事件节点(S130);获取所述事件节点对应的任务流转策略(S140);根据所述任务流转策略确定所述任务即将流转到达的下一个事件(S150);控制所述任务流转到达所述下一个事件(S160)。

Description

任务流转控制方法、装置、设备及计算机可读存储介质
本申请要求于2018年1月23日提交中国专利局、申请号为201810063956.4、发明名称为“任务流转控制方法、装置、设备及计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及计算机数据处理领域,尤其涉及一种任务流转控制方法、装置、设备及计算机可读存储介质。
背景技术
在当今社会,各个行业的分工协作越来越细化,越来越多的任务需要跨团队、跨部门、跨组织合作才能完成。例如生产流程、业务流程、各行政申请流程、财务审批流程、人事处理流程、质量控制及客服流程。各类任务在流转的过程中往往耗费着大量的人力与物力,如何提升任务流转的效率是当今亟需解决的问题。
发明内容
本申请提供了一种任务流转控制方法、装置、设备及计算机可读存储介质,旨在提升任务流转的效率。
第一方面,本申请提供了一种任务流转控制方法,其包括:获取所述任务对应的事件队列,所述事件队列包括任务事件以及位于每一个任务事件之后的事件节点;检测所述任务事件的事件状态;根据所述事件状态控制所述任务流转到达相应的事件节点;获取所述事件节点对应的任务流转策略;根据所述任务流转策略确定所述任务即将流转到达的下一个事件;控制所述任务流转到达所述下一个事件。
第二方面,本申请提供了一种任务流转控制装置,其包括:
第一获取单元,用于获取所述任务对应的事件队列,所述事件队列包括任务事件以及位于每一个任务事件之后的事件节点;
第一检测单元,用于检测所述任务事件的事件状态;
第一控制单元,用于根据所述事件状态控制所述任务流转到达相应的事件节点;
第二获取单元,用于获取所述事件节点对应的任务流转策略;
第一确定单元,用于根据所述任务流转策略确定所述任务即将流转到达的下一个事件;
第二控制单元,用于控制所述任务流转到达所述下一个事件。
第三方面,本申请又提供了一种计算机设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时实现发明提供的任一项所述的任务流转控制方法。
第四方面,本申请还提供了一种计算机可读存储介质,其中所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行发明提供的任一项所述的任务流转控制方法。
本申请提供一种任务流转控制方法、装置、计算机设备及计算机可读存储介质。该方法包括:获取所述任务对应的事件队列,所述事件队列包括任务事件以及位于每一个任务事件之后的事件节点;检测所述任务事件的事件状态;根据所述事件状态控制所述任务流转到达相应的事件节点;获取所述事件节点对应的任务流转策略;根据所述任务流转策略确定所述任务即将流转到达的下一个事件;控制所述任务流转到达所述下一个事件。实施本申请实施例,通过检测任务事件的事件状态,并根据在所述事件节点获取的任务流转策略控制所述任务流转,可实现任务流转自动化,降低任务流转的人工成本以及流转时间。
附图说明
为了更清楚地说明本申请实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请一实施例提供的一种任务流转控制方法的流程示意图;
图2为本申请一实施例提供的一种任务流转控制方法的流程示意图;
图3为本申请一实施例提供的一种任务流转控制方法的流程示意图;
图4为本申请一实施例提供的一种任务流转控制方法的子流程示意图;
图5为本申请一实施例提供的一种任务流转控制方法的子流程示意图;
图6为本申请一实施例提供的一种任务流转控制装置的示意性框图;
图7为本申请一实施例提供的一种任务流转控制装置的示意性框图;
图8为本申请一实施例提供的一种任务流转控制装置的第二获取单元的示意性框图;
图9为本申请一实施例提供的一种任务流转控制装置的第一确定单元的示意性框图;
图10为本申请一实施例提供的一种计算机设备的示意性框图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
请参照图1,其为本申请一实施例提供的一种任务流转控制方法的流程示意图。该任务流转控制方法可应用于服务器、台式电脑、手提电脑、平板电脑、个人数字助理(PDA)、智能手机(如Android手机、IOS手机等)等终端中。具体地,该方法包括步骤S110-S160。
S110,获取所述任务对应的事件队列,所述事件队列包括任务事件以及位于每一个任务事件之后的事件节点。
具体地,获取所述任务对应的事件队列具体可通过获取所述任务的任务标识符;将所述任务标识符与预设的事件数据库进行匹配,以获取与所述任务标识符相匹配的事件队列。每一个事件队列均包含唯一一个队列标识符,若该队列标识符与任务标识符相同,则判定该队列标识符对应的事件队列与任务标识符相匹配。例如,所述任务为转岗申请任务,该转岗申请任务对应的任务标识符为“ZG001”。通过将该任务标识符“ZG001”与预设的事件数据库进行匹配,以获取与任务标识符为“ZG001”相匹配的事件队列;该事件队列为队列标识符为“ZG001”。
其中,所述事件队列包括任务事件以及位于每一个任务事件之后的事件节点。所述事件节点的类型包括连接节点以及结束节点。若事件节点位于不同任务事件之间,则该事件节点为连接节点,用于连接于不同的任务事件之间。若事件节点仅仅位于任务事件之后,则该事件节点为结束节点,用于结束当前任务流转。例如,若所述事件队列只包括一个任务事件以及一个位于该任务事件之后的事件节点,则该事件节点为结束节点。
具体地,假设该任务为转岗申请任务。该转岗申请任务对应的事件队列所包括的任务事件包括事件A、事件B1、事件B2、事件B3;该转岗申请任务对应的事件队列所包括事件节点包括位于事件A之后的节点a,位于事件B1之后的节点b1,位于事件B2之后的节点b2,位于事件B3之后的节点b3。
其中,事件A为转岗申请填写,事件B1为甲经理审批;事件B2为乙经理审批;事件B3为丙经理审批。节点a、节点b1、节点b2或者节点b3均可以为连接节点或者结束节点。若节点a为连接节点,节点a可用于连接节点b1、节点b2或者节点b3;若节点a为结束节点,节点a用于结束当前任务流转。其他事件节点以此类推。
S120,检测所述任务事件的事件状态。
具体地,所述任务事件的事件状态包括开始状态、进行状态以及完成状态。例如转岗申请任务中的事件A为转岗申请填写,该事件A的事件状态包括开始状态、进行状态以及完成状态。其中,开始状态为转岗申请创建,进行状态为转岗申请填写,结束状态为转岗申请填写完成。
其中,检测所述任务事件的事件状态可通过流程流转监听器实现。该流程流转监听器可以为activiti监听器。例如,通过activiti监听器对事件状态进行检测,可判断得出所述任务事件的事件状态是否为结束状态;又或者通过activiti监听器对事件状态进行检测,可判断得出所述任务事件的事件状态是否为开始状态。
S130,根据所述事件状态控制所述任务流转到达相应的事件节点。
具体地,在所述任务创建之后,生成与所述任务相对应的任务参数记录表,该任务参数记录表用于记录该任务的任务参数。其中,所述任务参数包括任务标识符、该任务对应的用户标识符、任务创建时间、任务已流转的任务事件或者事件节点、任务流转至任务事件或者事件节点时所停留的时间等等。任务在 流转过程中,该任务对应的任务参数记录表不断更新,以便于在后续任务流转控制中调用。
具体请参照图2,其为本申请一实施例提供的一种任务流转控制方法的流程示意图。进一步地,所述任务事件的事件状态包括结束状态,步骤S130中的所述根据所述事件状态控制所述任务流转到达相应的事件节点具体可以包括步骤S131。
S131,若所述任务事件的事件状态为结束状态,控制所述任务流转到达所述任务事件之后的事件节点。
具体地,若转岗申请任务中的事件A为转岗申请填写,若检测到该转岗申请任务中的事件A的状态变为结束状态,则将该转岗申请任务流转到达事件A之后的节点a。
具体请参照图3,其为本申请一实施例提供的一种任务流转控制方法的流程示意图。进一步地,所述任务事件的事件状态包括开始状态,所述检测所述任务事件的事件状态之后,还包括步骤S210-S220。
S210,若所述任务事件的事件状态为开始状态,获取所述任务事件对应的处理标识符。
具体地,每一个任务事件均对应着唯一的处理标识符。该处理标识符可以为员工工号、员工身份证等等。例如假设事件B1为甲经理审批;事件B2为乙经理审批;事件B3为丙经理审批;对应地,事件B1的处理标识符可以为甲经理的员工工号。
S220,根据所述处理标识符,发送提醒信息至所述处理标识符对应的处理人员。
具体地,该处理标识符可以映射于一个或者一个以上的联系方式,该联系方式包括但不限于手机号码、固定电话号码、各类通讯软件账号等等。例如,该处理标识符映射于手机号码。若事件B1对应的处理标识符为甲经理的员工工号,甲经理的员工工号映射于甲经理的手机号码。根据所述处理标识符,将提醒信息发送至甲经理的手机,以提醒甲经理及时处理事件B1,防止任务长时间停滞。
S140,获取所述事件节点对应的任务流转策略。
具体请参照图4,其为本申请一实施例提供的一种任务流转控制方法的子流 程示意图。进一步地,步骤S140中的所述获取所述事件节点对应的任务流转策略具体可以包括步骤S141-S142。
S141,在所述事件节点预先设置用于调用所述任务流转策略的调用接口。
具体地,设置用于调用所述任务流转策略的调用接口可通过java中的关键字extends或者关键字implements来实现。其中关键字extends表示对父类的继承,可用于实现父类,也可用于调用父类初始化,且会覆盖父类定义的变量或者函数。关键字implements表示对接口的实现,所述接口通过关键字interface进行定义,例如public class S implements F表示在接口F中对方法进行声明,在类S中对该方法进行实现。
S142,通过所述调用接口获取所述事件节点对应的任务流转策略。
具体地,该任务流转策略以代码段的形式保存于指定的路径,以被所述调用接口调用。实施本申请实施例,通过调用接口调用对应的任务流转策略,管理人员可以更加便捷地对任务流转策略进行修改或者替换,降低了运行成本。
S150,根据所述任务流转策略确定所述任务即将流转到达的下一个事件。
具体请参照图5,其为本申请一实施例提供的一种任务流转控制方法的子流程示意图。进一步地,步骤S150中的所述根据所述任务流转策略确定所述任务即将流转到达的下一个事件具体可以包括步骤S151-S153。
S151,获取所述任务对应的等级标识符。
具体地,每一个任务对应存在唯一的一个用户标识符,所述用户标识符可以是用户在创建任务时的登录账户名,也可以是创建任务的终端编号。每一个用户标识符对应着唯一的等级标识符,通过获取所述任务对应的用户标识符可获得到所述任务对应的等级标识符,等级标识符可以根据实际的人员管理框架进行设置,例如可以为“T1”、“T2”、“T3”等等。例如该用户标识符为用户登录账户名“xiaoming”,该用户登录账户名“xiaoming”对应的用户等级标识符为“T2”。
S152,根据所述等级标识符确定所述任务流转策略中对应的节点映射关系。
具体地,所述任务流转策略包括一个或者多个的节点映射关系,该节点映射关系用于表示事件节点与任务事件的连接关系。假设该任务为转岗申请任务。该转岗申请任务对应的任务事件包括事件A、事件B1、事件B2事件B3;该转岗申请任务对应的事件节点包括位于事件A之后的节点a。节点a处所获取得到 的任务流转策略包括三个节点映射关系,这三个节点映射关系分别为:(1)事件A-节点a-事件B1;(2)事件A-节点a-事件B2;(3)事件A-节点a-事件B3。
其中,每一个等级标识符对应唯一一个节点映射关系。例如,用户等级“T2”对应的节点映射关系为“事件A-节点a-事件B2”。特别地,不同的等级标识符可对应相同的节点映射关系。
S153,根据所述节点映射关系确定所述任务即将流转到达的下一个事件。
具体地,每一个节点映射关系用于表示事件节点与任务事件的连接关系。若已确定所述节点映射关系,则可通过所述节点映射关系确定所述任务即将流转到达的下一个事件。例如,节点映射关系为“事件A-节点a-事件B2”,则所述任务在节点a处即将流转到达的下一个事件为“事件B2”。
S160,控制所述任务流转到达所述下一个事件。
具体地,控制所述任务流转到达所述下一个事件,并检测所述下一个事件的事件状态,并根据所述下一个事件的事件状态控制所述任务流转到达相应的事件节点;然后继续获取相应的事件节点的任务流转策略;直至所述任务流转结束。
实施本申请实施例,通过检测任务事件的事件状态,并根据在所述事件节点获取的任务流转策略控制所述任务流转,可实现任务流转自动化,降低任务流转的人工成本以及流转时间。
请参照图6,其为本申请一实施例提供的一种任务流转控制装置的示意性框图。所述装置包括第一获取单元110、第一检测单元120、第一控制单元130、第二获取单元140、第一确定单元150以及第二控制单元160。
第一获取单元110,用于获取所述任务对应的事件队列,所述事件队列包括任务事件以及位于每一个任务事件之后的事件节点。
具体地,获取所述任务对应的事件队列具体可通过获取所述任务的任务标识符;将所述任务标识符与预设的事件数据库进行匹配,以获取与所述任务标识符相匹配的事件队列。每一个事件队列均包含唯一一个队列标识符,若该队列标识符与任务标识符相同,则判定该队列标识符对应的事件队列与任务标识符相匹配。例如,所述任务为转岗申请任务,该转岗申请任务对应的任务标识符为“ZG001”。通过将该任务标识符“ZG001”与预设的事件数据库进行匹配, 以获取与任务标识符为“ZG001”相匹配的事件队列;该事件队列为队列标识符为“ZG001”。
其中,所述事件队列包括任务事件以及位于每一个任务事件之后的事件节点。所述事件节点的类型包括连接节点以及结束节点。若事件节点位于不同任务事件之间,则该事件节点为连接节点,用于连接于不同的任务事件之间。若事件节点仅仅位于任务事件之后,则该事件节点为结束节点,用于结束当前任务流转。例如,若所述例如事件队列只包括一个任务事件以及一个位于该任务事件之后的事件节点,则该事件节点为结束节点。
具体地,假设该任务为转岗申请任务。该转岗申请任务对应的事件队列所包括的任务事件包括事件A、事件B1、事件B2事件B3;该转岗申请任务对应的事件队列所包括事件节点包括位于事件A之后的节点a,位于事件B1之后的节点b1,位于事件B2之后的节点b2,位于事件B3之后的节点b3。
其中,事件A为转岗申请填写,事件B1为甲经理审批;事件B2为乙经理审批;事件B3为丙经理审批。节点a、节点b1、节点b2或者节点b3均可以为连接节点或者结束节点。若节点a为连接节点,节点a可用于连接节点b1、节点b2或者节点b3;若节点a为结束节点,节点a用于结束当前任务流转。其他事件节点以此类推。
第一检测单元120,用于检测所述任务事件的事件状态。
具体地,所述任务事件的事件状态包括开始状态、进行状态以及完成状态。例如转岗申请任务中的事件A为转岗申请填写,该事件A的事件状态包括开始状态、进行状态以及完成状态。其中,开始状态为转岗申请创建,进行状态为转岗申请填写,结束状态为转岗申请填写完成。
其中,检测所述任务事件的事件状态可通过流程流转监听器实现。该流程流转监听器可以为activiti监听器。例如,通过activiti监听器对事件状态进行检测,可判断得出所述任务事件的事件状态是否为结束状态;又或者通过activiti监听器对事件状态进行检测,可判断得出所述任务事件的事件状态是否为开始状态。
第一控制单元130,用于根据所述事件状态控制所述任务流转到达相应的事件节点。
具体地,在所述任务创建之后,生成与所述任务相对应的任务参数记录表, 该任务参数记录表用于记录该任务的任务参数。其中,所述任务参数包括任务标识符、该任务对应的用户标识符、任务创建时间、任务已流转的任务事件或者事件节点、任务流转至任务事件或者事件节点时所停留的时间等等。任务在流转过程中,该任务对应的任务参数记录表不断更新,以便于在后续任务流转控制中调用。
具体实施中,所述任务事件的事件状态包括结束状态,所述第一控制单元130具体可用于若所述任务事件的事件状态为结束状态,控制所述任务流转到达所述任务事件之后的事件节点。
具体地,若转岗申请任务中的事件A为转岗申请填写,若检测到该转岗申请任务中的事件A的状态变为结束状态,则将该转岗申请任务流转到达事件A之后的节点a1。
具体请参照图7,本申请一实施例提供的一种任务流转控制装置的示意性框图。进一步地,所述任务事件的事件状态包括开始状态,所述装置还包括第二处理单元210以及信息发送单元220。
第二处理单元210,用于若所述任务事件的事件状态为开始状态,获取所述任务事件对应的处理标识符。
具体地,每一个任务事件均对应着唯一的处理标识符。该处理标识符可以为员工工号、员工身份证等等。例如假设事件B1为甲经理审批;事件B2为乙经理审批;事件B3为丙经理审批;对应地,事件B1的处理标识符可以为甲经理的员工工号。
信息发送单元220,用于根据所述处理标识符,发送提醒信息至所述处理标识符对应的处理人员。
具体地,该处理标识符可以映射于一个或者一个以上的联系方式,该联系方式包括但不限于手机号码、固定电话号码、各类通讯软件账号等等。例如,该处理标识符映射于手机号码。若事件B1对应的处理标识符为甲经理的员工工号,甲经理的员工工号映射于甲经理的手机号码。根据所述处理标识符,将提醒信息发送至甲经理的手机,以提醒甲经理及时处理事件B1,防止任务长时间停滞。
第二获取单元140,用于获取所述事件节点对应的任务流转策略。
具体请参照图8,本申请一实施例提供的一种任务流转控制装置的第二获取 单元140的示意性框图。进一步地,所述第二获取单元140包括接口设置单元141以及策略获取单元142。
接口设置单元141,用于在所述事件节点预先设置用于调用所述任务流转策略的调用接口。
具体地,设置用于调用所述任务流转策略的调用接口可通过java中的关键字extends或者关键字implements来实现。其中关键字extends表示对父类的继承,可用于实现父类,也可用于调用父类初始化,且会覆盖父类定义的变量或者函数。关键字implements表示对接口的实现,所述接口通过关键字interface进行定义,例如public class S implements F表示在接口F中对方法进行声明,在类S中对该方法进行实现。
策略获取单元142,用于通过所述调用接口获取所述事件节点对应的任务流转策略。
具体地,该任务流转策略以代码段的形式保存于指定的路径,以被所述调用接口调用。实施本申请实施例,通过调用接口调用对应的任务流转策略,管理人员可以更加便捷地对任务流转策略进行修改或者替换,降低了运行成本。
第一确定单元150,用于根据所述任务流转策略确定所述任务即将流转到达的下一个事件。
具体请参照图9,本申请一实施例提供的一种任务流转控制装置的第一确定单元150的示意性框图。进一步地,所述第一确定单元150包括第三获取单元151、第二确定单元152以及第三确定单元153。
第三获取单元151,用于获取所述任务对应的等级标识符。
具体地,每一个任务对应存在唯一的一个用户标识符,所述用户标识符可以是用户在创建任务时的登录账户名,也可以是创建任务的终端编号。每一个用户标识符对应着唯一的等级标识符,通过获取所述任务对应的用户标识符可获得到所述任务对应的等级标识符,等级标识符可以根据实际的人员管理框架进行设置,例如可以为“T1”、“T2”、“T3”等等。例如该用户标识符为用户登录账户名“xiaoming”,该用户登录账户名“xiaoming”对应的用户等级为“T2”。
第二确定单元152,用于根据所述等级标识符确定所述任务流转策略中对应的节点映射关系。
具体地,所述任务流转策略包括一个或者多个的节点映射关系,该节点映射关系用于表示事件节点与任务事件的连接关系。假设该任务为转岗申请任务。该转岗申请任务对应的任务事件包括事件A、事件B1、事件B2事件B3;该转岗申请任务对应的事件节点包括位于事件A之后的节点a。节点a处所获取得到的任务流转策略包括三个节点映射关系,这三个节点映射关系分别为:(1)事件A-节点a-事件B1;(2)事件A-节点a-事件B2;(3)事件A-节点a-事件B3。
其中,每一个等级标识符对应唯一一个节点映射关系。例如,用户等级“T2”对应的节点映射关系为“事件A-节点a-事件B2”。特别地,不同的等级标识符可对应相同的节点映射关系。
第三确定单元153,用于根据所述节点映射关系确定所述任务即将流转到达的下一个事件。
具体地,每一个节点映射关系用于表示事件节点与任务事件的连接关系。若已确定所述节点映射关系,则可通过所述节点映射关系确定所述任务即将流转到达的下一个事件。例如,节点映射关系为“事件A-节点a-事件B2”,则所述任务在节点a处即将流转到达的下一个事件为“事件B2”。
第二控制单元160,用于控制所述任务流转到达所述下一个事件。
具体地,控制所述任务流转到达所述下一个事件,并检测所述下一个事件的事件状态,并根据所述下一个事件的事件状态控制所述任务流转到达相应的事件节点;然后继续获取相应的事件节点的任务流转策略;直至所述任务流转结束。
实施本申请实施例,通过检测任务事件的事件状态,并根据在所述事件节点获取的任务流转策略控制所述任务流转,可实现任务流转自动化,降低任务流转的人工成本以及流转时间。
请参阅图10,图10是本申请实施例提供的一种计算机设备的示意性框图。该计算机设备500设备可以是终端。该终端可以是智能手机、平板电脑、笔记本电脑、台式电脑、个人数字助理和穿戴式设备等具有通信功能的电子设备。该计算机设备500包括通过系统总线510连接的处理器520、存储器和网络接口550,其中,存储器可以包括非易失性存储介质530和内存储器540。该非易失性存储介质530可存储操作系统531和计算机程序532。该计算机程序532被执 行时,可使得处理器520执行一种任务流转控制方法。该处理器520用于提供计算和控制能力,支撑整个计算机设备500的运行。该内存储器540为非易失性存储介质中的计算机程序的运行提供环境,该计算机程序被处理器520执行时,可使得处理器520执行一种任务流转控制方法。
该网络接口550用于进行网络通信,如发送分配的任务等。本领域技术人员可以理解,该计算机设备的示意性框图仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备500的限定,具体的计算机设备500可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
其中,所述处理器520用于运行存储在存储器中的程序代码,以实现如下功能:获取所述任务对应的事件队列,所述事件队列包括任务事件以及位于每一个任务事件之后的事件节点;检测所述任务事件的事件状态;根据所述事件状态控制所述任务流转到达相应的事件节点;获取所述事件节点对应的任务流转策略;根据所述任务流转策略确定所述任务即将流转到达的下一个事件;控制所述任务流转到达所述下一个事件。
在一实施例中,所述任务事件的事件状态包括结束状态,处理器520在执行所述根据所述事件状态控制所述任务流转到达相应的事件节点时,还执行如下程序:若所述任务事件的事件状态为结束状态,控制所述任务流转到达所述任务事件之后的事件节点。
在一实施例中,所述任务事件的事件状态包括开始状态,处理器520在执行检测所述任务事件的事件状态之后,还执行如下程序:若所述任务事件的事件状态为开始状态,获取所述任务事件对应的处理标识符;根据所述处理标识符,发送提醒信息至所述处理标识符对应的处理人员。
在一实施例中,所述传输状态包括运行状态以及停止状态,处理器520在执行所述获取所述事件节点对应的任务流转策略时,具体执行如下程序:在所述事件节点预先设置用于调用所述任务流转策略的调用接口;通过所述调用接口获取所述事件节点对应的任务流转策略。
在一实施例中,处理器520在执行根据所述任务流转策略确定所述任务即将流转到达的下一个事件时,具体执行如下程序:获取所述任务对应的等级标识符;根据所述等级标识符确定所述任务流转策略中对应的节点映射关系;根 据所述节点映射关系确定所述任务即将流转到达的下一个事件。
应当理解,在本申请实施例中,处理器520可以是中央处理单元(Central Processing Unit,CPU),该处理器520还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。其中,通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
本领域技术人员可以理解,该计算机设备500的示意性框图并不构成对计算机设备500的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
在本申请的另一实施例中提供一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序,其中计算机程序包括程序指令。该程序指令被处理器执行时实现本申请实施例的任务流转控制方法。
该计算机可读存储介质可以是U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。

Claims (20)

  1. 一种任务流转控制方法,其特征在于,所述方法包括:
    获取所述任务对应的事件队列,所述事件队列包括任务事件以及位于每一个任务事件之后的事件节点;
    检测所述任务事件的事件状态;
    根据所述事件状态控制所述任务流转到达相应的事件节点;
    获取所述事件节点对应的任务流转策略;
    根据所述任务流转策略确定所述任务即将流转到达的下一个事件;
    控制所述任务流转到达所述下一个事件。
  2. 如权利要求1所述的方法,其特征在于,所述任务事件的事件状态包括结束状态,所述根据所述事件状态控制所述任务流转到达相应的事件节点,包括:
    若所述任务事件的事件状态为结束状态,控制所述任务流转到达所述任务事件之后的事件节点。
  3. 如权利要求1所述的方法,其特征在于,所述任务事件的事件状态包括开始状态,所述检测所述任务事件的事件状态之后,还包括:
    若所述任务事件的事件状态为开始状态,获取所述任务事件对应的处理标识符;
    根据所述处理标识符,发送提醒信息至所述处理标识符对应的处理人员。
  4. 如权利要求1所述的方法,其特征在于,所述获取所述事件节点对应的任务流转策略,包括:
    在所述事件节点预先设置用于调用所述任务流转策略的调用接口;
    通过所述调用接口获取所述事件节点对应的任务流转策略。
  5. 如权利要求1所述的方法,其特征在于,所述根据所述任务流转策略确定所述任务即将流转到达的下一个事件,包括:
    获取所述任务对应的等级标识符;
    根据所述等级标识符确定所述任务流转策略中对应的节点映射关系;
    根据所述节点映射关系确定所述任务即将流转到达的下一个事件。
  6. 一种任务流转控制装置,其特征在于,所述装置包括:
    第一获取单元,用于获取所述任务对应的事件队列,所述事件队列包括任 务事件以及位于每一个任务事件之后的事件节点;
    第一检测单元,用于检测所述任务事件的事件状态;
    第一控制单元,用于根据所述事件状态控制所述任务流转到达相应的事件节点;
    第二获取单元,用于获取所述事件节点对应的任务流转策略;
    第一确定单元,用于根据所述任务流转策略确定所述任务即将流转到达的下一个事件;
    第二控制单元,用于控制所述任务流转到达所述下一个事件。
  7. 如权利要求6所述的装置,其特征在于,所述任务事件的事件状态包括结束状态,所述第一控制单元具体用于若所述任务事件的事件状态为结束状态,控制所述任务流转到达所述任务事件之后的事件节点。
  8. 如权利要求6所述的装置,所述任务事件的事件状态包括开始状态,所述装置还包括:
    第二处理单元,用于若所述任务事件的事件状态为开始状态,获取所述任务事件对应的处理标识符;
    信息发送单元,用于根据所述处理标识符,发送提醒信息至所述处理标识符对应的处理人员。
  9. 如权利要求6所述的装置,其特征在于,所述第二获取单元包括:
    接口设置单元,用于在所述事件节点预先设置用于调用所述任务流转策略的调用接口;
    策略获取单元,用于通过所述调用接口获取所述事件节点对应的任务流转策略。
  10. 如权利要求6所述的装置,其特征在于,所述第一确定单元包括:
    第三获取单元,用于获取所述任务对应的等级标识符;
    第二确定单元,用于根据所述等级标识符确定所述任务流转策略中对应的节点映射关系;
    第三确定单元,用于根据所述节点映射关系确定所述任务即将流转到达的下一个事件。
  11. 一种计算机设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时实现 以下步骤:
    获取所述任务对应的事件队列,所述事件队列包括任务事件以及位于每一个任务事件之后的事件节点;
    检测所述任务事件的事件状态;
    根据所述事件状态控制所述任务流转到达相应的事件节点;
    获取所述事件节点对应的任务流转策略;
    根据所述任务流转策略确定所述任务即将流转到达的下一个事件;
    控制所述任务流转到达所述下一个事件。
  12. 如权利要求11所述的计算机设备,其特征在于,所述任务事件的事件状态包括结束状态,所述根据所述事件状态控制所述任务流转到达相应的事件节点,包括:
    若所述任务事件的事件状态为结束状态,控制所述任务流转到达所述任务事件之后的事件节点。
  13. 如权利要求11所述的计算机设备,其特征在于,所述任务事件的事件状态包括开始状态,所述检测所述任务事件的事件状态之后,还包括:
    若所述任务事件的事件状态为开始状态,获取所述任务事件对应的处理标识符;
    根据所述处理标识符,发送提醒信息至所述处理标识符对应的处理人员。
  14. 如权利要求11所述的计算机设备,其特征在于,所述获取所述事件节点对应的任务流转策略,包括:
    在所述事件节点预先设置用于调用所述任务流转策略的调用接口;
    通过所述调用接口获取所述事件节点对应的任务流转策略。
  15. 如权利要求11所述的计算机设备,其特征在于,所述根据所述任务流转策略确定所述任务即将流转到达的下一个事件,包括:
    获取所述任务对应的等级标识符;
    根据所述等级标识符确定所述任务流转策略中对应的节点映射关系;
    根据所述节点映射关系确定所述任务即将流转到达的下一个事件。
  16. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行以下操作:
    获取所述任务对应的事件队列,所述事件队列包括任务事件以及位于每一个任务事件之后的事件节点;
    检测所述任务事件的事件状态;
    根据所述事件状态控制所述任务流转到达相应的事件节点;
    获取所述事件节点对应的任务流转策略;
    根据所述任务流转策略确定所述任务即将流转到达的下一个事件;
    控制所述任务流转到达所述下一个事件。
  17. 如权利要求16所述的计算机可读存储介质,其特征在于,所述任务事件的事件状态包括结束状态,所述根据所述事件状态控制所述任务流转到达相应的事件节点,包括:
    若所述任务事件的事件状态为结束状态,控制所述任务流转到达所述任务事件之后的事件节点。
  18. 如权利要求16所述的计算机可读存储介质,其特征在于,所述任务事件的事件状态包括开始状态,所述检测所述任务事件的事件状态之后,还包括:
    若所述任务事件的事件状态为开始状态,获取所述任务事件对应的处理标识符;
    根据所述处理标识符,发送提醒信息至所述处理标识符对应的处理人员。
  19. 如权利要求16所述的计算机可读存储介质,其特征在于,所述获取所述事件节点对应的任务流转策略,包括:
    在所述事件节点预先设置用于调用所述任务流转策略的调用接口;
    通过所述调用接口获取所述事件节点对应的任务流转策略。
  20. 如权利要求16所述的计算机可读存储介质,其特征在于,所述根据所述任务流转策略确定所述任务即将流转到达的下一个事件,包括:
    获取所述任务对应的等级标识符;
    根据所述等级标识符确定所述任务流转策略中对应的节点映射关系;
    根据所述节点映射关系确定所述任务即将流转到达的下一个事件。
PCT/CN2018/077129 2018-01-23 2018-02-24 任务流转控制方法、装置、设备及计算机可读存储介质 Ceased WO2019144459A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810063956.4A CN108182110A (zh) 2018-01-23 2018-01-23 任务流转控制方法、装置、设备及计算机可读存储介质
CN201810063956.4 2018-01-23

Publications (1)

Publication Number Publication Date
WO2019144459A1 true WO2019144459A1 (zh) 2019-08-01

Family

ID=62551145

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/077129 Ceased WO2019144459A1 (zh) 2018-01-23 2018-02-24 任务流转控制方法、装置、设备及计算机可读存储介质

Country Status (2)

Country Link
CN (1) CN108182110A (zh)
WO (1) WO2019144459A1 (zh)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109634761A (zh) * 2018-12-17 2019-04-16 深圳乐信软件技术有限公司 一种系统状态流转方法、装置、计算机设备及存储介质
CN111008069B (zh) * 2019-12-02 2023-12-15 浙江大搜车软件技术有限公司 业务处理方法、装置、计算机设备和存储介质
CN113094156B (zh) * 2020-01-09 2026-04-28 同方威视科技江苏有限公司 任务信息处理方法、装置、设备及存储介质
CN112860400A (zh) * 2021-02-09 2021-05-28 山东英信计算机技术有限公司 一种处理分布式训练任务的方法、系统、设备及介质
CN115130972A (zh) * 2021-03-24 2022-09-30 同方威视技术股份有限公司 一种业务管理方法、装置、设备及存储介质
CN114004438A (zh) * 2021-08-04 2022-02-01 视联动力信息技术股份有限公司 一种事件处理方法、装置、电子设备及存储介质
CN114090785A (zh) * 2021-11-03 2022-02-25 奇安信科技集团股份有限公司 业务处理方法、装置、计算机设备和存储介质
CN114610484B (zh) * 2022-03-02 2024-05-31 上海交通大学 一种用于分布式ai集群的网络仿真方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105321045A (zh) * 2015-11-04 2016-02-10 北京知聚科技有限公司 业务流程的形式化模型构建方法与系统
CN105760991A (zh) * 2016-02-04 2016-07-13 北京慧友云商科技有限公司 一种可变服务流程的工作流引擎搭建方法
CN106779613A (zh) * 2016-12-28 2017-05-31 北京奇鱼时代科技有限公司 一种用于审批配置的方法与装置
US20170236085A1 (en) * 2016-02-12 2017-08-17 Fujitsu Limited Information processing apparatus and method for managing connections

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105321045A (zh) * 2015-11-04 2016-02-10 北京知聚科技有限公司 业务流程的形式化模型构建方法与系统
CN105760991A (zh) * 2016-02-04 2016-07-13 北京慧友云商科技有限公司 一种可变服务流程的工作流引擎搭建方法
US20170236085A1 (en) * 2016-02-12 2017-08-17 Fujitsu Limited Information processing apparatus and method for managing connections
CN106779613A (zh) * 2016-12-28 2017-05-31 北京奇鱼时代科技有限公司 一种用于审批配置的方法与装置

Also Published As

Publication number Publication date
CN108182110A (zh) 2018-06-19

Similar Documents

Publication Publication Date Title
WO2019144459A1 (zh) 任务流转控制方法、装置、设备及计算机可读存储介质
CN102542382B (zh) 业务规则的操作方法和装置
US11226989B2 (en) Dynamic interest-based notifications
US20140095627A1 (en) Likelihood of Receiving a Timely Response
US20210304027A1 (en) Message Management Using Machine Learning Techniques
CN107743697A (zh) 容错域中的动作编排
CN108008950B (zh) 一种用户界面更新的实现方法及装置
WO2019075845A1 (zh) 链路调用关系的构建方法、装置、计算机设备及存储介质
WO2019109519A1 (zh) 业务规则管理方法、装置、设备及计算机可读存储介质
WO2022068280A1 (zh) 数据处理方法、装置、设备及存储介质
CN110674153B (zh) 一种数据一致性检测方法、装置及电子设备
CN116028946A (zh) 服务器基线的加固方法、装置及设备
CN114358515A (zh) 监控告警方法、系统、存储介质及电子设备
WO2023207213A1 (zh) 数据处理方法及装置
CN113535439B (zh) 业务请求处理方法、装置、设备及存储介质
US12184490B2 (en) Automated configuration and deployment of contact center software suite
CN112685256A (zh) 服务端监控方法、设备和介质
CN113760487B (zh) 一种业务处理方法和装置
US8606868B2 (en) Community based measurement of capabilities and availability
CN109583694B (zh) 工作流处理方法、装置、计算机设备及存储介质
CN114448703A (zh) 请求处理方法、装置、电子设备及存储介质
CN121326401A (zh) 一种代码迁移方法、装置、设备、介质及产品
CN120215996B (zh) 一种java程序动态更新方法、装置、设备、介质及产品
US20230222417A1 (en) Automated electronic data interchange application
US20250238283A1 (en) Method and system of optimizing resource utilization in cloud-based data processing platform

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: 18902954

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 1205 DATED 10/11/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18902954

Country of ref document: EP

Kind code of ref document: A1