CN113807698A - Work order generation method and device, electronic equipment and readable storage medium - Google Patents

Work order generation method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN113807698A
CN113807698A CN202111094350.5A CN202111094350A CN113807698A CN 113807698 A CN113807698 A CN 113807698A CN 202111094350 A CN202111094350 A CN 202111094350A CN 113807698 A CN113807698 A CN 113807698A
Authority
CN
China
Prior art keywords
work order
target
task
setting
setting instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111094350.5A
Other languages
Chinese (zh)
Inventor
许衍
吴宇浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sangfor Technologies Co Ltd
Original Assignee
Sangfor Technologies 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 Sangfor Technologies Co Ltd filed Critical Sangfor Technologies Co Ltd
Priority to CN202111094350.5A priority Critical patent/CN113807698A/en
Publication of CN113807698A publication Critical patent/CN113807698A/en
Pending legal-status Critical Current

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/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • 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

Abstract

The application discloses a work order generation method, a work order generation device, electronic equipment and a computer readable storage medium, wherein the method comprises the following steps: acquiring a setting instruction; the setting instruction is used for setting the correlation among a plurality of target preset components; combining target component codes respectively corresponding to the target preset components based on the setting instruction to obtain a work order template; acquiring process parameters, and setting a work order template by using the process parameters to obtain a target work order; by utilizing the preset components and the component codes, developers do not need to directly operate the codes, namely, the developers do not need to manually write the complete codes of the work order, and when the business logic changes, the developers do not need to manually modify the complete codes of the work order, but the codes are automatically written and modified by utilizing a mode of generating a setting instruction, so that the efficiency of generating and modifying the work order is greatly improved.

Description

Work order generation method and device, electronic equipment and readable storage medium
Technical Field
The present disclosure relates to the field of work order systems, and in particular, to a work order generating method, a work order generating apparatus, an electronic device, and a computer-readable storage medium.
Background
A work order system refers to a system for communicating work tasks between internal departments of an enterprise or between different enterprises, and may also be referred to as a work order management system or event processing system, a problem tracking system, and the like. The work order system can meet the requirement that personnel at each department of an enterprise need to rapidly transfer other departments to perform cooperative processing in the process of performing work events and processes, so that enterprise management and organization and maintenance become more efficient. At present, because different business scenes, enterprises and other users adopt different business processes, developers need to write complete codes of work orders according to different business processes. In practical application, the business process is often adjusted, and at this time, a developer is required to modify the complete code of the work order. And the efficiency of writing or modifying the complete codes of the work order according to the business process is low, so that the efficiency of generating and modifying the work order is low.
Disclosure of Invention
In view of the above, an object of the present application is to provide a work order generating method, a work order generating apparatus, an electronic device, and a computer-readable storage medium, which improve the efficiency of work order generation and modification.
In order to solve the above technical problem, the present application provides a work order generation method, including:
acquiring a setting instruction; the setting instruction is used for setting the correlation among a plurality of target preset components;
combining target component codes respectively corresponding to the target preset components based on the setting instruction to obtain a work order template;
and acquiring process parameters, and setting the work order template by using the process parameters to obtain a target work order.
Optionally, the combining, based on the setting instruction, the target component codes respectively corresponding to the target preset components to obtain a work order template includes:
determining a combination relation among the target component codes by using relation corresponding data based on the correlation relation among the target preset components;
and combining the target component codes based on the combination relation to obtain the work order template.
Optionally, the obtaining the setting instruction includes:
identifying the operation action of the target preset component in the visual canvas to obtain operation data;
and analyzing the operation data to obtain the setting instruction.
Optionally, the obtaining the process parameters and setting the work order template by using the process parameters to obtain the target work order includes:
performing parameter configuration on a plurality of initial task templates in the work order template by using the process parameters to obtain task templates;
and instantiating the task template to obtain a task instance, and generating the target work order by using the task instance.
Optionally, the method further comprises:
determining a target task instance in the target work order according to the task sequence of the target work order;
if the target task instance is detected to be completed, judging whether the target task instance is the last task instance;
if the task instance is the last task instance, determining that the target work order is completely transferred;
and if the task is not the last task instance, determining that the work order circulation is needed.
Optionally, the method further comprises:
acquiring a first corresponding relation between a task instance and a task processing object;
generating a swim lane map based on the first correspondence and a second correspondence between a swim lane and the task processing object;
and if the occurrence of work order circulation is detected, updating the swim lane graph.
Optionally, the process parameter includes a processing object identifier, where the processing object identifier is used to characterize the task processing object corresponding to the task instance, and the obtaining of the first corresponding relationship between the task and the task processing object includes:
and reading the processing object identification of each task instance in the target work order, and obtaining the first corresponding relation by using the processing object identification.
The application also provides a work order generating device, including:
the acquisition module is used for acquiring a setting instruction; the setting instruction is used for setting the correlation among a plurality of target preset components;
the combination module is used for combining the target component codes respectively corresponding to the target preset components based on the setting instruction to obtain a work order template;
and the setting module is used for acquiring the process parameters and setting the work order template by using the process parameters to obtain the target work order.
The present application further provides an electronic device comprising a memory and a processor, wherein:
the memory is used for storing a computer program;
the processor is configured to execute the computer program to implement the work order generation method.
The present application also provides a computer-readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the work order generation method described above.
The work order generation method provided by the application acquires a setting instruction; the setting instruction is used for setting the correlation among a plurality of target preset components; combining target component codes respectively corresponding to the target preset components based on the setting instruction to obtain a work order template; and acquiring process parameters, and setting the work order template by using the process parameters to obtain a target work order.
Therefore, the method is provided with a plurality of preset components, each preset component is provided with a corresponding component code, and the component codes are used for combining and generating a complete code of the work order. The setting instruction is used for setting the correlation among a plurality of target preset components appointed by the setting instruction, the preset components can represent logic or events, and the business process of the work order can be represented by appointing the target preset components and the correlation among the target preset components. Therefore, after the setting instruction is obtained, the target component codes of the target preset components are combined based on the setting instruction, and based on the combination of the correlation, the logic flow of the work order template can be matched with the business flow of the work order. In different service scenarios or for different users, the service of the same process usually needs to adopt different process parameters. Therefore, after the work order template is obtained, the target work order meeting the requirements can be obtained by acquiring the process parameters and setting the work order template by using the process parameters. And setting component codes for the preset components, wherein the preset components can express the business flow of the target work order through the combination of the correlation, so that the appointed target component codes can be selected and combined through acquiring a setting instruction, and the target work order is obtained through setting based on the smooth parameters. By utilizing the preset components and the component codes, developers do not need to directly operate the codes, namely, the developers do not need to manually write the complete codes of the work order, and when the business logic changes, the developers do not need to manually modify the complete codes of the work order, but the codes are automatically written and modified by utilizing a mode of generating a setting instruction, so that the efficiency of generating and modifying the work order is greatly improved.
In addition, the application also provides a work order generating device, electronic equipment and a computer readable storage medium, and the work order generating device, the electronic equipment and the computer readable storage medium also have the beneficial effects.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments or related technologies of the present application, the drawings needed to be used in the description of the embodiments or related technologies are briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a work order generation method according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of a visualization canvas provided in an embodiment of the present application;
FIG. 3 is a schematic diagram of another visualization canvas provided in an embodiment of the present application;
FIG. 4 is a swim lane diagram provided in an embodiment of the present application;
FIG. 5 is another swim lane diagram provided in the examples of the present application;
FIG. 6 is another swim lane diagram provided in the examples of the present application;
fig. 7 is a flowchart illustrating a specific work order generation and flow according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of a work order generating apparatus according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
When a work order corresponding to a certain service is generated for a work order system, a developer is usually required to write a corresponding complete code based on a service flow corresponding to the service to obtain the work order corresponding to the service flow. With the operation of the service, the operation condition of the service is recorded in a work order circulation (or called updating) mode, so that the tracking and monitoring of the operation condition of the service are realized, and the efficiency of enterprise management and organization maintenance is improved. It can be understood that different enterprises or organizations have specific business scenarios, different business processes exist in different business scenarios, and the efficiency of generating the work order is low when developers write codes for the work order corresponding to each business process. In addition, after the complete code corresponding to the work order is written, the corresponding business process is fixed, and the business process may be adjusted and modified as required.
In order to solve the above problems, the present application provides a work order generation method. Referring to fig. 1, fig. 1 is a flowchart of a work order generation method according to an embodiment of the present disclosure. The method comprises the following steps:
s101: and acquiring a setting instruction.
Specifically, the setting instruction is used for setting a correlation between a plurality of target preset components. The preset components are components which are combined with each other to represent the business process, and the types of the preset components cover the needs of the business process. The relation component can comprise a relation component for controlling the flow operation framework, the relation component can further comprise a component for representing the start and the end of the flow, a component for representing a plurality of flow branch operation rules, for example, a component for representing a plurality of branches to operate in parallel, or a component for representing one branch to operate in a plurality of branches. The preset components may also include components for representing task logic of each task in the business process, such as an automation processing component, a user operation task component, a code extension task component, and the like, and the specific type and content of the components representing the task logic may be different according to different business scenarios. The target preset component is a preset component specified by the setting instruction, namely a preset component required by a business process for forming the target work order, and the specific number of the target preset components is not limited.
The setting instruction is used for indicating the correlation among the target preset components while specifying the target preset components. It can be understood that different business processes can be obtained by setting different correlation relationships for the same target preset component. The correlation relationship is specifically an execution sequence relationship of each target preset component, for example, an output of a certain target preset component is an input of another target preset component.
There are many possible embodiments for the manner of obtaining the setting instruction. In particular, in one embodiment, the setting instruction may be directly input from the outside, that is, the input command line or character string is directly determined as the setting instruction. For example, an operator may directly input a command line or a character string that can be understood by the electronic device into the electronic device through an information interaction component such as a keyboard, a mouse, or a touch screen, so that the electronic device directly obtains a setting instruction.
In the second embodiment, several candidate setting instructions may be set in advance, and in response to a selection instruction for selecting a setting instruction, several of the candidate setting instructions may be selected as a setting instruction using the selection instruction. It is understood that the selection instruction includes an identifier uniquely corresponding to the setting instruction, and the setting instruction may be determined by using the identifier in the selection instruction based on a correlation between the identifier and the candidate setting instruction.
In a third embodiment, the preset component is a visual image component, and a canvas for setting the preset component is provided at the same time. The operator can select the preset components on the canvas and set the correlation of the preset components, and in the setting process or after the setting is completed, the setting result on the canvas is recognized, and the corresponding setting instruction is obtained based on the setting result. The implementation method can provide a visual interface, so that the preset components and the related relation between the preset components are more intuitive.
It should be noted that a specific generation scenario of the setting instruction is not limited, that is, the setting instruction may be used to construct a brand new business process, or may be used to adjust an existing business process.
Further, there are also many possible cases for the representation of the preset component. In one embodiment, the preset components are visual image components, and different preset components are distinguished through the form of image representation. In another possible embodiment, the preset component may be a unique identifier such as a number or a name. It will be appreciated that the two forms described above may be used in combination, i.e. the visual image assembly may include both a graphic and a unique identifier.
S102: and combining the target component codes respectively corresponding to the target preset components based on the setting instruction to obtain the work order template.
The component code is preset, corresponds to the preset component, and is used for realizing the function of the preset component. Since the function and type of the preset component are already determined, it is necessary to have a corresponding component code in order to realize the function thereof. It should be understood that the preset components of different types and functions correspond to different component codes, and the specific contents of the component codes are not limited. Since the setting instruction specifies the correlation between the respective target preset components, the correlation may correspond to the logical relationship between the target component codes. Therefore, the target component codes can be combined based on the setting instruction, and the combined result is the work order template. The work order template refers to a blank template determined by the business logic, and the blank template refers to a template without set operation parameters.
By presetting the target component codes and acquiring the setting instruction, the codes do not need to be manually written every time a work order is generated, or the codes are manually modified when the work order is modified, so that the work order generation efficiency is improved.
S103: and acquiring process parameters, and setting the work order template by using the process parameters to obtain a target work order.
The process parameter refers to a parameter required when a certain service process runs in a specific service scene, and may specifically be a task parameter required for executing a task, or may be a process control parameter for controlling the trend of the service process. And after the process parameters are obtained, setting the work order template by using the process parameters to obtain a target work order which accords with the current service scene.
For the specific manner of setting the work order template, in an embodiment, the process parameters may cover all the parameters to be set in the work order template. In this case, the work order template can be comprehensively set according to the process parameters. That is, if 3 parameters need to be set in the work order template and the number of the process parameters is 3, the 3 process parameters can be used to set the corresponding parameters in the work order template. In another embodiment, the process parameters only cover part of the parameters that need to be set in the work order template, and in this case, after the corresponding parameters in the work order template are set by the process parameters, other parameters that are not set in the work order template may be initialized, that is, the other parameters are set to be in a preset initialization state.
The work order generation method provided by the embodiment of the application is provided with a plurality of preset components, each preset component is provided with a corresponding component code, and the component codes are used for combining and generating the complete codes of the work order. The setting instruction is used for setting the correlation among a plurality of target preset components appointed by the setting instruction, the preset components can represent logic or events, and the business process of the work order can be represented by appointing the target preset components and the correlation among the target preset components. Therefore, after the setting instruction is obtained, the target component codes of the target preset components are combined based on the setting instruction, and based on the combination of the correlation, the logic flow of the work order template can be matched with the business flow of the work order. In different service scenarios or for different users, the service of the same process usually needs to adopt different process parameters. Therefore, after the work order template is obtained, the target work order meeting the requirements can be obtained by acquiring the process parameters and setting the work order template by using the process parameters. And setting component codes for the preset components, wherein the preset components can express the business flow of the target work order through the combination of the correlation, so that the appointed target component codes can be selected and combined through acquiring a setting instruction, and the target work order is obtained through setting based on the smooth parameters. By utilizing the preset components and the component codes, developers do not need to directly operate the codes, namely, the developers do not need to manually write the complete codes of the work order, and when the business logic changes, the developers do not need to manually modify the complete codes of the work order, but the codes are automatically written and modified by utilizing a mode of generating a setting instruction, so that the efficiency of generating and modifying the work order is greatly improved.
Based on the above embodiments, the present embodiment will specifically describe several steps in the above embodiments. In order to enable an operator to clearly and intuitively know the set business process, the process of acquiring the setting instruction may include the following steps:
step 11: and identifying the operation action on the target preset component in the visual canvas to obtain operation data.
Step 12: and analyzing the operation data to obtain a setting instruction.
The visual canvas refers to a visual range used for designating the target preset components and setting the correlation, and an operator can visually check and know the business process formed by the target preset components on the visual equipment by matching the visual preset components. Specifically, an operator can operate the target preset component in the visual canvas, and corresponding operation data can be obtained by identifying operation actions. The operation data refers to data capable of representing operation contents in the visual canvas, such as data representing newly added target preset building operations, data representing operations of deleting target preset components, data representing operations of connecting two target preset components, data representing settings of a certain target preset component, and the like.
After the operation data is obtained, the operation data can be analyzed to obtain a setting instruction capable of representing the correlation of the target preset assembly. In an embodiment, contradictory data in each operation data, for example, data of the newly added target preset component a and the deleted target preset component a, may be identified, and the contradictory data may be deleted, and the remaining data after deletion may be used to obtain the setting instruction. In another embodiment, the target preset components may be determined by using the operation data, after the target preset components are determined, the operation data are divided according to the target preset components, and the correlation corresponding to each target preset component is generated by using the operation data corresponding to each target preset component. Referring to fig. 2 and fig. 3, fig. 2 is a schematic view of a visualization canvas provided in an embodiment of the present application, where a service flow of branch selection is shown, that is, after starting, a corresponding branch is selected according to a value of a parameter n to be executed, where three task elements are connected to an output end of an exclusive gateway element, only one branch connected to the output end of the exclusive gateway element can be executed, and if the parameter n satisfies a condition corresponding to at least two branches, a pre-specified default branch is selected to be executed. For example, when n is 3, it satisfies the conditions of n >2 and n >0, and the branch of n >2 is a default branch, so task 1 corresponding to the branch is executed. Fig. 3 is another schematic diagram of a visualization canvas provided in an embodiment of the present application, where a service flow with parallel branches is shown, that is, after starting, all corresponding branches are selected according to a value of a parameter n to be executed, where three task components are connected to an output end of a parallel gateway component, and all branches meeting a condition in the branches connected to the output end of the parallel gateway component need to be executed. For example, when n is 3, it satisfies the conditions of n >2 and n >0, and thus, task 1 corresponding to the branch of n >2 and task 2 corresponding to the branch of n >0 are executed, and after it is detected that both task 1 and task 2 are completely executed, it is determined that the flow is ended.
After the setting instruction is obtained, combining the target component codes respectively corresponding to the target preset components based on the setting instruction, and obtaining the work order template may include the following steps:
step 21: and determining the combination relation among the target component codes by utilizing the relation corresponding data based on the correlation relation among the target preset components.
Step 22: and combining the target component codes based on the combination relation to obtain a work order template.
The relation corresponding data is data representing the corresponding relation between the correlation between the target preset components and the combination relation between the target component codes. The correlation relationship may be correlated with the combination relationship using the relationship correspondence data so as to combine the target component codes using the correlation relationship. For the specific content of the corresponding data, the embodiment is not limited, for example, for the branch selecting component (or referred to as an exclusive gateway component) and the two preset components connected to the branch selecting component, the two preset components are in an or relationship, that is, only one of the two preset components can be executed. Or, the relationship may be expressed by the target component code of if (a position) else (B position), and the target component codes corresponding to the two preset components should be respectively embedded at the a position and the B position. Therefore, in this case, the combination relationship may be set as a nested relationship, and the corresponding relationship correspondence data may be: the corresponding combination relation is that the target assembly codes corresponding to the target preset assemblies are nested in the appointed positions of the target assembly codes corresponding to the branch selection assemblies. And after the combination relation is determined, combining the target component codes based on the combination relation to obtain the work order template.
After the work order template is obtained, the process parameters are obtained, the work order template is set by using the process parameters, and the process of obtaining the target work order may include the following steps:
step 31: and carrying out parameter configuration on a plurality of initial task templates in the work order template by using the process parameters to obtain the task template.
Step 32: and instantiating the task template to obtain a task instance, and generating a target work order by using the task instance.
The initial task template is a task template which is composed of a plurality of target preset components and is not subjected to parameter configuration. In order to enable the work order to be normally circulated, the tasks in the work order can be processed by the respective task processing objects, and need to be instantiated. Specifically, after the process parameters are obtained, parameter configuration is performed on each initial task template to obtain a task template, and the specific process of parameter configuration may refer to the process of setting the work order template. After the task template is obtained, instantiation processing can be carried out on the task template to generate task instances, and a target work order is generated by utilizing a plurality of task instances. Specifically, each task instance may be combined and further instantiated to obtain a work order instance, which is the target work order. The specific type of the task corresponding to the task instance is not limited, and for example, the task may be a user task, that is, a task that can be completed only by user operation; or may be a script task, i.e., a task that utilizes a script to schedule existing code logic; or may extend a task for coding, i.e., a task that invokes self-written and encapsulated business logic. In addition to this, there may be other tasks such as a mail task, i.e., a task of automatically sending a mail.
After the target work order is obtained, when the corresponding business process is executed, the work order can be circulated (i.e., updated) according to the execution of the task process, so as to represent the business execution condition. Specifically, the process of work order circulation may include the following steps:
step 41: and determining a target task instance in the target work order according to the task sequence of the target work order.
Step 42: and if the target task instance is detected to be completed, judging whether the target task instance is the last task instance.
Step 43: and if the task instance is the last task instance, determining that the target work order is completely transferred.
Step 44: and if the task is not the last task instance, determining that the work order circulation is needed.
The task sequence refers to the sequential execution sequence of each task instance in the target work order. The target task instance refers to a task instance which needs to be executed currently. According to the execution condition of the current business process, the next task instance needing to be executed, namely the target task instance, can be determined. The embodiment does not limit the specific execution manner of the target task instance, for example, the task processing object corresponding to the target task instance may be determined, and the corresponding processing permission is provided for the task processing object, so that the task processing object processes the task instance by using the processing object, and it is ensured that one task instance can be executed by only one user. In addition, when some task instances are executed, task parameters can be obtained, and the task parameters are used as input parameters for executing the task instances to execute the task instances. The number and specific types of task parameters may vary from task instance to task instance.
If the target task instance is detected to be completed, whether the completed target task instance is the last task instance is judged, namely whether the business process is completed is judged. If the task is the last task instance, the service flow is finished, so that the completion of the flow of the target work order can be determined. If the task is not the last task instance, the business process is not finished, and the target work order still needs to be circulated, so that the work order is determined to be circulated. The specific way of the work order flow is to re-determine a new target task instance according to the task sequence of the target work order, i.e. re-execute step 41 until the target task instance is the last task instance.
Based on the above embodiment, in a feasible implementation manner, in order to improve the visualization effect of the work order and clearly show the current execution state of the business process, for example, which link the business process currently flows to and which part of the business process needs to be processed, a swim lane diagram corresponding to the work order is generated in the embodiment of the present application, and the work order is visually displayed by using the swim lane diagram. Specifically, the method can further comprise the following steps:
step 51: and acquiring a first corresponding relation between the task instance and the task processing object.
Step 52: a swim lane map is generated based on the first correspondence and a second correspondence between the swim lane and the task processing object.
Step 53: and if the occurrence of work order circulation is detected, updating the swim lane graph.
The first corresponding relation refers to the corresponding relation between the task instance and the task processing object. The task processing object is an object for executing the task instance, and may specifically be an enterprise, a department, a position, or a user. The second correspondence relationship is an object relationship between the swim lane and the task processing object. The swim lane diagram is a UML (Unified Modeling Language) activity diagram, each swim lane diagram has a plurality of swim lanes, and it can clearly show which department a certain action occurs in. In general, the lane diagram is a department (i.e., a task processing object) in the vertical direction and a post in the horizontal direction (sometimes, no post is distinguished in the horizontal direction). The drawing elements are similar to the conventional flow chart, but on the main body of the business flow, the main body of execution, i.e. department, is distinguished by a lane (vertical bar). Based on the first relation and the second relation, the corresponding relation among the task instance, the task processing object and the swim lane can be determined, and then the swim lane graph can be generated by using the corresponding relation. Referring to FIG. 4, FIG. 4 is a swim lane diagram according to an embodiment of the present disclosure. The cross-company cooperative processing work order is visually displayed, wherein 3 lanes are provided, the lanes correspond to three task processing objects of a company A, a company B and a company C respectively, and each task processing object corresponds to a task instance of company A user processing, company B user processing and company C user processing respectively.
In an embodiment, the flow parameter includes a processing object identifier, and when the target work order is generated, each task instance is marked by using the processing object identifier. When generating the swim lane graph, the processing object identifiers of the task instances in the target work order may be read, and the first corresponding relationship may be obtained by using the processing object identifiers. Namely, the processing object identification on the task instance is utilized to determine the corresponding relationship between the two, namely the first corresponding relationship.
And if the occurrence of work order circulation is detected, namely the completion of the target task instance is detected, or an updating instruction is detected, updating the swim lane graph. The embodiment does not limit the specific way of updating the lane graph, and for example, the visual image corresponding to the next task instance may be marked according to the task order. Based on fig. 4, when it is detected that the task instance processed by the company a user is completed, the visual image of the task instance may be unmarked, and the visual image of the task instance processed by the company B user may be marked according to the task order. The specific manner of marking is not limited, and for example, the color of the visual image of the task instance may be modified.
Referring to FIG. 5, FIG. 5 is another swim lane diagram provided in the present application. The lane diagram shows the situation for a horizontal lane. In general, different horizontal lanes are used to represent different stages of processing, and in the case of FIG. 5, stage 1, stage 2, and stage 3 correspond to three task instances, department 1 processing, department 2 processing, and department 3 processing, respectively. In another embodiment, the lane graph can be a combination of two dimensions, please refer to FIG. 6, where FIG. 6 is another lane graph provided in the examples of the present application. It can be seen that the task instance corresponding to the stage 1 of the company a is the task instance hosted by the company a for processing, the task instance corresponding to the stage 1 of the company B is the task instance hosted by the company B for processing, and so on. When executing a task instance, for example, when executing a task instance of company a stage 1, a task processing object capable of processing the task instance is company a supervisor, and multiple supervisors of company a can view the task.
Referring to fig. 7, fig. 7 is a flowchart illustrating a specific work order generation and flow process according to an embodiment of the present disclosure. Firstly, a work order processing template is deployed, namely, the work order template is generated, a user arranges the work order processing flow template in a visual interface in a mode of dragging and connecting visual preset components, a computer analyzes the work order processing flow template, determines target preset components and relevant relations, analyzes task definitions, and constructs a plurality of initial task templates based on the task definitions to further obtain the work order template. Meanwhile, the lane graph definition is analyzed, and the second corresponding relation is determined.
When a work order is created, input process variables (i.e., process parameters) are acquired, the work order template is read by the process variables for parameter configuration, then the task template is instantiated (i.e., task definition operation) to obtain a task instance, and the task instance is further instantiated (i.e., work order definition operation) to obtain a work order instance. In addition, the first corresponding relation is determined by using the processing object identification in the flow variable, and the associated information of the user and the task instance, namely the swim lane graph, is obtained.
When a work order is transferred, task variables (namely task parameters) are input according to needs, a user completes a task through a gunfight task, and the flow transfer is determined after the task is completed. At this time, the swim lane graph also needs to be circulated, at this time, the work order instance is obtained, whether the previously completed task is the last task or not is determined, and if the task is known, the flow is determined to be finished. If not, generating the associated information of the user and the task instance, namely a new swim lane graph according to the task variable, and updating the old swim lane graph by using the new swim lane graph.
The following introduces a work order generation apparatus provided in an embodiment of the present application, and the work order generation apparatus described below and the work order generation method described above may be referred to correspondingly.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a work order generating device according to an embodiment of the present application, including:
an obtaining module 110, configured to obtain a setting instruction; the setting instruction is used for setting the correlation among a plurality of target preset components;
the combination module 120 is configured to combine the target component codes respectively corresponding to the target preset components based on the setting instruction to obtain a work order template;
the setting module 130 is configured to obtain a process parameter, and set the work order template by using the process parameter to obtain a target work order.
Optionally, the combining module 120 comprises:
the combined relation determining unit is used for determining the combined relation among the target component codes by utilizing the relation corresponding data based on the relevant relation among the target preset components;
and the combination unit is used for combining the target component codes based on the combination relation to obtain the work order template.
Optionally, the obtaining module 110 includes:
the operation identification unit is used for identifying the operation action of the target preset component in the visual canvas to obtain operation data;
and the analysis unit is used for analyzing the operation data to obtain a setting instruction.
Optionally, the setting module 130 includes:
the parameter configuration unit is used for carrying out parameter configuration on a plurality of initial task templates in the work order template by using the process parameters to obtain a task template;
and the instantiation processing unit is used for performing instantiation processing on the task template to obtain a task instance and generating a target work order by using the task instance.
Optionally, the method further comprises:
the target example determining module is used for determining a target task example in the target work order according to the task sequence of the target work order;
the judging module is used for judging whether the target task instance is the last task instance or not if the target task instance is detected to be completed;
the completion determining module is used for determining that the target work order is completed if the last task instance is available;
and the flow determining module is used for determining that the work order flow needs to be carried out if the task is not the last task instance.
Optionally, the method further comprises:
the first corresponding relation acquisition module is used for acquiring a first corresponding relation between the task instance and the task processing object;
a swim lane map generation module for generating a swim lane map based on the first correspondence and the second correspondence between the swim lane and the task processing object;
and the swim lane map updating module is used for updating the swim lane map if the generation of work order circulation is detected.
Optionally, the process parameter includes a processing object identifier, where the processing object identifier is used to characterize a task processing object corresponding to the task instance, and the first corresponding relationship obtaining module includes:
and the identification recognition unit is used for reading the processing object identification of each task instance in the target work order and obtaining the first corresponding relation by using the processing object identification.
In the following, the electronic device provided by the embodiment of the present application is introduced, and the electronic device described below and the work order generation method described above may be referred to correspondingly.
Referring to fig. 9, fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. Wherein the electronic device 100 may include a processor 101 and a memory 102, and may further include one or more of a multimedia component 103, an information input/information output (I/O) interface 104, and a communication component 105.
The processor 101 is configured to control the overall operation of the electronic device 100 to complete all or part of the steps in the work order generating method; the memory 102 is used to store various types of data to support operation at the electronic device 100, such data may include, for example, instructions for any application or method operating on the electronic device 100, as well as application-related data. The Memory 102 may be implemented by any type or combination of volatile and non-volatile Memory devices, such as one or more of Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic or optical disk.
The multimedia component 103 may include a screen and an audio component. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in the memory 102 or transmitted through the communication component 105. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 104 provides an interface between the processor 101 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 105 is used for wired or wireless communication between the electronic device 100 and other devices. Wireless Communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G, or 4G, or a combination of one or more of them, so that the corresponding Communication component 105 may include: Wi-Fi part, Bluetooth part, NFC part.
The electronic Device 100 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components, and is configured to perform the work order generation method according to the above embodiments.
The following describes a computer-readable storage medium provided in an embodiment of the present application, and the computer-readable storage medium described below and the work order generation method described above may be referred to correspondingly.
The present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the above-mentioned work order generation method.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it should also be noted that, herein, relationships such as first and second, etc., are intended only to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms include, or any other variation is intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that includes a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
The principle and the implementation of the present application are explained herein by applying specific examples, and the above description of the embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A work order generation method, comprising:
acquiring a setting instruction; the setting instruction is used for setting the correlation among a plurality of target preset components;
combining target component codes respectively corresponding to the target preset components based on the setting instruction to obtain a work order template;
and acquiring process parameters, and setting the work order template by using the process parameters to obtain a target work order.
2. The work order generation method according to claim 1, wherein the combining target component codes respectively corresponding to the target preset components based on the setting instruction to obtain a work order template comprises:
determining a combination relation among the target component codes by using relation corresponding data based on the correlation relation among the target preset components;
and combining the target component codes based on the combination relation to obtain the work order template.
3. The work order generation method of claim 1, wherein the obtaining the setting instruction comprises:
identifying the operation action of the target preset component in the visual canvas to obtain operation data;
and analyzing the operation data to obtain the setting instruction.
4. The work order generation method according to claim 1, wherein the obtaining of the process parameters and the setting of the work order template by using the process parameters to obtain the target work order comprises:
performing parameter configuration on a plurality of initial task templates in the work order template by using the process parameters to obtain task templates;
and instantiating the task template to obtain a task instance, and generating the target work order by using the task instance.
5. The work order generation method of claim 4, further comprising:
determining a target task instance in the target work order according to the task sequence of the target work order;
if the target task instance is detected to be completed, judging whether the target task instance is the last task instance;
if the task instance is the last task instance, determining that the target work order is completely transferred;
and if the task is not the last task instance, determining that the work order circulation is needed.
6. The work order generation method as claimed in any one of claims 1 to 5, further comprising:
acquiring a first corresponding relation between a task instance and a task processing object;
generating a swim lane map based on the first correspondence and a second correspondence between a swim lane and the task processing object;
and if the occurrence of work order circulation is detected, updating the swim lane graph.
7. The method according to claim 6, wherein the process parameter includes a processing object identifier, the processing object identifier is used to characterize the task processing object corresponding to the task instance, and the obtaining of the first correspondence between the task and the task processing object includes:
and reading the processing object identification of each task instance in the target work order, and obtaining the first corresponding relation by using the processing object identification.
8. A work order generation apparatus, comprising:
the acquisition module is used for acquiring a setting instruction; the setting instruction is used for setting the correlation among a plurality of target preset components;
the combination module is used for combining the target component codes respectively corresponding to the target preset components based on the setting instruction to obtain a work order template;
and the setting module is used for acquiring the process parameters and setting the work order template by using the process parameters to obtain the target work order.
9. An electronic device comprising a memory and a processor, wherein:
the memory is used for storing a computer program;
the processor for executing the computer program to implement the work order generation method of any of claims 1 to 7.
10. A computer-readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the work order generation method of any of claims 1 to 7.
CN202111094350.5A 2021-09-17 2021-09-17 Work order generation method and device, electronic equipment and readable storage medium Pending CN113807698A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111094350.5A CN113807698A (en) 2021-09-17 2021-09-17 Work order generation method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111094350.5A CN113807698A (en) 2021-09-17 2021-09-17 Work order generation method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN113807698A true CN113807698A (en) 2021-12-17

Family

ID=78939746

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111094350.5A Pending CN113807698A (en) 2021-09-17 2021-09-17 Work order generation method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113807698A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023221962A1 (en) * 2022-05-17 2023-11-23 北京字跳网络技术有限公司 View generation method and apparatus, and electronic device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102486730A (en) * 2010-12-06 2012-06-06 上海协讯软件有限公司 Workflow realization method and workflow system capable of customizing flow in user-defined manner
CN107480893A (en) * 2017-08-18 2017-12-15 浪潮软件股份有限公司 A kind of flow method of combination and device
CN107888681A (en) * 2017-11-09 2018-04-06 北京中电普华信息技术有限公司 A kind of business flow processing method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102486730A (en) * 2010-12-06 2012-06-06 上海协讯软件有限公司 Workflow realization method and workflow system capable of customizing flow in user-defined manner
CN107480893A (en) * 2017-08-18 2017-12-15 浪潮软件股份有限公司 A kind of flow method of combination and device
CN107888681A (en) * 2017-11-09 2018-04-06 北京中电普华信息技术有限公司 A kind of business flow processing method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023221962A1 (en) * 2022-05-17 2023-11-23 北京字跳网络技术有限公司 View generation method and apparatus, and electronic device and storage medium

Similar Documents

Publication Publication Date Title
US8930833B2 (en) Method and apparatus to present an integrated process modeler
KR101885089B1 (en) Excel export method for bim design files
WO2018036342A1 (en) Csar-based template design visualization method and device
CN109787957B (en) Configuration method of configuration file and related device
CN111831258A (en) Method and system for creating application program
US10691429B2 (en) Converting whiteboard images to personalized wireframes
US11087259B2 (en) Business designer
US20150278316A1 (en) Task reduction in dynamic case management
US20090031226A1 (en) Method and System for Extending Task Models for Use In User-Interface Design
CN113807698A (en) Work order generation method and device, electronic equipment and readable storage medium
KR101408280B1 (en) Apparatus and method for logic creation of development tools, and storage medium recording program for implementing method thereof
US10884711B2 (en) Code management system and code management method using a visual programming tool
US11086696B2 (en) Parallel cloned workflow execution
US11314530B2 (en) User-based extension setting devices, methods, and programs
CN112825033A (en) Interface code generation method, device, equipment and storage medium
US9177277B2 (en) Workflow modeling with worklets and transitions
CN113254189B (en) Task management method, system and equipment for defect detection
JP6336922B2 (en) Business impact location extraction method and business impact location extraction device based on business variations
JP5540856B2 (en) Apparatus and method for setting a workflow
CN113238746A (en) Hybrid programming control method, device, equipment and storage medium
CN113805883A (en) Method and system for creating application program
CN110704537A (en) Intelligent contract generation method, device, equipment and storage medium
WO2007097014A1 (en) Operation confirming method for information system, its operation confirming program, recording medium, and operation confirming system
JP2008191993A (en) Gui component display device and gui component display method
CN111290683A (en) Method, device and equipment for visual application instantiation

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