CN106934555B - Workflow organization method and device, computer equipment and storage medium - Google Patents

Workflow organization method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN106934555B
CN106934555B CN201710169181.4A CN201710169181A CN106934555B CN 106934555 B CN106934555 B CN 106934555B CN 201710169181 A CN201710169181 A CN 201710169181A CN 106934555 B CN106934555 B CN 106934555B
Authority
CN
China
Prior art keywords
workflow
current task
configuration item
information
resource pool
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.)
Active
Application number
CN201710169181.4A
Other languages
Chinese (zh)
Other versions
CN106934555A (en
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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201710169181.4A priority Critical patent/CN106934555B/en
Publication of CN106934555A publication Critical patent/CN106934555A/en
Application granted granted Critical
Publication of CN106934555B publication Critical patent/CN106934555B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0633Workflow analysis
    • 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

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Tourism & Hospitality (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Game Theory and Decision Science (AREA)
  • Development Economics (AREA)
  • Educational Administration (AREA)
  • Data Mining & Analysis (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention discloses a workflow organization method and device, computer equipment and a storage medium. The method comprises the following steps: determining current task information of a workflow according to the direction information of the workflow, wherein the workflow comprises at least two tasks; executing the current task according to the current task information to generate a target configuration item of the current task; and storing the target configuration item in a configuration resource pool corresponding to the workflow according to a set storage mode. By adopting the technical scheme, the embodiment of the invention sets the configuration resource pool for the workflow and stores the target configuration items generated by the tasks in the configuration resource pool, so that the coupling between the tasks in the workflow can be reduced, the reusability of the task modules is improved, the time consumed by changing the task parameters is reduced, and the flexibility of the workflow is improved.

Description

Workflow organization method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of workflow technologies, and in particular, to a method and an apparatus for organizing a workflow, a computer device, and a storage medium.
Background
With the development of network communication technology and information processing technology, computers have become one of the electronic devices commonly used in people's daily life.
Workflow is a task processing method commonly used by computers to complete various operations of users. For example, for a certain software program, it is a complete operation for completing a certain task, but its main business can be split into four steps, step 1, step 2, step 3, and step 4 according to its execution sequence, and then its workflow can be written as: step 1- > step 2- > step 3- > step 4. In the prior art, when services are implemented in a workflow manner, a previous step (e.g., step 1) is usually adopted to directly call a next step (e.g., step 2), and input parameters required by the next step (e.g., step 2) are transferred to the next step (e.g., step 2) in a manner required by the next step (e.g., step 2).
In many cases, the steps included in the workflow corresponding to a service are often variable due to the different requirements of the service. However, the workflow organized by the existing technical solution generally has a high coupling between the steps, and the workflow cannot be modified into another workflow directly by deleting or modifying one or more steps in the workflow without changing the codes of the steps in the workflow, which cannot meet the requirement of people on high flexibility of the workflow.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for organizing a workflow, a computer device, and a storage medium, so as to solve the technical problem in the prior art that each step of the workflow has a high coupling.
In a first aspect, an embodiment of the present invention provides a method for organizing workflows, including:
determining current task information of a workflow according to the direction information of the workflow, wherein the workflow comprises at least two tasks;
executing the current task according to the current task information to generate a target configuration item of the current task;
and storing the target configuration item in a configuration resource pool corresponding to the workflow according to a set storage mode.
In a second aspect, an embodiment of the present invention provides a workflow organizing apparatus, including:
the system comprises a current task determining module, a task processing module and a task processing module, wherein the current task determining module is used for determining current task information of a workflow according to the direction information of the workflow, and the workflow comprises at least two tasks;
the configuration item generation module is used for executing the current task according to the current task information to generate a target configuration item of the current task;
and the configuration item storage module is used for storing the target configuration item in a configuration resource pool corresponding to the workflow according to a set storage mode.
In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the method for organizing workflows according to the embodiment of the present invention when executing the computer program.
In a fourth aspect, the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are used for executing the method for organizing workflows according to the present invention.
According to the technical scheme for organizing the workflow, the current task information of the workflow is determined according to the direction information of the workflow, the current task of the workflow is executed according to the determined current task information to generate the target configuration item of the current task, and the generated target configuration item is stored in the configuration resource pool corresponding to the workflow according to the set storage mode. By adopting the technical scheme, the embodiment of the invention sets the configuration resource pool for the workflow and stores the target configuration items generated by the tasks in the configuration resource pool, so that the coupling between the tasks in the workflow can be reduced, the reusability of the task modules is improved, the time consumed by changing the task parameters is reduced, and the flexibility of the workflow is improved.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
fig. 1 is a schematic flow chart of a method for organizing workflows according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a workflow organization method according to a second embodiment of the present invention;
fig. 3A is a schematic flowchart of a preferred workflow organization method according to a third embodiment of the present invention;
fig. 3B is a schematic diagram illustrating an execution sequence of operations in a workflow according to a third embodiment of the present invention;
fig. 4 is a block diagram of a workflow organizing apparatus according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a computer device according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings.
Example one
The embodiment of the invention provides a workflow organization method. The method may be performed by a workflow organizing device, wherein the device is implemented by software and/or hardware, and may be generally integrated in a computer. Fig. 1 is a schematic flow chart of a method for organizing workflows according to an embodiment of the present invention, as shown in fig. 1, the method includes:
s110, determining current task information of the workflow according to the direction information of the workflow, wherein the workflow comprises at least two tasks.
Specifically, the workflow may include two or more tasks, where each task may be split from a main service (program) corresponding to the workflow, and a specific splitting rule of the task may be determined according to information such as a call relationship, a coupling property, or a probability that a call relationship between steps changes included in the main service, and each split task may include one or more steps, for example, in a plurality of workflows including several same steps, if the several steps have a lower coupling property with each other or a higher probability that a call order thereof changes when the several steps are used, the several steps may be separately divided into different tasks; if the coupling between some steps is high or the sequence called in use is hardly changed, the steps can be divided into the same task, and there is no limitation here.
In this embodiment, the direction information of the workflow may be execution sequence information of each task in the workflow, and the tasks and the execution sequences of each task included in the workflow may be determined by a developer according to a main service corresponding to the workflow and an application environment of the workflow and stored in a set storage location corresponding to the workflow. For example, when determining the current task information, the task that the workflow needs to execute currently (i.e. the current task) may be first determined according to the previous task that the workflow has completed executing and the direction information of the workflow, and then the current task information of the workflow may be determined according to the determined current task.
And S120, executing the current task according to the current task information to generate a target configuration item of the current task.
For example, the current task information may include parameter information of the current task, call position information of each parameter, and/or call mode information of each parameter, and the like; the target configuration item of the current task may be a configuration item generated during or after the execution of the current task and used for a subsequent task to call. Each parameter corresponding to the current task can be called when the current task starts to execute or in the current task executing process, and correspondingly, in specific application, the parameter information of each parameter corresponding to the current task can be acquired before the current task starts to execute; and parameter information of parameters required by the current step can be acquired in real time according to the calling position information of each parameter in the execution process of the current task.
And S130, storing the target configuration item in a configuration resource pool corresponding to the workflow according to a set storage mode.
Specifically, when the target configuration item is stored in the configuration resource pool corresponding to the workflow, a corresponding storage location may be set for each target configuration item of each task in the configuration resource pool, and each target configuration item is stored in the storage location corresponding to the target configuration item during storage; or, a number corresponding to each target configuration item of each task is set for each target configuration item, and the target configuration item and the number thereof are directly stored in the corresponding configuration resource pool in a key-value pair mode during storage. In consideration of the utilization rate of the configuration resource pool, the target configuration item may be optionally stored in the configuration resource pool corresponding to the workflow in the form of a key-value pair. In this case, the number of the target configuration item of each task may be set as needed, and for example, the number of a certain target configuration item may be a serial number or other single number when the target configuration item is sorted in the order of generation, or may be function information or data type information thereof. It should be noted that the number of the target configuration item generated by a certain task is preferably the same as the number of the target configuration item in the task that subsequently calls the target configuration item, so as to ensure that the subsequent task can acquire the content of the target configuration item according to the number of the target configuration item.
In this embodiment, the configuration resource pool and the workflow may be set in one-to-one or one-to-many manner, and when the configuration resource pool and the workflow are set in one-to-many manner, different numbers may be set for configuration items of the same function or the same type called by different workflows in the configuration resource pool, so that each workflow can accurately call the configuration items required by the workflow. In order to reduce the workload of the same task that needs to call configuration items with different numbers in different workflows and reduce the coupling between tasks, the configuration resource pool and the workflows can be preferably arranged in a one-to-one manner.
For example, when the target configuration item is stored in the corresponding configuration resource pool, a storage manner such as directly writing the target configuration item into the configuration resource pool, updating a part of configuration items in the configuration resource pool, or performing no storage operation may be selected as needed to store the target configuration item, for example, it may be determined whether a configuration item identical to the target configuration item exists in the configuration resource pool, and if a configuration item identical to the target configuration item in both number and content already exists in the configuration resource pool, an operation of not storing the target configuration item may be performed (as can be understood by those skilled in the art, at this time, a storage operation is not performed, but actually, the operation is equivalent to storing the target configuration item in the configuration resource pool); if the configuration item with the same number but not identical content with the target configuration item exists in the configuration resource pool, replacing the content of the configuration item with the same number (namely updating part of the configuration item in the configuration resource pool) by the content of the target configuration item to store the target configuration item in the configuration resource pool; if the configuration resource pool does not have the configuration item with the same number as the target configuration item, the target configuration item and the number thereof can be directly written into the configuration resource pool. It should be noted that, when there is a configuration item with the same number as the target configuration item but different content in the configuration pool, it may be further determined whether the content of the target configuration item is more detailed than the configuration item already existing in the configuration resource pool, and if so, the content of the configuration item already existing in the configuration resource pool is replaced; alternatively, whether to replace the content of the configuration item with the same number already existing in the configuration resource pool may also be determined according to a replacement rule preset by a developer, which is not limited herein.
The method for organizing the workflow determines current task information of the workflow according to the direction information of the workflow, executes a current task of the workflow according to the determined current task information to generate a target configuration item of the current task, and stores the generated target configuration item in a configuration resource pool corresponding to the workflow according to a set storage mode. By adopting the above technical solution, the configuration resource pool is set for the workflow and the target configuration items generated by the tasks are stored in the configuration resource pool, so that the coupling between the tasks in the workflow can be reduced, the reusability of the task modules can be improved, the time consumed for changing the task parameters can be reduced, and the flexibility of the workflow can be improved.
Example two
Fig. 2 is a schematic flow chart of a workflow organizing method according to a second embodiment of the present invention. In this embodiment, the optimization is performed on the basis of the above embodiment, and in this embodiment, "execute the current task according to the current task information to generate the target configuration item of the current task" is optimized as follows: acquiring an original configuration item of the current task from a configuration resource pool corresponding to the workflow according to the original configuration item information; and processing the original configuration item according to the execution mode information to generate a target configuration item of the current task.
Further, before the determining the current task information of the workflow according to the direction information of the workflow, the method further includes: and acquiring the direction information of the workflow from the configuration file of the workflow.
Correspondingly, as shown in fig. 2, the method for organizing workflows provided by the present embodiment includes:
s210, acquiring the direction information of the workflow from the configuration file of the workflow.
In this embodiment, the direction information of the workflow may be set by a developer as needed, and may be stored in a configuration file of the workflow, and at this time, the direction information of the workflow may be determined by reading the configuration file of the workflow when the workflow is executed. In practical applications, in order to reduce the workload and the occupied storage space required for repeatedly storing the direction information of the workflow, optionally, default direction information may be set for the workflow according to the use frequency of each execution sequence of the workflow, and when the execution sequence of each task in a certain workflow is the same as the set default direction information, a blank configuration file may be set for the workflow or a configuration file may not be set for the workflow. At this time, when the direction information of a certain workflow is obtained, it may be first determined whether the workflow has a configuration file and whether the configuration file of the workflow is a blank configuration file, and if the workflow does not have a configuration file or the configuration file of the workflow is a blank configuration file, the set default direction information may be used as the direction information of the workflow; if the workflow has a configuration file whose file content is not empty, the configuration file can be read to determine the pointing information of the workflow.
S220, determining the current task information of the workflow according to the direction information of the workflow, wherein the workflow comprises at least two tasks.
Preferably, the current task information includes original configuration item information of the current task and execution mode information of the current task. The original configuration item information may be configuration item information required for executing a current task of the workflow, and the execution mode information may include processing mode information of the current task on the original configuration item.
And S230, acquiring the original configuration item of the current task from a configuration resource pool corresponding to the workflow according to the original configuration item information.
For example, when the storage manner of each configuration item in the configuration resource pool is a key value pair, the original configuration information of the current task may be number information of the configuration item required in the execution process of the current task, which may be obtained before the execution of the current task starts, or may be obtained in the execution process of the current task, which is not limited herein. For example, when the original configuration item of the current task is obtained, a storage location corresponding to the target configuration item may be first determined in the configuration resource pool according to the number information of the original configuration item of the current task, and then storage content corresponding to the storage location may be called to determine the original configuration item of the current task.
S240, processing the original configuration item according to the execution mode information to generate a target configuration item of the current task.
In this embodiment, a certain task may correspond to one or more target configuration items, and a target configuration item corresponding to a certain task may be generated in the task execution process and/or generated when the task execution is finished; the execution mode information of the current task may include information such as a call sequence and a processing mode of each original configuration item of the current task. For example, in a specific application, each original configuration item may be sequentially called according to the calling order of each original configuration item and processed according to the corresponding processing manner, so as to generate the target configuration item of the current task.
And S250, storing the target configuration item in a configuration resource pool corresponding to the workflow according to a set storage mode.
The workflow organizing method provided by the second embodiment of the present invention sets a configuration resource pool for a workflow, obtains an original configuration item of a current task from the configuration resource pool corresponding to the workflow when executing each task in the workflow, and stores a target configuration item generated by executing the current task in the configuration resource pool of the workflow, so that the coupling between each task in the workflow can be reduced, the reusability of each task module is improved, the time consumed for changing each task parameter is reduced, and the flexibility of the workflow is improved.
On the basis of the above scheme, the method for organizing workflows provided by this embodiment may further include: before executing the workflow, constructing a configuration resource pool corresponding to the workflow according to a set construction rule; and after the workflow execution is finished, releasing the configuration resource pool corresponding to the workflow according to a set release rule. In this embodiment, the storage resource pool may be a storage space for storing configuration items corresponding to each task of the workflow. In order to avoid confusion of configuration items between different workflows and reduce occupation of storage space, it is preferable that a configuration resource pool corresponding to a workflow is constructed before the workflow starts to execute, and the storage space occupied by the storage resource pool is released after the workflow executes.
For example, when a storage space corresponding to a workflow is constructed, a currently available storage resource of a device may be first obtained, and then a storage space corresponding to resource pool information corresponding to the workflow is randomly or according to a set manner obtained from the available storage resource as a configuration resource pool corresponding to the workflow. The obtained storage space may be a continuous or discontinuous space, the resource pool information corresponding to a certain workflow may be size information of a configured resource pool of the workflow, which may be determined by a developer according to the number and size of configuration items corresponding to each task in the workflow, and the resource pool information corresponding to different workflows may be the same or different. For example, when the storage resource pool corresponding to the workflow is released, the storage space corresponding to the workflow may be released by emptying the content stored in the storage resource pool and pointing the pointer of the first address of the storage resource pool to the last address or other addresses of the storage resource currently available to the device.
EXAMPLE III
Fig. 3A is a flowchart illustrating a preferred workflow organizing method according to a third embodiment of the present invention, where the method may be performed by a workflow organizing apparatus, and the apparatus may be integrated in a computer. Fig. 3B is a schematic diagram of an execution sequence of operations in a workflow (including M tasks) provided by this embodiment, and as shown in fig. 3A and fig. 3B, the method for organizing a workflow provided by this embodiment includes:
s310, monitoring whether a user triggers the operation of executing the workflow, if so, executing S320; if not, the process returns to step S310.
And S320, constructing a configuration resource pool corresponding to the workflow according to the set construction rule, and acquiring the direction information of the workflow.
S330, determining the current task to be executed by the workflow according to the direction information of the workflow, and determining the original configuration item information and the execution mode information of the current task, which are required to be acquired from the configuration resource pool by the current task.
And S340, acquiring the original configuration item of the current task from the configuration resource pool corresponding to the workflow according to the original configuration item information acquired from the configuration resource pool required by the current task.
And S350, processing the original configuration item of the current task according to the execution mode information of the current task to generate a target configuration item of the current task.
And S360, storing the target configuration item of the current task in a configuration resource pool corresponding to the workflow according to a set storage mode.
S370, judging whether the current task has the next task, if so, returning to execute S330; if not, go to S380.
And S380, releasing the configuration resource pool corresponding to the workflow according to the set release rule.
In the preferred workflow organization method provided in the third embodiment of the present invention, a configuration resource pool is set for a workflow before the workflow is executed, an original configuration item of a current task is obtained from the configuration resource pool corresponding to the workflow when each task in the workflow is executed, a target configuration item generated by executing the current task is stored in the configuration resource pool of the workflow, and the configuration resource pool corresponding to the workflow is released after the workflow is executed, so that not only can the coupling between tasks in the workflow be reduced, the reusability of each task module be improved, the time consumed for changing parameters of each task is reduced, and the flexibility of the workflow is improved; the occupation of the configuration resource pool on the storage resources of the equipment can be reduced, the requirements on the performance of the equipment are reduced, and the use experience of a user is improved.
Example four
The fourth embodiment of the invention provides a workflow organizing device. The apparatus may be implemented by software and/or hardware, may be generally integrated in a computer, and may organize the workflow by performing an organization method of the workflow. Fig. 4 is a block diagram of a workflow organizing apparatus according to an embodiment of the present invention, and as shown in fig. 4, the apparatus includes:
a current task determining module 401, configured to determine current task information of a workflow according to direction information of the workflow, where the workflow includes at least two tasks;
a configuration item generating module 402, configured to execute a current task according to the current task information to generate a target configuration item of the current task;
a configuration item storage module 403, configured to store the target configuration item in a configuration resource pool corresponding to the workflow according to a set storage manner.
In the device for organizing workflows provided by the fourth embodiment of the present invention, the current task information of a workflow is determined by the current task determining module according to the direction information of the workflow, the current task of the workflow is executed by the configuration item generating module according to the determined current task information to generate the target configuration item of the current task, and the generated target configuration item is stored in the configuration resource pool corresponding to the workflow by the configuration item storage module according to the set storage manner. By adopting the technical scheme, the embodiment of the invention sets the configuration resource pool for the workflow and stores the target configuration items generated by the tasks in the configuration resource pool, so that the coupling between the tasks in the workflow can be reduced, the reusability of the task modules is improved, the time consumed by changing the task parameters is reduced, and the flexibility of the workflow is improved.
In the above scheme, the current task information may include original configuration item information of a current task and execution mode information of the current task; the configuration item generation module may include: an original configuration item obtaining unit, configured to obtain an original configuration item of the current task from a configuration resource pool corresponding to the workflow according to the original configuration item information; and the target configuration item generating unit is used for processing the original configuration item according to the execution mode information to generate a target configuration item of the current task.
In the foregoing solution, the configuration item storage module may specifically be configured to: storing the target configuration item in a configuration resource pool corresponding to the workflow in a form of key-value pairs.
Further, the workflow organizing apparatus provided in this embodiment may further include: and the direction information acquisition module is used for acquiring the direction information of the workflow from the configuration file of the workflow before the current task information of the workflow is determined according to the direction information of the workflow.
Further, the workflow organizing apparatus provided in this embodiment may further include: the configuration resource pool building module is used for building a configuration resource pool corresponding to the workflow according to a set building rule before the workflow is executed; and the configured resource pool releasing module is used for releasing the configured resource pool corresponding to the workflow according to a set release rule after the workflow execution is finished.
The workflow organizing device provided by the fourth embodiment of the invention can execute the workflow organizing method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the workflow organizing method. For technical details that are not described in detail in this embodiment, reference may be made to a method for organizing a workflow provided in any embodiment of the present invention.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a computer apparatus according to a fifth embodiment of the present invention, as shown in fig. 5, the computer apparatus includes a processor 50, a memory 51, an input device 52, and an output device 53; the number of processors 50 in the computer device may be one or more, and one processor 50 is taken as an example in fig. 5; the processor 50, the memory 51, the input device 52 and the output device 53 in the computer apparatus may be connected by a bus or other means, and the connection by the bus is exemplified in fig. 5.
The memory 51 is used as a computer-readable storage medium for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the organization method of the workflow in the embodiment of the present invention (for example, the current task determination module 401, the configuration item generation module 402, and the configuration item storage module 403 in the organization apparatus of the workflow). The processor 50 executes various functional applications of the computer device and data processing, i.e., implements the above workflow organization method, by executing software programs, instructions, and modules stored in the memory 51.
The memory 51 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 51 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 51 may further include memory located remotely from the processor 50, which may be connected to a computer device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 52 is operable to receive input numeric or character information and to generate key signal inputs relating to user settings and function controls of the computer apparatus. The output device 53 may include a display device such as a display screen.
EXAMPLE six
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method for organizing workflows, the method comprising:
determining current task information of a workflow according to the direction information of the workflow, wherein the workflow comprises at least two tasks;
executing the current task according to the current task information to generate a target configuration item of the current task;
and storing the target configuration item in a configuration resource pool corresponding to the workflow according to a set storage mode.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the method operations described above, and may also perform related operations in the method for organizing workflows provided by any embodiment of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method of organizing a workflow, comprising:
determining current task information of a workflow according to the direction information of the workflow, wherein the workflow comprises at least two tasks, and the current task information comprises original configuration item information of the current task and execution mode information of the current task;
acquiring an original configuration item of the current task from a configuration resource pool corresponding to the workflow according to the original configuration item information;
processing the original configuration item according to the execution mode information to generate a target configuration item of the current task;
and storing the target configuration item in a configuration resource pool corresponding to the workflow according to a set storage mode so as to be called and processed by subsequent tasks in the workflow.
2. The method according to claim 1, wherein the storing the target configuration item in a configuration resource pool corresponding to the workflow according to a set storage manner specifically includes:
storing the target configuration item in a configuration resource pool corresponding to the workflow in a form of key-value pairs.
3. The method of claim 1, further comprising, prior to said determining current task information for the workflow from the workflow's pointing information:
and acquiring the direction information of the workflow from the configuration file of the workflow.
4. The method of claim 1, further comprising:
before executing the workflow, constructing a configuration resource pool corresponding to the workflow according to a set construction rule;
and after the workflow execution is finished, releasing the configuration resource pool corresponding to the workflow according to a set release rule.
5. A workflow organizing device, comprising:
the system comprises a current task determining module, a task processing module and a task processing module, wherein the current task determining module is used for determining current task information of a workflow according to the direction information of the workflow, and the workflow comprises at least two tasks;
the configuration item generation module is used for executing the current task according to the current task information to generate a target configuration item of the current task;
the configuration item storage module is used for storing the target configuration item in a configuration resource pool corresponding to the workflow according to a set storage mode so as to be called and processed by subsequent tasks in the workflow;
the current task information comprises original configuration item information of a current task and execution mode information of the current task; the configuration item generation module comprises:
an original configuration item obtaining unit, configured to obtain an original configuration item of the current task from a configuration resource pool corresponding to the workflow according to the original configuration item information;
and the target configuration item generating unit is used for processing the original configuration item according to the execution mode information to generate a target configuration item of the current task.
6. The apparatus of claim 5, wherein the configuration item storage module is specifically configured to:
storing the target configuration item in a configuration resource pool corresponding to the workflow in a form of key-value pairs.
7. The apparatus of claim 5, further comprising:
and the direction information acquisition module is used for acquiring the direction information of the workflow from the configuration file of the workflow before the current task information of the workflow is determined according to the direction information of the workflow.
8. The apparatus of claim 5, further comprising:
the configuration resource pool building module is used for building a configuration resource pool corresponding to the workflow according to a set building rule before the workflow is executed;
and the configured resource pool releasing module is used for releasing the configured resource pool corresponding to the workflow according to a set release rule after the workflow execution is finished.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor, when executing the program, implements the method of organizing a workflow according to any one of claims 1-4.
10. A storage medium containing computer-executable instructions for performing the method of organizing a workflow of any one of claims 1-4 when executed by a computer processor.
CN201710169181.4A 2017-03-21 2017-03-21 Workflow organization method and device, computer equipment and storage medium Active CN106934555B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710169181.4A CN106934555B (en) 2017-03-21 2017-03-21 Workflow organization method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710169181.4A CN106934555B (en) 2017-03-21 2017-03-21 Workflow organization method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN106934555A CN106934555A (en) 2017-07-07
CN106934555B true CN106934555B (en) 2020-11-10

Family

ID=59432887

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710169181.4A Active CN106934555B (en) 2017-03-21 2017-03-21 Workflow organization method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN106934555B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103559574A (en) * 2013-10-28 2014-02-05 东软集团股份有限公司 Method and system for operating workflow
CN104021460A (en) * 2014-06-27 2014-09-03 北京太格时代自动化系统设备有限公司 Work flow management system and work flow handling method
CN106155769A (en) * 2015-03-26 2016-11-23 北大方正集团有限公司 A kind of workflow processing method, device and workflow engine

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103559574A (en) * 2013-10-28 2014-02-05 东软集团股份有限公司 Method and system for operating workflow
CN104021460A (en) * 2014-06-27 2014-09-03 北京太格时代自动化系统设备有限公司 Work flow management system and work flow handling method
CN106155769A (en) * 2015-03-26 2016-11-23 北大方正集团有限公司 A kind of workflow processing method, device and workflow engine

Also Published As

Publication number Publication date
CN106934555A (en) 2017-07-07

Similar Documents

Publication Publication Date Title
CN109634598B (en) Page display method, device, equipment and storage medium
CN113641457B (en) Container creation method, device, apparatus, medium, and program product
CN103500116A (en) Method and system for clearing data generated by application program
CN111814089A (en) Page rendering method and device, rendering server and storage medium
CN111143039B (en) Scheduling method and device of virtual machine and computer storage medium
CN102541661B (en) Realize the method and apparatus of wait on address synchronization interface
CN108279882B (en) Framework generation method, device, equipment and computer readable medium
CN109271255A (en) Resource regulating method, system and electronic equipment and storage medium
CN112306471A (en) Task scheduling method and device
CN108829391B (en) Method and system for identifying control in Fragment
CN110750307A (en) Micro-service architecture construction method and device
WO2021057811A1 (en) Network node processing method, device, storage medium, and electronic apparatus
CN111126604B (en) Model training method, device, server and storage medium
CN113721936B (en) Application management method, intelligent terminal, device and storage medium
CN106934555B (en) Workflow organization method and device, computer equipment and storage medium
CN116303589A (en) Workflow construction method, device, equipment and readable storage medium
CN113760301B (en) Micro-service application deployment method, device, equipment and storage medium
CN113747423A (en) Cloud mobile phone state synchronization method, device, equipment, storage medium and program product
CN109150993B (en) Method for obtaining network request tangent plane, terminal device and storage medium
CN112527276A (en) Data updating method and device in visual programming tool and terminal equipment
CN113110846A (en) Method and device for acquiring environment variable
CN108845845B (en) Shortcut key creation method and device, electronic equipment and storage medium
CN111858234A (en) Task execution method, device, equipment and medium
CN111813407A (en) Game development method, game running device and electronic equipment
CN109634653A (en) A kind of resource allocation method and device based on component based architecture

Legal Events

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