CN108153528A - Extension processing method, device, storage medium and the electronic equipment of procedural model - Google Patents

Extension processing method, device, storage medium and the electronic equipment of procedural model Download PDF

Info

Publication number
CN108153528A
CN108153528A CN201711351001.0A CN201711351001A CN108153528A CN 108153528 A CN108153528 A CN 108153528A CN 201711351001 A CN201711351001 A CN 201711351001A CN 108153528 A CN108153528 A CN 108153528A
Authority
CN
China
Prior art keywords
expanding node
attribute
data
node
property value
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
CN201711351001.0A
Other languages
Chinese (zh)
Other versions
CN108153528B (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.)
Neusoft Corp
Original Assignee
Neusoft Corp
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 Neusoft Corp filed Critical Neusoft Corp
Priority to CN201711351001.0A priority Critical patent/CN108153528B/en
Publication of CN108153528A publication Critical patent/CN108153528A/en
Application granted granted Critical
Publication of CN108153528B publication Critical patent/CN108153528B/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/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/44Encoding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/76Adapting program code to run in a different environment; Porting

Abstract

This disclosure relates to a kind of extension processing method of procedural model, device, storage medium and electronic equipment, are related to computer realm.The method includes obtaining the growth data of each expanding node in procedural model;For each expanding node, according to the growth data of the expanding node, assignment is carried out to the target fixed attribute of the expanding node, so that the target fixed attribute after assignment can reflect the growth data of the expanding node.In this way, it can not be identified and be edited by other edit tools based on BPMN2.0 after can just solving the problems, such as the procedural model export of extension and relevant growth data is lost when importing and exporting, the compatibility of the procedural model of extension between different systems is substantially increased, improves the user experience that user uses the procedural model.

Description

Extension processing method, device, storage medium and the electronic equipment of procedural model
Technical field
This disclosure relates to computer realm, and in particular, to a kind of extension processing method of procedural model, device, storage Medium and electronic equipment.
Background technology
Most of procedural model is all based on BPMN2.0 standards at present, but it is respective to have some between different manufacturers Extension, and the model by extension cannot import and export between different systems, because of the content of extension nothing after export Method is identified and is edited by edit tool of the others based on BPMN2.0, so as to lose relevant extension when importing and exporting Data.Traditional solution is before export, the data normally extended is individually stored in independent file, by standard Model and extended model are retained separately, and this scheme can occupy additional memory space, and increase the complexity imported and exported Degree has certain performance loss when merging.And growth data can only be restored in the system being extended, and have office It is sex-limited.
Invention content
The purpose of the disclosure is to provide a kind of extension processing method of procedural model, device, storage medium and electronic equipment, This method can not be identified by other BPMN tools after can solving the procedural model export of extension and edit and import and export When the problem of losing relevant growth data.
To achieve these goals, according to the disclosure in a first aspect, provide a kind of extension processing method of procedural model, The method includes:
Obtain the growth data of each expanding node in procedural model;
For each expanding node, according to the growth data of the expanding node, the target of the expanding node is fixed Attribute carries out assignment, so that the target fixed attribute after assignment can reflect the growth data of the expanding node.
Optionally, the growth data include the first information and/or the second information, wherein, the first information include pair The extended attribute and its property value for the expanding node answered, second information include the extension child node of the corresponding expanding node The attribute and its property value of mark, extension child node;
The growth data according to the expanding node carries out assignment to the target fixed attribute of the expanding node, including:
Each associated nodes in the growth data of the expanding node are encoded, are obtained corresponding to each associated nodes Coded data;
Compressed encoding is carried out to the property value of each attribute in the growth data of the expanding node, obtains the category of each attribute Property the corresponding coded data of value;
By each corresponding coded data of associated nodes and the corresponding coded number of property value of each attribute According to, be combined according to the sequence of preset format, the position relationship of each associated nodes and each attribute, obtain Target string;
It will be in the target fixed attribute of the target character string assignment to the expanding node.
Optionally, each associated nodes encode in the growth data of the described pair of expanding node, obtain each association Coded data corresponding to node, including:
Each associated nodes in the growth data of the expanding node are encoded using tree-like coding mode, are obtained each Coded data corresponding to associated nodes;
The property value of each attribute carries out compressed encoding in the growth data of the described pair of expanding node, obtains each attribute The corresponding coded data of property value, including:
For the property value of each attribute, according to the corresponding coding rule of data type belonging to the property value The property value is encoded, obtains the corresponding coded data of the property value.
Optionally, when the data type is date type, corresponding coding rule is to turn the date type Change long types into;
When the data type is enumeration type, corresponding coding rule is that the enumeration type is converted into integer Type;
The data type be Boolean type when, corresponding coding rule be by the Boolean type be converted into 0 or 1;
When the data type is text type, corresponding coding rule is according to text pressure by the text type Compression algorithm is compressed.
Optionally, the target fixed attribute is ID attributes.
According to the second aspect of the disclosure, a kind of extension process device of procedural model is also provided, described device includes:
Acquisition module, for obtaining the growth data of each expanding node in procedural model;
Processing module, for being directed to each expanding node, according to the growth data of the expanding node, to the extension section The target fixed attribute of point carries out assignment, so that the target fixed attribute after assignment can reflect the extension of the expanding node Data.
Optionally, the growth data include the first information and/or the second information, wherein, the first information include pair The extended attribute and its property value for the expanding node answered, second information include the extension child node of the corresponding expanding node The attribute and its property value of mark, extension child node;
The processing module includes nodes encoding submodule, for being directed to each expanding node, to the expanding node Growth data in each associated nodes encoded, obtain the coded data corresponding to each associated nodes;
The processing module further includes property value encoding submodule, for being directed to each expanding node, to the extension The property value of each attribute carries out compressed encoding in the growth data of node, obtains the corresponding coded number of property value of each attribute According to;
The processing module further includes coded data groups zygote module, and for being directed to each expanding node, this is expanded Each category in the growth data of each corresponding coded data of associated nodes and the expanding node in the growth data of exhibition node The corresponding coded data of property value of property, according to preset format, the position relationship of each associated nodes and described each The sequence of attribute is combined, and obtains the target string for the expanding node;
The processing module further includes assignment submodule, is assigned for that will be directed to the target string of each expanding node It is worth in the target fixed attribute of respective extension node.
Optionally, the nodes encoding submodule is additionally operable to:
For each expanding node, using tree-like coding mode to each association in the growth data of the expanding node Node is encoded, and obtains the coded data corresponding to each associated nodes;
The property value encoding submodule is additionally operable to:
For the property value of each attribute in the growth data of each expanding node, according to the property value belonging to The corresponding coding rule of data type encodes the property value, obtains the corresponding coded data of the property value
According to the third aspect of the disclosure, a kind of computer readable storage medium is also provided, is stored thereon with computer journey Sequence is realized when the program is executed by processor according to the step of first aspect the method for the disclosure.
According to the fourth aspect of the disclosure, a kind of electronic equipment is also provided, including:
Computer readable storage medium according to the third aspect of the disclosure;And
One or more processor, for performing the program in the computer readable storage medium.
Through the above technical solutions, the procedural model that can solve extension can not be by other based on BPMN2.0's after exporting The problem of edit tool identifies and edits and lose relevant growth data when importing and exporting substantially increases the stream of extension The compatibility of journey model between different systems improves the user experience that user uses the procedural model.
Other feature and advantage of the disclosure will be described in detail in subsequent specific embodiment part.
Description of the drawings
Attached drawing is for providing further understanding of the disclosure, and a part for constitution instruction, with following tool Body embodiment is used to explain the disclosure, but do not form the limitation to the disclosure together.In the accompanying drawings:
Fig. 1 is the flow according to a kind of extension processing method of procedural model shown in one exemplary embodiment of the disclosure Figure.
Fig. 2 is the flow according to a kind of extension processing method of procedural model shown in disclosure another exemplary embodiment Figure.
Fig. 3 is the y-bend in a kind of extension processing method of procedural model shown in one exemplary embodiment of the disclosure Tree-encoding illustraton of model.
Fig. 4 is the schematic block according to a kind of extension process device of procedural model shown in one exemplary embodiment of the disclosure Figure.
Fig. 5 is the signal according to a kind of extension process device of procedural model shown in disclosure another exemplary embodiment Block diagram.
Fig. 6 is the block diagram according to a kind of electronic equipment shown in an exemplary embodiment.
Fig. 7 is the block diagram according to a kind of electronic equipment shown in an exemplary embodiment.
Specific embodiment
The specific embodiment of the disclosure is described in detail below in conjunction with attached drawing.It should be understood that this place is retouched The specific embodiment stated is only used for describing and explaining the disclosure, is not limited to the disclosure.
Fig. 1 is the flow according to a kind of extension processing method of procedural model shown in one exemplary embodiment of the disclosure Figure.As shown in Figure 1, the method includes the steps 101 and steps 102.
In a step 101, the growth data of each expanding node in procedural model is obtained.The growth data can be It is obtained while user is extended the procedural model or the procedural model is extended in user It is obtained again after terminating.
In a step 102, for each expanding node, according to the growth data of the expanding node, to the extension section The target fixed attribute of point carries out assignment, so that the target fixed attribute after assignment can reflect the extension of the expanding node Data.
After the growth data is got, as unit of the expanding node, for each expanding node, according to Its growth data carries out assignment to its target fixed attribute so that the target fixed attribute after assignment can save the extension The growth data of point shows.The fixed attribute refers to energy when the procedural model imports and exports between different systems The attribute of stationary nodes in enough models identified by the procedural model edit tool arbitrarily based on identical standard.The target is consolidated Determine attribute and refer to some fixed attribute in the procedural model in stationary nodes, the target fixed attribute, which needs to meet, to exist After carrying out assignment to it, its former property value is not interfered with, and the process semantic of the procedural model will not be impacted.
Through the above technical solutions, growth data is stored in the fixed attribute of its corresponding expanding node, it will be able to It can not be identified and edited and led in importing by other edit tools based on BPMN2.0 after solving the procedural model export of extension The problem of relevant growth data is lost when going out substantially increases the compatibility of the procedural model of extension between different systems, Improve the user experience that user uses the procedural model.
Fig. 2 is the flow according to a kind of extension processing method of procedural model shown in disclosure another exemplary embodiment Figure.Wherein, the growth data includes the first information and/or the second information, wherein, the first information includes corresponding extension The extended attribute and its property value of node, second information include the extension child node mark of the corresponding expanding node, expand Open up the attribute and its property value of child node.The first information and the second information can exist simultaneously, can also there is only wherein It is a kind of.As shown in Fig. 2, the method other than including step 101 shown in FIG. 1, further includes step 201- steps 204.
In step 201, for each expanding node, associated nodes each in the growth data of the expanding node are carried out Coding, obtains the coded data corresponding to each associated nodes.Wherein, the associated nodes refer to the expanding node and with The expanding node has the extension child node of incidence relation.The first information is only existed in the growth data, without second During information, the associated nodes refer to the expanding node;The second information is only existed in the growth data or both there are For one information there is also during the second information, the associated nodes refer to the expanding node and the extension sub- section that the second information includes Point.It is described that each associated nodes are encoded, can be by each associated nodes identification code for example according to certain rule For compared to each associated nodes identify more succinct representation or for example according to each associated nodes it Between position relationship each associated nodes identification code can be represented into the representation of its relative position for other.
In step 202, for each expanding node, to the property value of each attribute in the growth data of the expanding node Compressed encoding is carried out, obtains the corresponding coded data of property value of each attribute.It is each in the growth data of the expanding node What the property value of attribute was typically all conventional data type to write, in step 202, to these according to conventional data class Property value that type is write carries out compressed encoding, these property values are represented with more succinct expression, such as can be according to The original data type of these property values is encoded to other data types by certain transformation rule.The each category finally obtained Property the corresponding coded data of property value should be carried out on the basis of its former property value it is compressed, it is more succinct.
In step 203, for each expanding node, by associated nodes each in the growth data of the expanding node The corresponding coded data of property value of each attribute in the growth data of corresponding coded data and the expanding node, according to pre- If the position relationship of form, each associated nodes and the sequence of each attribute are combined, obtain for the expansion Open up the target string of node.The form write in the syntax rule of language of the preset format, that is, procedural model, institute State that be combined according to the position relationship of each associated nodes and the sequence of each attribute can be for example, the extension The extended attribute and its property value of node make number one, the extension child node of the expanding node, the attribute for extending child node And its property value comes second, it, can be according to the extension child node when the extension child node of expanding node has multiple Sequencing is created to be ranked.Wherein, the sequence of the attribute is itself intrinsic sequence, is not done more when being combined Change.According to combinations of the above method, it will be able to the target string after being encoded.
It in step 204, will be for the mesh of the target character string assignment of each expanding node to respective extension node It marks in fixed attribute.The target string of the growth data of the expression expanding node after described recompile is obtained it Afterwards, it is assigned in the target fixed attribute of the expanding node.The fixed attribute and the target fixed attribute exist To being explained in detail in the explanation of method shown in Fig. 1, details are not described herein again.
Through the above technical solutions, after the growth data for getting each expanding node, first to the growth data In relevant information carry out certain simplification, compressed encoding so that the growth data is more simplified, and then will be passed through again and be compiled The target string simplified of the content of the expression growth data after code is assigned to the target fixed attribute of the expanding node, Can not only ensure in this way solve extension procedural model export after can not by other edit tools based on BPMN2.0 identify and The problem of editing and losing relevant growth data when importing and exporting, greatly improves the procedural model of extension in different system Between compatibility, additionally it is possible to the character for being assigned to target fixed attribute that solves to be likely to occur is long, occupies memory space Problem greatly reduces amount of storage, improves the restorability of procedural model, improves the use that user uses the procedural model It experiences at family.
In a kind of possible embodiment, each associated nodes are compiled in the growth data of the described pair of expanding node Code, obtains the coded data corresponding to each associated nodes, including:Using tree-like coding mode to the spreading number of the expanding node Each associated nodes are encoded in, obtain the coded data corresponding to each associated nodes.It is described to utilize tree-like coding staff Formula encodes each associated nodes in the growth data of the expanding node closes according to the position between the associated nodes System, it is encoded according to tree structure, replaces the associated nodes to identify with the station location marker in tree structure, in this way The representation of the associated nodes can just be simplified.
Wherein, the tree-like coding mode can be such as binary-tree coding mode.For example, root node is represented with path 0, Expanding node in i.e. described growth data, path 00, path 01 represent the child node of left and right two of root node 00, i.e. institute respectively State two extension child nodes of expanding node described in growth data etc..
The property value of each attribute carries out compressed encoding in the growth data of the described pair of expanding node, obtains each attribute The corresponding coded data of property value, including:For the property value of each attribute, according to the data belonging to the property value The corresponding coding rule of type encodes the property value, obtains the corresponding coded data of the property value.The coding rule Then preset in advance, it can be by different data type conversions into corresponding, more succinct in expression data class Type, this makes it possible to the character length for shortening the property value, so as to reduce the occupied amount of storage of property value.
In a kind of possible embodiment, the coding rule can be one or more in following rule:Institute When stating data type as date type, corresponding coding rule is that the date type is converted into long types;In the number During according to type for enumeration type, corresponding coding rule is that the enumeration type is converted into integer type;In the data When type is Boolean type, corresponding coding rule is that the Boolean type is converted into 0 or 1;It is in the data type During text type, the text type is is compressed by corresponding coding rule according to Text compression algorithm, the text Compression algorithm can be arbitrary Text compression algorithm well-known to those skilled in the art, such as Arithmetic, Huffman, Gzip, brotli, zstd algorithm etc..
The coding rule can be but not limited to above-described several coding rules, as long as it can be by the expansion The coding rule that the number of characters of property value in exhibition data is simplified less all may be used.
In a kind of possible embodiment, the target fixed attribute is ID attributes.
A specific embodiment is given below to illustrate the disclosure.
Code below be extension before procedural model in a part of code 1:
Wherein, startEvent is the node identification that will be extended, appear in id after startEvent and Name is its build-in attribute.
Code below is the corresponding part code 2 after extension:
Wherein, unieap:Initiator is the extended attribute of expanding node startEvent, and " man " is its property value, unieap:Attribute and unieap:Cc is the extension child node of expanding node startEvent, appears in unieap: Name=" 123 " id=" sdfsd " after attribute and appear in unieap:Name=" 123 " id after cc =" sdfsd " sex=" man " are respectively its extended attribute and property value.
After being handled by disclosed method the growth data, the correspondingly portion after following simplify is obtained Divide code 3:
As shown in above-mentioned code 3, all simplified as character string 0 compared to the growth data extended to code 1 in code 2: 0,00:123#sdx,01:123#sdx#0, and it has been assigned to the fixed attribute id of expanding node startEvent.
Wherein, 0,00 and 01 expression in above-mentioned character string before colon is expanding node startEvent and extension Two extension child node unieap in data:Attribute and unieap:cc.By binary-tree coding mode to its into After row coding, coded data as 0,00 and 01 is obtained to represent three above-mentioned associated nodes, the binary-tree coding For figure as shown in figure 3, root node 0 represents expanding node, child node 00 and 01 represents two extension child node unieap respectively: Attribute and unieap:000 and 001 in cc, Fig. 3 represents two child nodes of child node 00 respectively, not in above-mentioned code In show.
What the character string 0 in above-mentioned character string after colon, 123#sdx and 123#sdx#0 were represented is each in growth data The property value of attribute.The property value is compiled according to the data type corresponding coding rule belonging to the property value After code, character string 123#sdx is obtained to represent attribute name=" 123 " and id=" sdfsd ", obtains character string 123#sdx#0 To represent attribute name=" 123 ", id=" sdfsd " and sex=" man ".Wherein # is more for dividing in the preset format The format symbol of a property value.The coded data of expression property value after coding put in order with the property value its own It is sequentially identical.
After to the growth data end-of-encode, according to the position relationship of each associated nodes, i.e., expanding node 0, It extends child node 00 and extends the sequence of child node 01, the property value after coding according to the sequence of property value itself and is worked as The syntax rule of preceding code speech is combined, so as to obtain final character string 0:0,00:123#sdx,01:123#sdx#0.
During due to importing and exporting between different systems, the value in attribute id will not lose, therefore thus solve extension Procedural model export after can not be identified and edited and lose when importing and exporting by other edit tools based on BPMN2.0 The problem of relevant growth data, substantially increases the compatibility of the procedural model of extension between different systems, also solves The character that is assigned to target fixed attribute is long, occupies the problem of storage, greatly reduces amount of storage, improves procedural model Restorability improves the user experience that user uses the procedural model.
Fig. 4 is the schematic block according to a kind of extension process device of procedural model shown in one exemplary embodiment of the disclosure Figure.As shown in figure 4, described device includes:
Acquisition module 10, for obtaining the growth data of each expanding node in procedural model;
Processing module 20, for being directed to each expanding node, according to the growth data of the expanding node, to the extension The target fixed attribute of node carries out assignment, so that the target fixed attribute after assignment can reflect the expansion of the expanding node Open up data.
Fig. 5 is the signal according to a kind of extension process device of procedural model shown in disclosure another exemplary embodiment Block diagram.Wherein, the growth data includes the first information and/or the second information, wherein, the first information includes corresponding expansion The extended attribute and its property value of exhibition node, extension child node mark of second information including the corresponding expanding node, Extend the attribute and its property value of child node.
As shown in figure 5, the processing module 20 includes nodes encoding submodule 201, for being directed to each extension section Point encodes each associated nodes in the growth data of the expanding node, obtains the coding corresponding to each associated nodes Data;The processing module 20 further includes property value encoding submodule 202, for being directed to each expanding node, to the expansion The property value for opening up each attribute in the growth data of node carries out compressed encoding, obtains the corresponding coding of property value of each attribute Data;The processing module 20 further includes coded data groups zygote module 203, for being directed to each expanding node, by this It is each in the growth data of each corresponding coded data of associated nodes and the expanding node in the growth data of expanding node The corresponding coded data of property value of attribute, according to preset format, the position relationship of each associated nodes and described each The sequence of a attribute is combined, and obtains the target string for the expanding node;The processing module 20 further includes assignment Submodule 204, for the target character string assignment of each expanding node will to be directed to the target of respective extension node In fixed attribute.
In a kind of possible embodiment, the nodes encoding submodule 201 is used for:For each extension section Point encodes each associated nodes in the growth data of the expanding node using tree-like coding mode, obtains each association Coded data corresponding to node;The property value encoding submodule 202 is used for:For the spreading number of each expanding node The property value of each attribute in, according to the corresponding coding rule of data type belonging to the property value to the property value into Row coding, obtains the corresponding coded data of the property value.
About the device in above-described embodiment, wherein modules perform the concrete mode of operation in related this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 6 is the block diagram according to a kind of electronic equipment 600 shown in an exemplary embodiment.As shown in fig. 6, the electronics is set Standby 600 can include:Processor 601, memory 602, multimedia component 603, input/output (I/O) interface 604, Yi Jitong Believe component 605.
Wherein, processor 601 is used to control the integrated operation of the electronic equipment 600, to complete above-mentioned procedural model All or part of step in extension processing method.Memory 602 is used to store various types of data to support in the electronics The operation of equipment 600, these data can for example include for any application program operated on the electronic equipment 600 or side The instruction of method and the relevant data of application program, such as contact data, the message of transmitting-receiving, picture, audio, video etc.. The memory 602 can be realized, such as quiet by any kind of volatibility or non-volatile memory device or combination thereof State random access memory (Static Random Access Memory, abbreviation SRAM), the read-only storage of electrically erasable Device (Electrically Erasable Programmable Read-Only Memory, abbreviation EEPROM), it is erasable to compile Journey read-only memory (Erasable Programmable Read-Only Memory, abbreviation EPROM) may be programmed read-only storage Device (Programmable Read-Only Memory, abbreviation PROM), and read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, disk or CD.Multimedia component 603 can include screen and audio component.Wherein Screen for example can be touch screen, and audio component is for output and/or input audio signal.For example, audio component can include One microphone, microphone are used to receive external audio signal.The received audio signal can be further stored in storage Device 602 is sent by communication component 605.Audio component further includes at least one loud speaker, for exports audio signal.I/O Interface 604 provides interface between processor 601 and other interface modules, other above-mentioned interface modules can be keyboard, mouse, Button etc..These buttons can be virtual push button or entity button.Communication component 605 is for the electronic equipment 600 and other Wired or wireless communication is carried out between equipment.Wireless communication, such as Wi-Fi, bluetooth, near-field communication (Near Field Communication, abbreviation NFC), 2G, 3G or 4G or they one or more of combination, therefore corresponding communication Component 605 can include:Wi-Fi module, bluetooth module, NFC module.
In one exemplary embodiment, electronic equipment 600 can be by one or more application application-specific integrated circuit (Application Specific Integrated Circuit, abbreviation ASIC), digital signal processor (Digital Signal Processor, abbreviation DSP), digital signal processing appts (Digital Signal Processing Device, Abbreviation DSPD), programmable logic device (Programmable Logic Device, abbreviation PLD), field programmable gate array (Field Programmable Gate Array, abbreviation FPGA), controller, microcontroller, microprocessor or other electronics member Part is realized, for performing the extension processing method of above-mentioned procedural model.
In a further exemplary embodiment, a kind of computer readable storage medium including program instruction, example are additionally provided Such as include the memory 602 of program instruction, above procedure instruction can be performed by the processor 601 of electronic equipment 600 in completion The extension processing method for the procedural model stated.
Fig. 7 is the block diagram according to a kind of electronic equipment 700 shown in an exemplary embodiment.For example, electronic equipment 700 can To be provided as a server.With reference to Fig. 7, electronic equipment 700 includes processor 722, and quantity can be one or more, with And memory 732, for storing the computer program that can be performed by processor 722.The computer program stored in memory 732 Can include it is one or more each correspond to the module of one group of instruction.In addition, processor 722 can be configured as The computer program is performed, to perform the extension processing method of above-mentioned procedural model.
In addition, electronic equipment 700 can also include power supply module 726 and communication component 750, which can be with It is configured as performing the power management of electronic equipment 700, which, which can be configured as, realizes electronic equipment 700 Communication, for example, wired or wireless communication.In addition, the electronic equipment 700 can also include input/output (I/O) interface 758.Electricity Sub- equipment 700 can be operated based on the operating system for being stored in memory 732, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM etc..
In a further exemplary embodiment, a kind of computer readable storage medium including program instruction, example are additionally provided Such as include the memory 732 of program instruction, above procedure instruction can be performed by the processor 722 of electronic equipment 700 in completion The extension processing method for the procedural model stated.
The preferred embodiment of the disclosure is described in detail above in association with attached drawing, still, the disclosure is not limited to above-mentioned reality The detail in mode is applied, in the range of the technology design of the disclosure, a variety of letters can be carried out to the technical solution of the disclosure Monotropic type, these simple variants belong to the protection domain of the disclosure.It is further to note that in above-mentioned specific embodiment Described in each particular technique feature, in the case of no contradiction, can be combined by any suitable means.For Unnecessary repetition is avoided, the disclosure no longer separately illustrates various combinations of possible ways.
In addition, arbitrary combination can also be carried out between a variety of different embodiments of the disclosure, as long as it is without prejudice to originally Disclosed thought should equally be considered as disclosure disclosure of that.

Claims (10)

1. a kind of extension processing method of procedural model, which is characterized in that the method includes:
Obtain the growth data of each expanding node in procedural model;
For each expanding node, according to the growth data of the expanding node, to the target fixed attribute of the expanding node Assignment is carried out, so that the target fixed attribute after assignment can reflect the growth data of the expanding node.
2. according to the method described in claim 1, it is characterized in that, the growth data includes the first information and/or the second letter Breath, wherein, the first information includes the extended attribute and its property value of corresponding expanding node, and second information includes should The extension child node mark of corresponding expanding node, the attribute and its property value of extension child node;
The growth data according to the expanding node carries out assignment to the target fixed attribute of the expanding node, including:
Each associated nodes in the growth data of the expanding node are encoded, obtain the coding corresponding to each associated nodes Data;
Compressed encoding is carried out to the property value of each attribute in the growth data of the expanding node, obtains the property value of each attribute Corresponding coded data;
By each corresponding coded data of associated nodes and the corresponding coded data of property value of each attribute, press It is combined according to the sequence of preset format, the position relationship of each associated nodes and each attribute, obtains target Character string;
It will be in the target fixed attribute of the target character string assignment to the expanding node.
3. according to the method described in claim 2, it is characterized in that, each association in the growth data of the described pair of expanding node Node is encoded, and obtains the coded data corresponding to each associated nodes, including:
Each associated nodes in the growth data of the expanding node are encoded using tree-like coding mode, obtain each association Coded data corresponding to node;
The property value of each attribute carries out compressed encoding in the growth data of the described pair of expanding node, obtains the category of each attribute Property the corresponding coded data of value, including:
For the property value of each attribute, according to the corresponding coding rule of data type belonging to the property value to this Property value is encoded, and obtains the corresponding coded data of the property value.
4. according to the method described in claim 3, it is characterized in that,
When the data type is date type, corresponding coding rule is that the date type is converted into long types;
When the data type is enumeration type, corresponding coding rule is that the enumeration type is converted into integer class Type;
When the data type is Boolean type, corresponding coding rule is that the Boolean type is converted into 0 or 1;
When the data type is text type, the text type is is calculated by corresponding coding rule according to Text compression Method is compressed.
5. according to the described method of any one of claim 1-4, which is characterized in that the target fixed attribute is ID attributes.
6. the extension process device of a kind of procedural model, which is characterized in that described device includes:
Acquisition module, for obtaining the growth data of each expanding node in procedural model;
Processing module, for being directed to each expanding node, according to the growth data of the expanding node, to the expanding node Target fixed attribute carries out assignment, so that the target fixed attribute after assignment can reflect the spreading number of the expanding node According to.
7. device according to claim 6, which is characterized in that the growth data includes the first information and/or the second letter Breath, wherein, the first information includes the extended attribute and its property value of corresponding expanding node, and second information includes should The extension child node mark of corresponding expanding node, the attribute and its property value of extension child node;
The processing module includes nodes encoding submodule, for being directed to each expanding node, the expansion to the expanding node Each associated nodes are encoded in exhibition data, obtain the coded data corresponding to each associated nodes;
The processing module further includes property value encoding submodule, for being directed to each expanding node, to the expanding node Growth data in the property value of each attribute carry out compressed encoding, obtain the corresponding coded data of property value of each attribute;
The processing module further includes coded data groups zygote module, and for being directed to each expanding node, which is saved Each attribute in the growth data of each corresponding coded data of associated nodes and the expanding node in the growth data of point The corresponding coded data of property value, according to preset format, the position relationship of each associated nodes and each attribute Sequence be combined, obtain for the expanding node target string;
The processing module further includes assignment submodule, for the target character string assignment for being directed to each expanding node to be arrived In the target fixed attribute of respective extension node.
8. device according to claim 7, which is characterized in that the nodes encoding submodule is used for:
For each expanding node, using tree-like coding mode to each associated nodes in the growth data of the expanding node It is encoded, obtains the coded data corresponding to each associated nodes;
The property value encoding submodule is used for:
For the property value of each attribute in the growth data of each expanding node, according to the data belonging to the property value The corresponding coding rule of type encodes the property value, obtains the corresponding coded data of the property value.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor The step of any one of claim 1-5 the methods are realized during row.
10. a kind of electronic equipment, which is characterized in that including:
Computer readable storage medium described in claim 9;And
One or more processor, for performing the program in the computer readable storage medium.
CN201711351001.0A 2017-12-15 2017-12-15 Flow model expansion processing method and device, storage medium and electronic equipment Active CN108153528B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711351001.0A CN108153528B (en) 2017-12-15 2017-12-15 Flow model expansion processing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711351001.0A CN108153528B (en) 2017-12-15 2017-12-15 Flow model expansion processing method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN108153528A true CN108153528A (en) 2018-06-12
CN108153528B CN108153528B (en) 2020-08-14

Family

ID=62467233

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711351001.0A Active CN108153528B (en) 2017-12-15 2017-12-15 Flow model expansion processing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN108153528B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110119819A (en) * 2019-05-06 2019-08-13 北京长城华冠汽车科技股份有限公司 A kind of data predetermined process method, apparatus and its storage medium
CN110874307A (en) * 2018-08-29 2020-03-10 北京京东尚科信息技术有限公司 Event buried point collecting and reporting method and device
CN111259063A (en) * 2018-11-30 2020-06-09 北京数聚鑫云信息技术有限公司 Method and device for realizing data export in API mode

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101256492A (en) * 2008-03-31 2008-09-03 宋乃辉 Software development method and system for executing model drive structure
CN101739462A (en) * 2009-12-31 2010-06-16 中兴通讯股份有限公司 Extensible markup language coding method, decoding method and client
US20130097580A1 (en) * 2011-10-13 2013-04-18 Microsoft Corporation Asynchronous programming model mapping
CN106651301A (en) * 2016-11-29 2017-05-10 东软集团股份有限公司 Process monitoring method and apparatus
US20190324731A1 (en) * 2019-06-28 2019-10-24 Intel Corporation Methods and apparatus for evolving computer programs

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101256492A (en) * 2008-03-31 2008-09-03 宋乃辉 Software development method and system for executing model drive structure
CN101739462A (en) * 2009-12-31 2010-06-16 中兴通讯股份有限公司 Extensible markup language coding method, decoding method and client
US20130097580A1 (en) * 2011-10-13 2013-04-18 Microsoft Corporation Asynchronous programming model mapping
CN106651301A (en) * 2016-11-29 2017-05-10 东软集团股份有限公司 Process monitoring method and apparatus
US20190324731A1 (en) * 2019-06-28 2019-10-24 Intel Corporation Methods and apparatus for evolving computer programs

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110874307A (en) * 2018-08-29 2020-03-10 北京京东尚科信息技术有限公司 Event buried point collecting and reporting method and device
CN111259063A (en) * 2018-11-30 2020-06-09 北京数聚鑫云信息技术有限公司 Method and device for realizing data export in API mode
CN111259063B (en) * 2018-11-30 2023-08-15 北京数聚鑫云信息技术有限公司 Method and device for realizing data export in API mode
CN110119819A (en) * 2019-05-06 2019-08-13 北京长城华冠汽车科技股份有限公司 A kind of data predetermined process method, apparatus and its storage medium

Also Published As

Publication number Publication date
CN108153528B (en) 2020-08-14

Similar Documents

Publication Publication Date Title
CN108153528A (en) Extension processing method, device, storage medium and the electronic equipment of procedural model
CN105427353B (en) Compression, method for drafting and the device of scalable vector graphics
CN111249736B (en) Code processing method and device
CN104122806A (en) Household appliance control method and system
CN103095726A (en) Processing method and device of protocol interpreter
CN107368333B (en) Wearable device configuration method and system based on graphical programming and configuration system
CN101146281A (en) A GUI creation model for mobile terminal
CN116088882B (en) Function configuration method, system and medium based on intelligent wearable device
CN108040111A (en) A kind of apparatus and method for supporting natural language interaction
CN103927168B (en) A kind of method and device of object-oriented data model persistence
CN101699396A (en) Method for generating wireless terminal menu and device thereof
CN103970776B (en) A kind of method and system of establishment CAN hierarchical trees
CN109460231A (en) Upper computer software implementation method based on XML
CN110349577A (en) Man-machine interaction method, device, storage medium and electronic equipment
CN110489207A (en) Verification method, apparatus and computer readable storage medium
CN110968307A (en) Micro-service construction method and device based on intelligent generation of basic codes
CN104077414B (en) A kind of decoding apparatus and its coding/decoding method applied to LTE network signal
CN109242929A (en) Conversion method, device, storage medium and the equipment of path coordinate figure
CN105376416A (en) Communication terminal control method and device
CN110716913B (en) Mutual migration method of Kafka and Elasticissearch database data
CN103716127B (en) TTCN-3 based compression coding and decoding method and system
CN101835175B (en) Method and tool for realizing network management configuration
CN109992253A (en) Source code is generated from table and using method, system and the equipment of the source code
CN107992995A (en) A kind of method and system for creating technological process title
CN107832046A (en) Data creation method and device

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