CN116661767A - File generation method, device, equipment and storage medium - Google Patents

File generation method, device, equipment and storage medium Download PDF

Info

Publication number
CN116661767A
CN116661767A CN202310936090.4A CN202310936090A CN116661767A CN 116661767 A CN116661767 A CN 116661767A CN 202310936090 A CN202310936090 A CN 202310936090A CN 116661767 A CN116661767 A CN 116661767A
Authority
CN
China
Prior art keywords
definition information
flow
information
target file
scene
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.)
Granted
Application number
CN202310936090.4A
Other languages
Chinese (zh)
Other versions
CN116661767B (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.)
Asiainfo Technologies China Inc
Original Assignee
Asiainfo Technologies China Inc
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 Asiainfo Technologies China Inc filed Critical Asiainfo Technologies China Inc
Priority to CN202310936090.4A priority Critical patent/CN116661767B/en
Publication of CN116661767A publication Critical patent/CN116661767A/en
Application granted granted Critical
Publication of CN116661767B publication Critical patent/CN116661767B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming

Landscapes

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

Abstract

The application provides a file generation method, a file generation device, file generation equipment and a storage medium, and relates to the technical field of software engineering. The method comprises the following steps: initializing an editing interface according to definition information of the workflow; acquiring flow configuration information matched with a current scene at an editing interface; and generating a target file for realizing the workflow according to the flow configuration information. The implementation of the application can realize the visual editing and configuration of the flow configuration information, solves the problem of nonstandard configuration, and effectively improves the generation efficiency of the target file, reduces the workload, improves the file quality and reduces the problem positioning difficulty by utilizing the automatic generation mode of the flow configuration information.

Description

File generation method, device, equipment and storage medium
Technical Field
The present application relates to the technical field of software engineering, and in particular, to a method, an apparatus, a device, and a storage medium for generating a file.
Background
With rapid progress in computer and communication technologies, the Internet and an internal local area network (Intranet) play a great role in informatization construction, and market economy makes enterprises or institutions more and more pay attention to improvement of efficiency and reduction of cost brought by informatization construction.
Among them, a workflow (Work Flow) is an indispensable part in informatization construction, and is a calculation model of a workflow, that is, logic and rules of how Work in the workflow is organized together before and after are represented in a computer in an appropriate model and calculated. The main problems solved by the workflow are: to achieve a business objective, documents, information, or tasks are automatically transferred between multiple participants using a computer according to some predetermined rules. In short, a workflow is a series of business activities or tasks that are mutually linked and automatically performed, and as a relatively general technology, nesting can be applied in most business systems, so that the business systems only focus on the development of the business itself, without paying much attention to the operation of the workflow.
In the prior art, in order to realize the development of the related codes of the workflow, a large amount of codes must be written for each complex execution step of the workflow by a developer to acquire the required file and realize the business objective by using the file. The method causes the problems that a plurality of developers are required to write a large amount of similar codes aiming at different processes, the workload is large, the development efficiency is seriously reduced, meanwhile, due to the problem of writing by a plurality of persons, the problems of irregular configuration and difficulty in positioning problem nodes due to different writing ideas are easy to occur, thereby causing poor file quality related to workflow and reducing the working efficiency of a service system.
Disclosure of Invention
The application provides a file generation method, a device, equipment and a storage medium, which can solve the problems of large workload of manually writing codes, low development efficiency, nonstandard configuration and difficulty in positioning problem nodes. In order to achieve the object, embodiments of the present application provide the following solutions.
According to an aspect of an embodiment of the present application, there is provided a method including:
initializing an editing interface according to definition information of a workflow, wherein the definition information comprises drive definition information and sub definition information;
acquiring flow configuration information matched with the current scene from the editing interface;
and generating a target file for realizing the workflow according to the flow configuration information.
In one possible implementation manner, the initializing the editing interface according to the definition information of the workflow includes:
determining drive definition information according to definition information of a preset object;
acquiring sub definition information based on the drive definition information and/or the received maintenance information;
initializing an editing interface according to the sub-definition information;
the preset object comprises at least one of a product object, a network service object and a business object; the sub definition information comprises at least one item of flow definition information, link definition information, trigger object definition information, interface definition information and scene definition information.
In one possible implementation manner, the obtaining the sub definition information based on the drive definition information and/or the received maintenance information includes:
acquiring the flow definition information and the link definition information in the sub definition information according to the driving definition information;
and/or acquiring the scene definition information, the interface definition information and the trigger object definition information in the sub definition information through the received maintenance information.
In one possible implementation manner, the obtaining, at the editing interface, flow configuration information matched with the current scene includes:
displaying an editing interface corresponding to the current scene;
calling a rule editor through an instruction generated by the editing interface;
determining flow configuration information according to rule definition information generated by the rule editor;
the current scene comprises any one of a newly added flow scene and an adjusted flow scene.
In one possible implementation manner, when the current scene is an adjustment flow scene, the displaying an editing interface corresponding to the current scene includes:
and acquiring a corresponding original target file based on the adjustment flow scene, and loading the original target file to the editing interface.
In one possible implementation manner, the obtaining the corresponding original target file based on the adjustment flow scene includes:
creating a new branch according to the main branch corresponding to the adjustment flow scene, and reading an original target file of the main branch;
generating a target file based on the flow configuration information, including:
and calling a preset interface of a generator based on the flow configuration information, generating a target file, storing the target file to the new branch, and merging the new branch with the main branch.
In one possible implementation manner, the generating the target file according to the flow configuration information includes:
and packaging the flow configuration information and transmitting the flow configuration information to the generator so as to generate a target file through the generator, and controlling the generator to call a preset interface to send the target file to a flow application service object so that the flow application service object renders a flow interface according to the target file.
The application provides a file generation device, comprising:
the editing interface initializing module is used for initializing an editing interface according to definition information of a workflow, wherein the definition information comprises driving definition information and sub definition information;
the flow configuration information acquisition module is used for acquiring flow configuration information matched with the current scene from the editing interface;
and the target file generation module is used for generating a target file for realizing the workflow according to the flow configuration information.
The application provides an electronic device comprising a memory, a processor and a computer program stored on the memory, characterized in that the processor executes the computer program to carry out the steps of the method as described above.
According to a further aspect of embodiments of the present application, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method as described above.
The technical scheme provided by the embodiment of the application has the beneficial effects that:
the file generation method provided by the application obtains the definition information, initializes the editing interface according to the definition information, obtains the flow configuration information through the editing interface, and obtains the target file for realizing the workflow by utilizing the flow configuration information. According to the embodiment of the application, the editing interface for editing the flow configuration information is generated through the definition information related to the flow, and the flow configuration information is acquired according to the editing interface, so that the flow configuration information is utilized to generate the target file for realizing the workflow. Therefore, the embodiment of the application can realize visual editing and configuration of the flow configuration information, solves the problem of nonstandard configuration, and effectively improves the generation efficiency of the target file, reduces the workload, improves the file quality and reduces the problem positioning difficulty by utilizing the automatic generation mode of the flow configuration information.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following description will simply refer to the drawings that are required to be used in the description of the embodiments of the present application.
FIG. 1 is a flowchart of a method for generating a file according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a document generating method according to an embodiment of the present application;
FIG. 3 is a flowchart of another embodiment of a file generation method according to the present application;
FIG. 4 is a timing chart of a file generating method according to an embodiment of the present application;
FIG. 5 is a block diagram of a file generating apparatus according to an embodiment of the present application;
fig. 6 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Embodiments of the present application are described below with reference to the drawings in the present application. It should be understood that the embodiments described below with reference to the drawings are exemplary descriptions for explaining the technical solutions of the embodiments of the present application, and the technical solutions of the embodiments of the present application are not limited.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless expressly stated otherwise, as understood by those skilled in the art. It will be further understood that the terms "comprises" and "comprising," when used in this specification, specify the presence of stated features, information, data, steps, operations, elements, and/or components, but do not preclude the presence or addition of other features, information, data, steps, operations, elements, components, and/or groups thereof, all of which may be included in the present specification. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. The term "and/or" as used herein indicates at least one of the items defined by the term, e.g. "a and/or B" indicates implementation as "a", or as "a and B".
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the following detailed description of the embodiments of the present application will be given with reference to the accompanying drawings.
The technical solutions of the embodiments of the present application and technical effects produced by the technical solutions of the present application are described below by describing several exemplary embodiments. It should be noted that the following embodiments may be referred to, or combined with each other, and the description will not be repeated for the same terms, similar features, similar implementation steps, and the like in different embodiments.
The application provides a file generation method, a device, equipment and a storage medium, which aim to solve at least one technical problem in the prior art.
In the embodiment of the application, as shown in fig. 2, an object to which the file generation method is applied includes a programming and design center module, a resource model management module, and a flow configuration management module respectively connected with the programming and design center module and the resource model management module. The resource model management module models, manages and maintains resources related to the generation of the target file, and performs personalized resource processing (such as resource verification, data backfilling, business processing and the like) and basic model configuration. And realizing operations such as resource definition, resource relation definition, resource attribute definition and the like through the personalized resource processing and basic model configuration. The resource model management module can help the system to better manage resources, and improves the availability and management efficiency of the resources.
The programming and design center module is used for acquiring the drive definition information and defining an automatic circulation interface, a gateway interface and gateway configuration according to the received instruction. The automatic flow interface is an interface for completing the processing, expanding and developing of the automatic flow business of the system. The gateway interface is an interface for the personalized business expansion development for controlling the flow direction when submitting the flow. The gateway is configured as configuration information for completing the flow direction control.
Optionally, the flow configuration management module pre-stores sub-definition information, and is provided with an editor and a generator, when generating the target file, the editor initializes an editing interface according to the provided sub-definition information, generates flow configuration information by utilizing editing information input by the editing interface, and the generator generates the target file based on data generated by the editor according to the flow configuration information.
Optionally, the flow definition information includes basic information for maintaining the flow, and a table structure thereof is shown in table one:
list one
The node definition information includes information for maintaining links, and the table structure is shown in table two:
watch II
The scene definition information includes information of a scene, and the table structure thereof is as shown in table three:
watch III
In one embodiment, the editor is a DRL (drools, an easily accessible enterprise policy, easily adjustable, and easily manageable open source business rule engine) editor that includes an initialization rule editor, a business operations rule editor, a button rule editor, and a flow personalization component rule editor.
Specifically, the initialization rule editor is used for initrilles rule configuration (i.e. obtaining rule definition information for process interface rendering), and performs initialization to construct an editing interface based on the process definition information, link definition information and scene definition information, and obtains rule definition information for process interface rendering according to the received editing information. The flow personalization component rule editor is used for flowRules rule configuration (i.e. obtaining rule definition information for flow personalization service processing), for example: and rule definition information of related services such as service expansion after the flow is submitted, flow personalized gateway expansion, flow attachment personalized verification and the like. And realizing various personalized business processes during the process flow transfer of the target file through the rule definition information.
Alternatively, the target file may be a drools file including four types of files including initfiles, resRules, flowRules, and button rules, and the four types of files are generated based on rule definition information of different rule editors among the editors. The generator configures the resulting flowRules file based on flowRules rules, the parameters of which are shown in table four:
table four
In one embodiment, the business operation rule editor is used for the restles rule (i.e. generating definition information of the business rule), the business rule comprises business processing logic for processing the effect of the resource model, and a series of functions (such as functions of checking, backfilling, personalized extension and the like of the business resource) after the combination of the resource and the business are realized through the business rule. Specifically, the target file generated by the generator according to the information of the resRules rule is a resRules file (one of the target files), and the detailed parameters of the resRules file are shown in table five:
TABLE five
In one embodiment, a trigger object rule editor is used for button rules configuration (i.e., setting personalized trigger objects and setting related rules for trigger objects (e.g., trigger rules)), through which a user object of a workflow is interacted with. Specifically, the object file generated by the generator according to the rule definition information generated by the trigger object rule editor is a button files, and the detailed parameters are shown in table six:
TABLE six
As shown in fig. 1, the file generation method includes steps S101 to S103.
S101: initializing an editing interface according to definition information of the workflow.
Optionally, the definition information related to the workflow includes drive definition information and sub definition information, and the step of obtaining the definition information includes: determining drive definition information according to definition information of a preset object; obtaining sub definition information based on the drive definition information and/or the received maintenance information; the preset object comprises at least one of a product object, a network service object and a business object; the sub definition information includes at least one of flow definition information, link definition information, trigger object definition information, interface definition information, and scene definition information. The trigger object information includes definition information of each button in the workflow.
The maintenance information may include information recorded by the development object according to the service requirement or the time development function, and correspondingly adjust the scene definition information, the trigger object definition information and the interface definition information according to the information to obtain new scene definition information, trigger object definition information and interface definition information.
Optionally, acquiring the sub definition information based on the drive definition information and/or the received maintenance information includes: acquiring flow definition information and link definition information in the sub definition information according to the driving definition information; and/or acquiring scene definition information, interface definition information and trigger object definition information in the sub definition information through the received maintenance information.
In one embodiment, the process configuration management module pre-stores sub-definition information, and the orchestration design center module obtains definition information of the product object, the network service object and the business object input by the development object, and realizes process driving definition through the definition information. And acquiring information of flow definition and link definition in the flow data from the flow configuration management module according to the definition information of the product object, the network service object and the service object. And the flow configuration management module processes the pre-stored scene definition information according to the maintenance information input by the development object based on the actual service requirement to obtain the scene definition information, and modifies the pre-stored trigger object definition information and interface definition information according to the maintenance information input by the development object based on the time development function to determine the trigger object definition information and the interface definition information which are currently needed. Specifically, the definition information of the old trigger object is modified through the maintenance information input based on the time development function, new trigger object definition information is generated, and the interface instance can be expanded through the maintenance information and the expanded interface instance can be defined.
Optionally, the sub-definition information is used to define a framework of the workflow, and the editor initializes an editing interface in the editor based on the framework.
S102: and acquiring flow configuration information matched with the current scene at an editing interface.
Optionally, the flow configuration information includes rule definition information, and the editor obtains the rule definition information through the editing interface, and performs personalized interface configuration of the flow according to the rule definition information. Under different current scenes, the personalized interface configuration executed through the editing interface is different.
In one embodiment, the editor displays and compiles the driving definition information, the automatic circulation interface definition information, the gateway interface definition information and the resource information and the sub definition information of the resource model management module provided by the design center module through the initialized editing interface, and obtains rule definition information according to the operation of the development object on the editing interface.
Alternatively, the editor may comprise a plurality of rule editors with which the corresponding rule definition information is derived. Specifically, the rule editor comprises an initialization rule editor, a business operation rule editor, a button rule editor and a flow personalized component rule editor, and different rule definition information is obtained by using different rule editors.
Optionally, the current scene includes any one of a new flow scene and an adjustment flow scene.
In one embodiment, if the scene is a newly added flow, the editor performs personalized interface configuration information of the newly added flow through the editing interface. If the scene of the flow is adjusted, the editor obtains a file corresponding to the flow to be adjusted through the flow configuration service, loads the file to the editing interface, and obtains editing information of the file through the editing interface, so that personalized interface configuration information of the adjusted flow is obtained.
S103: and generating a target file for realizing the workflow according to the flow configuration information.
Optionally, the editor of the flow configuration management module obtains the configuration information of the personalized interface through the editing interface, obtains the configuration information of the flow based on the configuration information of the personalized interface, encapsulates the configuration information of the flow with a preset data structure, and then transmits the encapsulated configuration information of the flow to the generator. The generator parses the received data and generates a target file based on the data.
In one embodiment, the target file is a rule file, including an initialization rule file, a business operation rule file, a trigger object rule file, and a process personalized component rule file, and the generator sends the rule file to a process application service through a set publishing interface, and the process application service generates a workflow (such as a resource delivery process) in a business process according to the rule file.
The application realizes the visual development of the target file, the automatic generation of the file, the analysis of the target file and the presentation of related content on the editing interface, thereby realizing the visual configuration of the configuration information and the automatic generation of the target file.
Compared with the prior art, the method provided by the embodiment of the application generates the editing interface for editing the flow configuration information through the definition information related to the flow, and acquires the flow configuration information according to the editing interface, so that the flow configuration information is utilized to generate the target file for realizing the workflow. Therefore, the embodiment of the application can realize visual editing and configuration of the flow configuration information, solves the problem of nonstandard configuration, and effectively improves the generation efficiency of the target file, reduces the workload, improves the file quality and reduces the problem positioning difficulty by utilizing the automatic generation mode of the flow configuration information.
In a possible embodiment, the present application provides a file generating method, as shown in fig. 3 and fig. 4, including steps S201 to S203:
s201: initializing an editing interface according to definition information of the workflow.
Optionally, acquiring relevant definition information of the workflow includes: determining drive definition information according to definition information of a preset object; acquiring sub definition information based on the drive definition information and/or the received maintenance information; the preset object comprises at least one of a product object, a network service object and a business object; the sub definition information comprises flow definition information, link definition information, trigger object definition information, interface definition information and scene definition information, and an editing interface for rule configuration is generated by using the sub definition information.
In one embodiment, obtaining the sub definition information based on the drive definition information and/or the received maintenance information includes: acquiring flow definition information and link definition information in the sub definition information according to the driving definition information; and/or acquiring scene definition information, interface definition information and trigger object definition information in the sub definition information through the received maintenance information.
Optionally, the sub-definition information is definition information of the whole workflow, and after the sub-definition information is determined to be acquired, an editor in the flow configuration management module receives the sub-definition information and initializes an editing interface based on the sub-definition information.
In one embodiment, the editor is provided with a resource initialization interface, and the resource initialization interface initializes a basic flow interface in the editing interface based on the flow definition information, the link definition information and the scene definition information, and initializes rule definition information in the flow configuration information through configuration information acquired through the basic flow interface. The rule definition information includes attribute information of the basic flow interface related to the resource model, such as order information, business information, operation information, resource information, and the like. The target file generated by initializing the rule definition information generated by the rule editor is an initfiles file, and the resource configuration of the workflow is determined through the file.
The request parameters of the resource initialization interface are shown in table seven, and the corresponding response parameters are shown in table eight:
watch seven
Table eight
S202: and acquiring flow configuration information matched with the current scene at an editing interface.
Optionally, acquiring, at the editing interface, flow configuration information matched with the current scene, including: displaying an editing interface corresponding to the current scene; calling a rule editor through an instruction generated by an editing interface; determining flow configuration information according to rule definition information generated by a rule editor; the current scene comprises any one of a file newly-added flow scene and a file adjustment flow scene.
In one embodiment, the editor is further provided with a flow preview interface, after the editor obtains rule definition information input by the development object through the generated editing interface, each information function (namely, flow configuration information) of the current configuration is displayed by using the flow preview interface, and the development object is enabled to visually check the flow configuration information through the flow preview interface, so that problems can be found in time.
The object descriptions of the request parameter and the response parameter objects of the flow preview interface are shown in a table nine and a table ten respectively:
table nine
Ten meters
Optionally, when the current scene is an adjustment flow scene, displaying an editing interface corresponding to the current scene, including: and acquiring a corresponding original rule file based on the adjustment flow scene, and loading the original rule file to the editing interface.
S203: and the flow configuration information is packaged and then transmitted to a generator, so that a target file is generated through the generator, and the generator is controlled to call a preset interface to send the target file to a flow application service object, so that the flow application service object renders a flow interface according to the target file.
In one embodiment, the editor obtains the edited and maintained flow configuration information, and encapsulates the flow configuration information according to a preset data structure to obtain data in a format matched with the generator. The invoked generator receives the data and generates a target file based on the data.
Optionally, the generated target file is issued to the flow application service through a preset interface, and the flow application service renders a flow interface for generating the workflow according to the target file. Specifically, the preset interfaces are restFul interfaces, the number of the preset interfaces is four, the target files issued by each interface are different, and the flow application service loads the four types of files according to flow granularity and correspondingly generates a flow interface of the workflow.
In one embodiment, the code generator may be a DRL generator that generates the target file based on the flow configuration information and supports version management of the target file. The generated initfiles comprise rules determined by initriletesample (rule templates designed according to the rule configuration structure of initriles) and business logic executed when the rules are met. The flow application executes the business logic portion when all conditions of the workflow are consistent with the conditions set by the rules, and assigns values to other attributes of the initriletesample according to the configuration of the file. Specifically, the parameter configuration of initriletesample is shown in table eleven:
table eleven
The generated target file resRules includes rules determined in resruotemplate (rule templates designed according to rule configuration structures of the resRules) and business logic executed when the rules are satisfied. The flow application executes the business logic part when all the current conditions are consistent with the conditions set by the rules, and the generator assigns values to other attributes of the ResRuleTemplate according to the rule definition information. The parameter configuration of the resruotemplite is shown in a table twelve:
twelve watches
The generated target file flowRules includes rules determined in FlowConfigTemplate (rule templates structured according to the rule configuration of flowRules) and business logic that is executed when this rule is satisfied. And executing a business logic part when all the current conditions are consistent with the conditions set by the rules, and assigning values to other attributes of the FlowConfigTemplate according to the configuration of the rule definition information. The parameter configuration of the FlowConfigTemplate is shown in the table thirteen:
watch thirteen
The generated target file buttons include rules determined in buttons rule templates (rule templates designed according to the rule configuration structure of the buttons) and business logic executed when the rules are satisfied. And executing a business logic part when all the current conditions are consistent with the conditions set by the rules, and assigning values to other attributes of the ButtonRuleTemplate according to the rule definition information. The detailed parameters of the button rule template are shown in table fourteen:
fourteen watch
In one embodiment, the directory structure hierarchy of the generated target file is a process code-scene code-link code, the target file is named based on the target structure hierarchy, and the target file is searched and matched according to the process code, the scene code and the link code.
Optionally, when the editor obtains the flow configuration information based on the adjustment flow scene, in order to implement the capability of deploying and publishing new requirements without restarting the flow application service, obtaining the corresponding original rule file based on the adjustment flow scene includes: creating a new branch according to the main branch corresponding to the adjustment flow scene, and reading an original rule file of the main branch; generating the target file based on the flow configuration information comprises the following steps: and calling a preset interface of the generator based on the flow configuration information, generating a target file, storing the target file into the new branch, and merging the new branch with the main branch.
In one embodiment, the target file is a drools file, stored on a server (e.g., a git (a distributed project version control management tool) server), which supports version management. When the current scene is an adjustment flow scene, an original target file corresponding to the adjustment flow scene is obtained, the branch where the original target file is located is taken as a main branch, and a new branch is created based on the main branch (the version number of the new branch can be created based on a time stamp). Reading a drools file positioned on the main branch, and displaying flow configuration information of the drools file through an editing interface. After the process configuration information is edited, the system sends the edited process configuration information to the generator, and a preset interface (an interface for generating the target file) of the generator is called to generate a new target file. The generator stores the target file on a new branch of the server, and merges the new branch with the main branch (realizes the replacement of the original target file by the new target file), so that the process application service can download the new target file based on the main branch, and obtain the latest rule definition information and render according to the new target file to generate the latest process interface.
In one embodiment, as shown in fig. 5, the present application provides a file generating apparatus, where the file generating apparatus 300 includes an editing interface initializing module 310, a flow configuration information obtaining module 320, and a target file generating module 330, where the editing interface initializing module 310 is configured to initialize an editing interface according to definition information of a workflow, and the definition information includes driving definition information and sub definition information; a flow configuration information obtaining module 320, configured to obtain flow configuration information matched with the current scene at the editing interface; the object file generating module 330 is configured to generate an object file for implementing a workflow according to the flow configuration information.
Optionally, initializing an editing interface according to definition information of the workflow includes: determining drive definition information according to definition information of a preset object; acquiring sub definition information based on the drive definition information and/or the received maintenance information; initializing an editing interface according to the sub-definition information; the preset object comprises at least one of a product object, a network service object and a business object; the sub definition information includes at least one of flow definition information, link definition information, trigger object definition information, interface definition information, and scene definition information.
Optionally, acquiring the sub definition information based on the drive definition information and/or the received maintenance information includes: acquiring flow definition information and link definition information in the sub definition information according to the driving definition information; and/or acquiring scene definition information, interface definition information and trigger object definition information in the sub definition information through the received maintenance information.
Optionally, acquiring, at the editing interface, flow configuration information matched with the current scene, including: displaying an editing interface corresponding to the current scene; calling a rule editor through an instruction generated by an editing interface; determining flow configuration information according to rule definition information generated by a rule editor; the current scene comprises any one of a file newly-added flow scene and a file adjustment flow scene.
Optionally, when the current scene is an adjustment flow scene, displaying an editing interface corresponding to the current scene, including: and acquiring a corresponding original target file based on the adjustment flow scene, and loading the original target file to an editing interface.
Optionally, acquiring the corresponding original target file based on the adjustment procedure scene includes: creating a new branch according to the main branch corresponding to the adjustment flow scene, and reading an original target file of the main branch; generating the target file based on the flow configuration information comprises the following steps: calling a preset interface of a generator based on the flow configuration information, generating a target file, storing the target file to a new branch, and merging the new branch with the main branch.
Optionally, generating the target file according to the flow configuration information includes: and the flow configuration information is packaged and then transmitted to a generator, so that a target file is generated through the generator, and the generator is controlled to call a preset interface to send the target file to a flow application service object, so that the flow application service object renders a flow interface according to the target file.
In an alternative embodiment, there is provided an electronic device, as shown in fig. 6, the electronic device 4000 shown in fig. 6 includes: a processor 4001 and a memory 4003. Wherein the processor 4001 is coupled to the memory 4003, such as via a bus 4002. Optionally, the electronic device 4000 may further comprise a transceiver 4004, the transceiver 4004 may be used for data interaction between the electronic device and other electronic devices, such as transmission of data and/or reception of data, etc. It should be noted that, in practical applications, the transceiver 4004 is not limited to one, and the structure of the electronic device 4000 is not limited to the embodiment of the present application.
The processor 4001 may be a CPU (Central Processing Unit ), general purpose processor, DSP (Digital Signal Processor, data signal processor), ASIC (Application Specific Integrated Circuit ), FPGA (Field Programmable Gate Array, field programmable gate array) or other programmable logic device, transistor logic device, hardware components, or any combination thereof. Which may implement or perform the various exemplary logic blocks, modules and circuits described in connection with this disclosure. The processor 4001 may also be a combination that implements computing functionality, e.g., comprising one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.
Bus 4002 may include a path to transfer information between the aforementioned components. Bus 4002 may be a PCI (Peripheral Component Interconnect, peripheral component interconnect standard) bus or an EISA (Extended Industry Standard Architecture ) bus, or the like. The bus 4002 can be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
Memory 4003 may be, but is not limited to, ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, RAM (Random Access Memory ) or other type of dynamic storage device that can store information and instructions, EEPROM (Electrically Erasable Programmable Read Only Memory ), CD-ROM (Compact Disc Read Only Memory, compact disc Read Only Memory) or other optical disk storage, optical disk storage (including compact discs, laser discs, optical discs, digital versatile discs, blu-ray discs, etc.), magnetic disk storage media, other magnetic storage devices, or any other medium that can be used to carry or store a computer program and that can be Read by a computer.
The memory 4003 is used for storing a computer program for executing an embodiment of the present application, and is controlled to be executed by the processor 4001. The processor 4001 is configured to execute a computer program stored in the memory 4003 to realize the steps shown in the foregoing method embodiment.
The electronic device may be any electronic product that can perform man-machine interaction with an object, for example, a personal computer, a tablet computer, a smart phone, a personal digital assistant (Personal Digital Assistant, PDA), a game console, an interactive internet protocol television (Internet Protocol Television, IPTV), a smart wearable device, and the like.
The electronic device may also include a network device and/or an object device. Wherein the network device includes, but is not limited to, a single network server, a server group made up of multiple network servers, or a cloud based on cloud computing (CloudComputing) made up of a large number of hosts or network servers.
The network in which the electronic device is located includes, but is not limited to, the internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (Virtual Private Network, VPN), and the like.
Embodiments of the present application provide a computer readable storage medium having a computer program stored thereon, which when executed by a processor, implements the steps of the foregoing method embodiments and corresponding content.
The terms "first," "second," "third," "fourth," "1," "2," and the like in the description and in the claims and in the above figures, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate, such that the embodiments of the application described herein may be implemented in other sequences than those illustrated or otherwise described.
It should be understood that, although various operation steps are indicated by arrows in the flowcharts of the embodiments of the present application, the order in which these steps are implemented is not limited to the order indicated by the arrows. In some implementations of embodiments of the application, the implementation steps in the flowcharts may be performed in other orders as desired, unless explicitly stated herein. Furthermore, some or all of the steps in the flowcharts may include multiple sub-steps or multiple stages based on the actual implementation scenario. Some or all of these sub-steps or phases may be performed at the same time, or each of these sub-steps or phases may be performed at different times, respectively. In the case of different execution time, the execution sequence of the sub-steps or stages can be flexibly configured according to the requirement, which is not limited by the embodiment of the present application.
The foregoing is merely an optional implementation manner of some of the implementation scenarios of the present application, and it should be noted that, for those skilled in the art, other similar implementation manners based on the technical ideas of the present application are adopted without departing from the technical ideas of the scheme of the present application, and the implementation manner is also within the protection scope of the embodiments of the present application.

Claims (10)

1. A document generation method, comprising:
initializing an editing interface according to definition information of a workflow, wherein the definition information comprises drive definition information and sub definition information;
acquiring flow configuration information matched with the current scene from the editing interface;
and generating a target file for realizing the workflow according to the flow configuration information.
2. The method of claim 1, wherein initializing the editing interface according to definition information of the workflow comprises:
determining drive definition information according to definition information of a preset object;
acquiring sub definition information based on the drive definition information and/or the received maintenance information;
initializing an editing interface according to the sub-definition information;
the preset object comprises at least one of a product object, a network service object and a business object; the sub definition information comprises at least one item of flow definition information, link definition information, trigger object definition information, interface definition information and scene definition information.
3. The method according to claim 2, wherein the obtaining the sub definition information based on the drive definition information and/or the received maintenance information comprises:
acquiring the flow definition information and the link definition information in the sub definition information according to the driving definition information;
and/or acquiring the scene definition information, the interface definition information and the trigger object definition information in the sub definition information through the received maintenance information.
4. The method of claim 1, wherein the obtaining, at the editing interface, flow configuration information that matches a current scene comprises:
displaying an editing interface corresponding to the current scene;
calling a rule editor through an instruction generated by the editing interface;
determining flow configuration information according to rule definition information generated by the rule editor;
the current scene comprises any one of a newly added flow scene and an adjusted flow scene.
5. The method of claim 4, wherein when the current scene is an adjustment flow scene, the presenting an editing interface corresponding to the current scene comprises:
and acquiring a corresponding original target file based on the adjustment flow scene, and loading the original target file to the editing interface.
6. The method of claim 5, wherein the obtaining the corresponding original target file based on the adjustment flow scene comprises:
creating a new branch according to the main branch corresponding to the adjustment flow scene, and reading an original target file of the main branch;
generating a target file based on the flow configuration information, including:
and calling a preset interface of a generator based on the flow configuration information, generating a target file, storing the target file to the new branch, and merging the new branch with the main branch.
7. The method of claim 6, wherein generating the object file from the flow configuration information comprises:
and packaging the flow configuration information and transmitting the flow configuration information to the generator so as to generate a target file through the generator, and controlling the generator to call a preset interface to send the target file to a flow application service object so that the flow application service object renders a flow interface according to the target file.
8. A document generation apparatus, the apparatus comprising:
the editing interface initializing module is used for initializing an editing interface according to definition information of a workflow, wherein the definition information comprises driving definition information and sub definition information;
the flow configuration information acquisition module is used for acquiring flow configuration information matched with the current scene from the editing interface;
and the target file generation module is used for generating a target file for realizing the workflow according to the flow configuration information.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory, characterized in that the processor executes the computer program to carry out the steps of the method of any one of claims 1-7.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any of claims 1-7.
CN202310936090.4A 2023-07-28 2023-07-28 File generation method, device, equipment and storage medium Active CN116661767B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310936090.4A CN116661767B (en) 2023-07-28 2023-07-28 File generation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310936090.4A CN116661767B (en) 2023-07-28 2023-07-28 File generation method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN116661767A true CN116661767A (en) 2023-08-29
CN116661767B CN116661767B (en) 2023-10-27

Family

ID=87720961

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310936090.4A Active CN116661767B (en) 2023-07-28 2023-07-28 File generation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116661767B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105225066A (en) * 2015-10-27 2016-01-06 东软集团股份有限公司 The verification method of workflow legitimacy and demo plant
CN107657150A (en) * 2017-09-07 2018-02-02 北京荣之联科技股份有限公司 One kind visualization analysis of biological information instrument generation method and device
WO2018036342A1 (en) * 2016-08-23 2018-03-01 中兴通讯股份有限公司 Csar-based template design visualization method and device
CN114691115A (en) * 2022-03-30 2022-07-01 深圳市商汤科技有限公司 Business process system generation method and device, electronic equipment and storage medium
CN114691132A (en) * 2022-03-16 2022-07-01 中汽创智科技有限公司 ARXML file generation method, device, equipment and storage medium
CN115525321A (en) * 2022-08-11 2022-12-27 北京京东振世信息技术有限公司 Distributed task generation method, device, equipment and storage medium
CN115630618A (en) * 2022-11-01 2023-01-20 四川网帮科技有限公司 Intelligent scene editing method, system, equipment and medium for PDF document
CN115756642A (en) * 2022-11-16 2023-03-07 南京领行科技股份有限公司 Business process configuration method, device, equipment and storage medium
WO2023103247A1 (en) * 2021-12-09 2023-06-15 腾讯科技(深圳)有限公司 Component and strategy linkage method and apparatus, and device, system and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105225066A (en) * 2015-10-27 2016-01-06 东软集团股份有限公司 The verification method of workflow legitimacy and demo plant
WO2018036342A1 (en) * 2016-08-23 2018-03-01 中兴通讯股份有限公司 Csar-based template design visualization method and device
CN107657150A (en) * 2017-09-07 2018-02-02 北京荣之联科技股份有限公司 One kind visualization analysis of biological information instrument generation method and device
WO2023103247A1 (en) * 2021-12-09 2023-06-15 腾讯科技(深圳)有限公司 Component and strategy linkage method and apparatus, and device, system and storage medium
CN114691132A (en) * 2022-03-16 2022-07-01 中汽创智科技有限公司 ARXML file generation method, device, equipment and storage medium
CN114691115A (en) * 2022-03-30 2022-07-01 深圳市商汤科技有限公司 Business process system generation method and device, electronic equipment and storage medium
CN115525321A (en) * 2022-08-11 2022-12-27 北京京东振世信息技术有限公司 Distributed task generation method, device, equipment and storage medium
CN115630618A (en) * 2022-11-01 2023-01-20 四川网帮科技有限公司 Intelligent scene editing method, system, equipment and medium for PDF document
CN115756642A (en) * 2022-11-16 2023-03-07 南京领行科技股份有限公司 Business process configuration method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN116661767B (en) 2023-10-27

Similar Documents

Publication Publication Date Title
CN110856038B (en) Video generation method and system, and storage medium
JP5941541B2 (en) System and method for mobile application development
JP6045134B2 (en) Parallel workload simulation for application performance testing
CN111258773B (en) Service call flow information processing method and device and electronic equipment
CN106484394A (en) A kind of fast software development system with double engines
CN109242934B (en) Animation code generation method and equipment
US11474842B2 (en) Integration application creator design
CN106990960A (en) Code dispositions method and device
US11733973B2 (en) Interactive graphic design system to enable creation and use of variant component sets for interactive objects
CN115630835A (en) Activity-based workflow general parameter configuration method and system
CN114154000A (en) Multimedia resource publishing method and device
CN113342330A (en) Front-end engineering generation method and device
CN116661767B (en) File generation method, device, equipment and storage medium
CN111522546B (en) Page generation method, related device and front-end page
CN109558186A (en) A kind of page display method and device
CN109471410B (en) Dynamic preview generation in a product lifecycle management environment
CN114265595A (en) Cloud native application development and deployment system and method based on intelligent contracts
CN105938431A (en) Web page developing method and device
CN112418796A (en) Sub-process node activation method and device, electronic equipment and storage medium
JP2020170530A (en) Information processing apparatus, processing method thereof, and program
KR102385381B1 (en) Method and system for generating script forcamera effect
CN115640044B (en) Unity-based three-dimensional software development method, device, equipment and medium
CN110557414A (en) Method, device and equipment for downloading service scene
US20240119197A1 (en) System and method for maintaining state information when rendering design interfaces in a simulation environment
CN115065866B (en) Video generation method, device, equipment and storage medium

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