[go: up one dir, main page]

CN113448848A - Transformation method and device based on use case method, electronic equipment and storage medium - Google Patents

Transformation method and device based on use case method, electronic equipment and storage medium Download PDF

Info

Publication number
CN113448848A
CN113448848A CN202110715629.4A CN202110715629A CN113448848A CN 113448848 A CN113448848 A CN 113448848A CN 202110715629 A CN202110715629 A CN 202110715629A CN 113448848 A CN113448848 A CN 113448848A
Authority
CN
China
Prior art keywords
role
keyword
keywords
diagram
business
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
CN202110715629.4A
Other languages
Chinese (zh)
Other versions
CN113448848B (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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202110715629.4A priority Critical patent/CN113448848B/en
Publication of CN113448848A publication Critical patent/CN113448848A/en
Application granted granted Critical
Publication of CN113448848B publication Critical patent/CN113448848B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Machine Translation (AREA)

Abstract

The disclosure provides a transformation method and device based on a use-case method, an electronic device and a storage medium. The present disclosure relates to the field of artificial intelligence technology, and may be used in the field of financial technology. The transformation method based on the use case method comprises the following steps: extracting keywords in an operation description natural language for expressing a business operation general flow, wherein the keywords comprise at least one role keyword, at least one action keyword corresponding to each role keyword and an operation object keyword corresponding to each action keyword; generating a role lane diagram for expressing the business operation sub-process executed by each operator role according to each keyword; and combining all the role lane diagrams according to the operation sequence of the business operation general flow to generate a use case general diagram for expressing the business operation general flow.

Description

Transformation method and device based on use case method, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of artificial intelligence technologies, and in particular, to a transformation method and apparatus based on a use-case method, an electronic device, a computer-readable storage medium, and a computer program product.
Background
The current use case method is widely applied to compiling business requirements. The use case method realizes the expression of business requirements together by using a standardized use case diagram and a structured use case specification. When the use case specification expresses the service requirement in a natural language mode, the problem of language conversion effect can be inevitably generated, ambiguity can be caused, the requirement expressed by the natural language is difficult to quickly evaluate the requirement integrity, and the uncertainty of the requirement quality is increased; the use case diagram can satisfy the expression completeness, but the operation is complex for a user, and the learning cost is large.
Disclosure of Invention
In view of the above, the present disclosure provides a transformation method and apparatus based on a use-case method, an electronic device, a computer-readable storage medium, and a computer program product.
The transformation method based on the use case method comprises the following steps:
extracting keywords in an operation description natural language for expressing a business operation general flow, wherein the keywords comprise at least one role keyword, at least one action keyword corresponding to each role keyword and an operation object keyword corresponding to each action keyword;
generating a role lane graph for expressing a business operation sub-process executed by each operator role according to each keyword, wherein each role lane graph comprises role graph elements and at least one operation graph element associated with each role graph element, the role graph elements are used for expressing the meanings of the role keywords, and the operation graph elements are used for expressing the meanings of the action keywords and the operation object keywords corresponding to the action keywords; and
and combining all the role lane diagrams according to the operation sequence of the business operation general flow to generate a use case general diagram for expressing the business operation general flow.
According to an embodiment of the present disclosure, further comprising: and adding the business processing rules followed by each business operation sub-flow in each role swim lane graph.
According to the embodiment of the disclosure, extracting the keywords in the original natural language for expressing the general flow of the business operation comprises:
acquiring role keywords, at least one action keyword corresponding to the role keywords and at least one operation object word corresponding to each action keyword from an original natural language; and
an operation object keyword corresponding to each action keyword is determined from at least one operation object word corresponding to each action keyword.
According to an embodiment of the present disclosure, wherein determining the operation object keyword corresponding to each action keyword from the at least one operation object word corresponding to each action keyword comprises:
determining a service type corresponding to a service operation total flow;
acquiring the standard weight of each operation object word under the service type;
and determining the operation object keywords corresponding to each action keyword according to the standard weight of each operation object word under the service type.
According to an embodiment of the present disclosure, wherein generating a character lane graph corresponding to each character keyword according to each keyword includes:
converting the role keywords into role map elements by adopting an approximate matching method; and
and converting the action keywords and the operation object keywords corresponding to the action keywords into operation chart elements by adopting an approximate matching method.
According to an embodiment of the disclosure:
the keywords also comprise key conjunctions;
each role lane graph also comprises a gateway judgment graph element, wherein the gateway judgment graph element is associated with the key conjunctions and is used for expressing the branch operation of the business operation sub-process;
generating a character lane graph corresponding to each character keyword according to each keyword further comprises: and converting the key conjunctions into gateway judgment graph elements.
According to an embodiment of the present disclosure, further comprising:
extracting key elements corresponding to each business operation sub-process from each role lane graph of the use case general graph respectively, wherein the key elements comprise a role graph element corresponding to each business operation sub-process and at least one operation graph element associated with the role graph element;
generating role operation descriptions corresponding to the business operation sub-processes according to the key elements, wherein each role operation description is expressed in a natural language form, each role operation description comprises a role subject, at least one operation predicate associated with the role subject and an operation object associated with each operation predicate, the role subject is used for expressing the meaning of the role-diagram elements, and the operation predicate and the operation object associated with the operation predicate are used for expressing the meaning of the operation-diagram elements;
and combining all role operation descriptions according to the operation sequence of the business operation general flow to generate an operation description natural language for expressing the business operation general flow.
According to an embodiment of the present disclosure, wherein: each role lane graph is added with a business processing rule followed by each business operation sub-process;
generating the role operation description corresponding to each role element according to each key element comprises the following steps:
and generating role operation descriptions corresponding to the role element elements according to the key elements and the business processing rules followed by each business operation sub-process.
Another aspect of the present disclosure provides a transformation apparatus based on a use-case method, including a first extraction module, a first generation module, and a first combination module.
The first extraction module is used for extracting keywords in an operation description natural language for expressing a business operation general flow, wherein the keywords comprise at least one role keyword, at least one action keyword corresponding to each role keyword, and an operation object keyword corresponding to each action keyword.
The first generation module is used for generating a role lane diagram used for expressing the business operation sub-process executed by each operator role according to each keyword, each role lane diagram comprises role diagram elements and at least one operation diagram element associated with each role diagram element, each role diagram element is used for expressing the meanings of the role keywords, and each operation diagram element is used for expressing the meanings of the action keywords and the operation object keywords corresponding to the action keywords.
And the first combination module is used for combining all the role lane diagrams according to the operation sequence of the business operation general flow so as to generate a use case general diagram for expressing the business operation general flow.
According to an embodiment of the present disclosure, the apparatus further includes: and the adding module is used for adding the business processing rule followed by each business operation sub-flow in each role swim lane graph.
According to the embodiment of the disclosure, the first extraction module comprises an acquisition unit and a determination unit.
The system comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is used for acquiring role keywords, at least one action keyword corresponding to the role keywords and at least one operation object word corresponding to each action keyword from an original natural language. A determining unit configured to determine an operation object keyword corresponding to each action keyword from at least one operation object word corresponding to each action keyword.
According to an embodiment of the present disclosure, the determining unit includes a first determining subunit, an obtaining subunit, and a second determining subunit.
The first determining subunit is configured to determine a service type corresponding to a total flow of service operation; the obtaining subunit is used for obtaining the standard weight of each operation object word under the service type; and the second determining subunit is used for determining the operation object keywords corresponding to each action keyword according to the standard weight of each operation object word under the service type.
According to the embodiment of the disclosure, the first generation module comprises a first conversion unit and a second conversion unit.
The first conversion unit is used for converting the role keywords into role map elements by adopting an approximate matching method; and a second conversion unit for converting the action keyword and the operation object keyword corresponding to the action keyword into an operation diagram element by using an approximate matching method.
According to an embodiment of the present disclosure, the keyword further includes a key conjunction; each role lane graph further comprises a gateway judgment graph element, wherein the gateway judgment graph element is associated with the key conjunctions and is used for expressing branch operations of the business operation sub-process.
The first generation module further comprises: and the third conversion unit is used for converting the key conjunctions into gateway judgment graph elements.
According to an embodiment of the present disclosure, the apparatus further includes a second extraction module, a second generation module, and a second combination module.
The second extraction module is used for extracting key elements corresponding to each business operation sub-process from each role lane diagram of the use case general diagram, wherein the key elements comprise a role diagram element corresponding to each business operation sub-process and at least one operation diagram element associated with the role diagram element.
And the second generation module is used for generating role operation descriptions corresponding to the business operation sub-processes according to the key elements, wherein each role operation description is expressed in a natural language form, each role operation description comprises a role subject, at least one operation predicate associated with the role subject and an operation object associated with each operation predicate, the role subject is used for expressing the meaning of the role-diagram elements, and the operation predicate and the operation object associated with the operation predicate are used for expressing the meaning of the operation-diagram elements.
And the second combination module combines all the role operation descriptions according to the operation sequence of the business operation general flow to generate an operation description natural language for expressing the business operation general flow.
According to an embodiment of the present disclosure, wherein: each role swim lane graph has business process rules added to it that each business operation sub-process follows.
Generating the role operation description corresponding to each role element according to each key element comprises the following steps: and generating role operation descriptions corresponding to the role element elements according to the key elements and the business processing rules followed by each business operation sub-process.
Another aspect of the present disclosure provides an electronic device including: one or more processors, and a memory; wherein the memory is for storing one or more programs; wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the use-case based transformation method as described above.
Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions for implementing the transformation method based on the use-case method as described above when executed.
Another aspect of the present disclosure provides a computer program product comprising computer executable instructions for implementing the use-case method based transformation method as described above when executed.
According to the embodiment of the disclosure, by adopting the conversion method, the key words in the operation description natural language for expressing the business operation general flow are extracted, so that the key information in the business operation flow is prevented from being missed; and generating a role lane diagram for expressing the business operation sub-process executed by each operator role according to each keyword, and constructing the incidence relation between the keyword and the standardized use case diagram element, so that the main process and the alternative process described by the natural language in the use case specification can be converted into the standardized activity diagram for expression. Through conversion, the problems of long learning period and high difficulty in drawing the activity diagram can be effectively avoided, the content of the case specification expressed by the natural language can be explained in an auxiliary way, the business processing logic and the rule to be followed by the business processing logic are more complete, the semantics are clearer, the quality of the case specification is improved, the learning cost of operators is saved, and the working efficiency is improved.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments of the present disclosure with reference to the accompanying drawings, in which:
FIG. 1 schematically illustrates an exemplary system architecture to which the use-case based transformation method and apparatus of the present disclosure may be applied;
FIG. 2 schematically illustrates a flow diagram of a transformation method based on a use-case approach in accordance with an embodiment of the present disclosure;
FIG. 3 schematically illustrates a flow diagram for extracting keywords in an original natural language for expressing a business operation overall flow according to an embodiment of the present disclosure;
FIG. 4 schematically illustrates a flow diagram of a transformation method based on a use-case approach, according to another embodiment of the present disclosure;
FIG. 5 schematically illustrates a block diagram of a use-case method based conversion apparatus according to an embodiment of the present disclosure; and
FIG. 6 schematically shows a block diagram of an electronic device for implementing a use-case method-based translation method according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a convention analogous to "A, B or at least one of C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B or C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
It should be noted that the transformation method and device based on the use-case method disclosed by the present disclosure can be used in the technical field of artificial intelligence, the technical field of finance, and any fields other than the technical field of artificial intelligence and the technical field of finance, and the application fields of the transformation method and device based on the use-case method are not limited by the present disclosure.
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the personal information of the related user all accord with the regulations of related laws and regulations, necessary security measures are taken, and the customs of the public order is not violated.
The embodiment of the disclosure provides a transformation method based on a use case method, which includes:
extracting keywords in an operation description natural language for expressing a business operation general flow, wherein the keywords comprise at least one role keyword, at least one action keyword corresponding to each role keyword and an operation object keyword corresponding to each action keyword;
generating a role lane graph for expressing a business operation sub-process executed by each operator role according to each keyword, wherein each role lane graph is expressed in a form of a diagram, each role lane graph comprises role graph elements and at least one operation graph element associated with each role graph element, each role graph element is used for expressing the meaning of a role keyword, and each operation graph element is used for expressing the meaning of an action keyword and an operation object keyword corresponding to the action keyword; and combining all the role lane diagrams according to the operation sequence of the business operation general flow to generate a use case general diagram for expressing the business operation general flow.
Before the embodiments of the present disclosure are explained in detail, the system structure and the application scenario related to the method provided by the embodiments of the present disclosure are described as follows.
FIG. 1 schematically illustrates an exemplary system architecture 100 to which the use-case based translation method and apparatus of the present disclosure may be applied. It should be noted that fig. 1 is only an example of a system architecture to which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, and does not mean that the embodiments of the present disclosure may not be applied to other devices, systems, environments or scenarios.
As shown in fig. 1, a system architecture 100 according to this embodiment may include a client 101 and a server 102. Communication between the client 101 and the server 102 may occur via a network, which may include various types of connections, such as wired and/or wireless communication links, and so forth.
A user may interact with the server 102 through the client 101 to receive or send messages, etc. The client 101 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablets, laptop portable computers, desktop computers, and the like.
The server 102 may be a server that provides various services, and for example, may perform analysis processing according to a request issued by the client 101 and feed back a processing result (e.g., information, data, and the like acquired or generated according to a user request) to the terminal device.
It should be noted that the transformation method based on the use-case method provided by the embodiment of the present disclosure may be generally executed by the server 102. Accordingly, the transformation apparatus based on the use-case method provided by the embodiment of the present disclosure can be generally disposed in the server 102. The transformation method based on the use-case method provided by the embodiment of the present disclosure may also be executed by a server or a server cluster different from the server 102 and capable of communicating with the server 102. Accordingly, the transformation device based on the use-case method provided by the embodiment of the present disclosure may also be disposed in a server or a server cluster different from the server 102 and capable of communicating with the server 102. Alternatively, the conversion method based on the use-case method provided by the embodiment of the present disclosure may also be executed by the terminal device of the client 101. Accordingly, the transformation apparatus based on the use-case method provided by the embodiment of the present disclosure may also be disposed in the terminal device of the client 101.
According to the embodiment of the disclosure, the transformation method based on the use case method provided by the embodiment of the disclosure can realize mutual transformation between the natural language and the use case diagram, and a user can freely select a display mode according to needs.
The user inputs a use case name to be queried in the terminal device through the client 101, the server 102 returns a request result related to the use case name according to a user request, that is, the request result is presented to the user in a presentation mode (a use case specification expressed in a natural language or an activity diagram expressed in a use case diagram mode) pre-stored in the system, and after the user obtains the use case presentation result, the user can select to convert the use case presentation result into another presentation mode.
For example, a use case specification presentation mode represented by a natural language is pre-stored in the system, and a user selects a mode of converting the use case specification presentation mode into a use case, the presentation mode can be selected as the use case, a request of converting a format is initiated to the server 102 through the client 101, after receiving the request, the server 102 adopts the conversion method based on the use case method provided by the embodiment to realize conversion between the natural language and the use case, and in the process of performing conversion by using the method, standard use words having the same semantics as corresponding role words, verbs and operation object words in the natural language can be obtained by querying a lexicon table (including a role lexicon, an action lexicon and an operation object lexicon) in a database, and filling values of the standard use words at corresponding filling positions in the use case are finally presented to the user in the form of the use case.
When the business requirements are expressed in a natural language mode based on the use case specification, the problem of language conversion effect is inevitably generated, ambiguity is caused, the requirement expressed by the natural language is difficult to quickly evaluate the requirement integrity, and the uncertainty of the requirement quality is increased; the use case diagram can satisfy the expression completeness, but the operation is complex for a user, and the learning cost is large. Therefore, the embodiment of the disclosure provides a transformation method based on a use case method, which can realize mutual transformation between a natural language and a use case diagram.
FIG. 2 schematically illustrates a flow diagram of a transformation method based on a use-case approach in accordance with an embodiment of the disclosure.
As shown in fig. 2, the method includes operations S201 to S203.
In operation S201, keywords in an operation description natural language for expressing a general flow of a business operation are extracted, wherein the keywords include at least one role keyword, at least one action keyword corresponding to each role keyword, and an operation object keyword corresponding to each action keyword.
In operation S202, a role lane diagram for expressing a business operation sub-process executed by each operator role is generated according to each keyword, wherein each role lane diagram is expressed in the form of a diagram, each role lane diagram includes role graph elements for expressing meanings of the role keywords and at least one operation graph element associated with each role graph element for expressing meanings of the action keywords, and the operation graph elements for expressing meanings of the action keywords and the operation object keywords corresponding to the action keywords.
In operation S203, all the character lane diagrams are combined according to the operation sequence of the business operation general flow to generate a general use case diagram for expressing the business operation general flow.
According to the embodiment of the disclosure, in an application scenario of the embodiment of the disclosure, a user inputs a case name to be queried through a terminal device, a server presents the case name to the user in a presentation mode (a case specification expressed in a natural language or an activity diagram expressed in a use case diagram mode) pre-stored in a system according to a user request, and after obtaining a case presentation result, the user can select to convert the case presentation result into another presentation mode.
According to the embodiment of the disclosure, the method is a method for converting a natural language into an application diagram, a business scene is expressed by a natural language in an application case specification, the application case specification comprises a main scene and an alternative scene, and the two parts are expressed by the natural language. The elements of the scene include vocabularies such as roles, descriptions, verbs, conjunctions and the like, in order to ensure effective and accurate word segmentation conversion between the activity diagram and the natural language, a standard lexicon needs to be constructed in advance, wherein the standard lexicon comprises a role lexicon, an action lexicon, an operation object keyword lexicon and the like, standard words of role classes, execution action classes and operation object classes related to corresponding business processes are respectively prestored, and the standard words are used for constructing use case diagrams and are used for filling in corresponding diagram elements in the use case diagrams.
According to an embodiment of the present disclosure, in operation S201, keywords, specifically including a role keyword, an action keyword, and an operation object keyword, are extracted from an operation description natural language for expressing a business operation general flow. For example, described in natural language as: the teller sets up two types of accounts for the user and binds one type of account, and the role keywords extracted from the accounts are as follows: a teller, wherein the action keywords are set and bound; the operation object keywords corresponding to the corresponding action keywords are a second-class account and a first-class account.
According to the embodiment of the present disclosure, specifically, in operation S202, a character lane diagram for expressing a business operation sub-flow performed by each operator character is generated according to each keyword. For example, in the above example, according to the extracted character keyword: teller, action keyword: and opening and binding, and generating a role swim lane diagram corresponding to the second-class account and the first-class account of the operation object keywords under the corresponding action keywords.
The role element of the role lane graph is filled with the role standard words converted from the role keywords: teller (the standard words pre-stored in the standard word bank are also teller, so conversion is not needed here).
The two operation diagram elements of the role lane diagram respectively represent two successive actions executed by the role, and the two operation diagram elements are respectively filled with standard operation words converted from action keywords: opening an account, and associating accounts. The standard operation word is formed by combining an execution action class standard word and an operation object keyword corresponding to the corresponding action keyword, for example, the standard operation word is formed by: opening, and operating object keyword account, which comprises: opening an account; by performing action class criteria words: binding and operating object keyword account, and the following components are formed: and associating the account.
According to the embodiment of the disclosure, the role class standard words, the execution action class standard words and the operation object keywords are obtained from the standard word library, the standard words are used for filling in corresponding diagram elements in the use case diagram to construct and form each role lane diagram, and finally all the role lane diagrams are combined according to the operation sequence of the business operation general flow to generate a use case general diagram for expressing the business operation general flow and show the use case general diagram to a user.
According to the embodiment of the present disclosure, in the above operations, each business operation step is a minimum unit in the graph, each operation step has an operation type, which may be a starting point, an ending point, a judgment step, an intermediate step, and the like, each operation has a corresponding role, which corresponds to a role lane in the use graph, each operation allows owning and accessing its previous step and next step, but not necessarily, for example, the starting point is not the previous step, the ending point is not the next step, the judgment can allow multiple next steps, and each next step has a condition attribute. In addition, the graphical location of the use case diagram may be generated by default, or the user may manually adjust the location and save.
According to the embodiment of the disclosure, in the above operation, after the use case general diagram is generated, manual adjustment can be performed, so as to perfect the display of the business process.
According to the embodiment of the present disclosure, in order to distinguish the new operation or refer to the pre-stored operation condition, a special symbol may be added to the new operation step to mark as the new operation step.
According to the embodiment of the disclosure, by adopting the conversion method, the key words in the operation description natural language for expressing the business operation general flow are extracted, so that the key information in the business operation flow is prevented from being missed; and generating a role lane diagram for expressing the business operation sub-process executed by each operator role according to each keyword, and constructing the incidence relation between the keyword and the standardized use case diagram element, so that the main process and the alternative process described by the natural language in the use case specification can be converted into the standardized activity diagram for expression. Through conversion, the problems of long learning period and high difficulty in drawing the activity diagram can be effectively avoided, the content of the case specification expressed by the natural language can be explained in an auxiliary way, the business processing logic and the rule to be followed by the business processing logic are more complete, the semantics are clearer, the quality of the case specification is improved, the learning cost of operators is saved, and the working efficiency is improved.
According to an embodiment of the present disclosure, the transformation method based on the use-case method further includes: and adding the business processing rules followed by each business operation sub-flow in each role swim lane graph.
According to the embodiment of the disclosure, although the business process shown in the example diagram is relatively straightforward, the generality is strong, and it is sometimes difficult for business personnel who are unfamiliar with the business process to understand the specific operation method required for executing the business process only by illustration, so that business processing rules that need to be followed by specific operation steps in the business operation sub-process are added at corresponding positions in the use diagram. For example, at the position of the block diagram of the operation diagram element corresponding to the operation step only shown as "open account" in the usage diagram, the business rule followed by executing the operation is added, for example, it may be a description of which kind of account is opened, which information needs to be checked when the account is opened, and the like.
According to the embodiment of the disclosure, by adding the business processing rule followed by each business operation sub-process, for the business with more complex business processing rules, the separation of the processing steps from the business rules to be followed can increase the implementation difficulty of requirement expression and research and development, and the integration through the activity diagram is beneficial to reducing the risk, so that business personnel can be helped to know the specific operation method required by executing the business process, and misoperation in the business execution process is avoided. On the other hand, in the subsequent process of converting the use case diagram into the natural language, the information in the figure element also needs to be combined with the description of the business processing rule so as to convert the use case diagram into the accurate natural language.
Fig. 3 schematically shows a flowchart for extracting keywords in an original natural language for expressing a general flow of business operations according to an embodiment of the present disclosure.
As shown in fig. 3, the method includes operations S301 to S302.
In operation S301, segmenting a word of an original natural language to obtain a character keyword, at least one action keyword corresponding to the character keyword, and at least one operation object word corresponding to each action keyword from the original natural language; and
in operation S302, an operation object keyword corresponding to each action keyword is determined from at least one operation object word corresponding to each action keyword. Specifically, the specific operations of the operation are: determining a service type corresponding to a service operation total flow; acquiring the standard weight of each operation object word under the service type; and determining the operation object keywords corresponding to each action keyword according to the standard weight of each operation object word under the service type.
According to an embodiment of the present disclosure, specifically, in operation S301, the original natural language is segmented, the segmentation may be performed on the natural language description input by the user by using a segmentation technology, and the segmentation model may be utilized to implement accurate segmentation in combination with the constructed role library and verb library, for example, "a domain architect logs in an architecture analysis platform and enters approval opinions", and the segmentation is: the method comprises the following steps of 'field architect \ login \ architecture analysis \ platform, input \ approval \ opinion', wherein the role key words are 'field architect', the role key words are used as the roles of operators in the primary flow step of the activity diagram, and the action key words are as follows: "Login", "type in"; the nouns following the action keyword are all operation object words.
According to an embodiment of the present disclosure, specifically, in the above operation S302, since the number of the operation object words may be large, the operation object keyword corresponding to each action keyword needs to be determined from the operation object words, and is used as the filling content in the operation diagram element of the activity diagram flow step. When the operation is executed, specifically, the standard word bank can be queried, and because various keywords under different types of services and the weight of each keyword are recorded in the standard word bank, the standard weight of each operation object word under the service type can be obtained from the standard word bank, the word with the highest standard weight is selected as the operation object keyword, and the operation step with the highest relevance is matched and corresponds to the operation diagram element in the activity diagram.
According to the embodiment of the disclosure, the standard word library includes a role word library, a dynamic word library, an operation object keyword library, and the like, wherein standard words of a role class, an execution action class, and an operation object class related to a corresponding business process, and a weight of each standard word are pre-stored, and when setting the weight, the weight is set according to a word segmentation occurrence ratio. For example: an asset named card-open is described that provides the card-open function for the customer and provides the bound deposit function. The word segmentation and the weight configuration for the word segmentation are as follows: client 3, offer 2, open card 5, function 1, bind 2, deposit 5, function 1. The normalization is as follows: providing 2/14, opening card 5/14, binding 2/14, and saving 5/14, (the participle weight of each asset after standardization adds to 1), and assuming that the keyword is removed to include a customer, opening the card, the weight value corresponding to the service is calculated to be 5/14.
According to the embodiment of the disclosure, the standard words in the standard word bank and the weight configuration thereof can be updated regularly according to business needs. For example, the operator role words with matched positions can be stored as new role words, so that the word bank is updated, and the higher accuracy of word segmentation matching is ensured.
According to the embodiment of the present disclosure, various types of keywords under different types of services and the weight of each keyword are recorded in the standard word library, for example: the keywords are classified into different keywords, such as opening account, offering, binding, saving, etc., and the keywords are weighted differently for different services, assuming that for opening the debit card, the weight coefficient for opening account is 5, the debit card is 3, the saving is 2, and the keywords are 5/10, 3/10, and 2/10 respectively after normalization, and for accessing the debit card, the saving is 7, the debit card is 3, and the others are 0, and the keywords are 7/10 and 3/10 respectively after normalization.
According to an embodiment of the present disclosure, wherein generating a character lane graph corresponding to each character keyword according to each keyword includes:
converting the role keywords into role map elements by adopting an approximate matching method; and
and converting the action keywords and the operation object keywords corresponding to the action keywords into operation chart elements by adopting an approximate matching method.
For example, if the action keyword extracted by word segmentation is "open", the standard words that are similar or identical to the semanteme thereof in the standard word library are: and associating, namely matching the 'opening up' as an 'associated' key word, then extracting a standard operation matched with the 'associated' key word from the use case diagram library according to the 'associated' key word, and finally filling the matched standard operation into a diagram element corresponding to the use case diagram.
According to an embodiment of the disclosure: the keywords extracted from the natural language also comprise key conjunctions; each role lane graph also comprises a gateway judgment graph element, wherein the gateway judgment graph element is associated with the key conjunctions and is used for expressing the branch operation of the business operation sub-process; generating a character lane graph corresponding to each character keyword according to each keyword further comprises: and converting the key conjunctions into gateway judgment graph elements.
According to the embodiment of the present disclosure, the keyword links, for example, may be if, then, or vice versa, and these keywords will become important words of the gateway judgment element of the usage graph. In the conversion matching process, if the action keyword is not matched, a corresponding graph node is not generated in the graph element, whether a key conjunctions exist or not is judged, and if the key conjunctions exist, the key conjunctions are converted into gateway judgment elements, for example, a plurality of branches are generated.
According to an embodiment of the present disclosure, the above scenario may be, for example: if the star-level customer opens the card, the teller only needs to lead the customer to complete the ordinary card opening on the card opener; if the client card is opened by the five-star client, the client manager is required to take a window to finish opening the card by the diamond card, and the gateway can be split according to the scene matching key conjunction: customer grade- [ one star customer ] - > [ teller ] machine ordinary card opening, customer grade- [ five star customer ] - > [ customer manager ] window diamond card opening.
In the application scenario of the embodiment of the present disclosure, when the presentation form of the business process queried in the user system is the use case diagram form, the business process can be selectively converted into the presentation form of the use case specification expressed by the natural language.
FIG. 4 schematically illustrates a flow diagram of a transformation method based on a use-case approach, according to an embodiment of the present disclosure; as shown in fig. 4, the method of converting the usage graph into the natural language includes operations S401 to S403.
In operation S401, key elements corresponding to each business operation sub-process are respectively extracted from each character lane diagram of the use case general diagram, wherein the key elements include a character diagram element corresponding to each business operation sub-process and at least one operation diagram element associated with the character diagram element.
In operation S402, role operation descriptions corresponding to the business operation sub-processes are generated according to the key elements, wherein each role operation description is expressed in a natural language form, each role operation description comprises a role subject, at least one operation predicate associated with the role subject, and an operation object associated with each operation predicate, the role subject is used for expressing the meaning of the role-diagram element, and the operation predicate and the operation object associated with the operation predicate are used for expressing the meaning of the operation-diagram element.
In operation S403, all the role operation descriptions are combined according to the operation order of the business operation general flow to generate an operation description natural language for expressing the business operation general flow.
According to an embodiment of the present disclosure, wherein: each role swim lane graph has business process rules added to it that each business operation sub-process follows.
Generating the role operation description corresponding to each role element according to each key element comprises the following steps: and generating role operation descriptions corresponding to the role element elements according to the key elements and the business processing rules followed by each business operation sub-process.
According to the embodiment of the disclosure, when the use diagram is converted into the natural language, the role diagram elements and at least one operation diagram element associated with the role diagram elements are respectively extracted from each role lane diagram, the role diagram elements and the keywords in the operation diagram elements are further extracted, and the role diagram elements and the keywords are combined with the service processing rule description, so that the role diagram elements can be accurately converted into the service processing flow described by the natural language. For example, the key word extracted from the usage graph is "teller opens an account", and in combination with the description of the business rule, for example: "open two types of accounts, need to verify the number of two types of accounts that the user has transacted", convert to natural language: the teller opens a second type of account for the user and verifies the number of the second type of accounts already transacted by the user.
According to the embodiment of the disclosure, the usage graph is converted into the natural language, so that the learning difficulty of readers who are not good at reading graphs is reduced, and the working efficiency is improved. Meanwhile, the role operation description corresponding to each role element is generated by combining the business processing rules followed by each business operation sub-process, so that the key information in the business operation process is prevented from being missed, and the conversion accuracy is improved.
FIG. 5 schematically illustrates a block diagram of a use-case method based translation device 500, according to an embodiment of the present disclosure.
The conversion apparatus 500 may be used to implement the method described with reference to fig. 2.
As shown in fig. 5, the conversion apparatus 500 includes: a first extraction module 501, a first generation module 502 and a first assembly module 503.
The first extraction module 501 is configured to extract keywords in an operation description natural language used for expressing a general flow of a business operation, where the keywords include at least one role keyword, at least one action keyword corresponding to each role keyword, and an operation object keyword corresponding to each action keyword.
A first generating module 502, configured to generate, according to each keyword, a role lane diagram for expressing a business operation sub-process executed by each operator role, where each role lane diagram is expressed in a form of a diagram, each role lane diagram includes role map elements and at least one operation map element associated with each role map element, the role map elements are used for expressing meanings of the role keywords, and the operation map elements are used for expressing meanings of the action keywords and the operation object keywords corresponding to the action keywords.
And the first assembling module 503 is configured to combine all the role lane diagrams according to the operation sequence of the business operation general flow to generate a general case diagram for expressing the business operation general flow.
According to the embodiment of the disclosure, a first extraction module 501 is adopted to avoid missing key information in a business operation flow by extracting key words in an operation description natural language for expressing the business operation general flow; through the first generating module 502, a role swim lane diagram for expressing the business operation sub-process executed by each operator role is generated according to each keyword, the incidence relation between the keyword and the standardized use case diagram element is constructed, and the main process and the alternative process described by the natural language in the use case specification can be converted into the standardized activity diagram for expression. Through conversion, the problems of long learning period and high difficulty in drawing the activity diagram can be effectively avoided, the content of the case specification expressed by the natural language can be explained in an auxiliary way, the business processing logic and the rule to be followed by the business processing logic are more complete, the semantics are clearer, the quality of the case specification is improved, the learning cost of operators is saved, and the working efficiency is improved.
According to an embodiment of the present disclosure, the apparatus further includes: and the adding module is used for adding the business processing rule followed by each business operation sub-flow in each role swim lane graph.
According to the embodiment of the present disclosure, the first extraction module 501 includes a word segmentation unit and a determination unit.
The word segmentation unit is used for segmenting the original natural language so as to obtain role keywords, at least one action keyword corresponding to the role keywords and at least one operation object word corresponding to each action keyword from the original natural language. A determining unit configured to determine an operation object keyword corresponding to each action keyword from at least one operation object word corresponding to each action keyword.
According to an embodiment of the present disclosure, the determining unit includes a first determining subunit, an obtaining subunit, and a second determining subunit.
The first determining subunit is configured to determine a service type corresponding to a total flow of service operation; the obtaining subunit is used for obtaining the standard weight of each operation object word under the service type; and the second determining subunit is used for determining the operation object keywords corresponding to each action keyword according to the standard weight of each operation object word under the service type.
According to an embodiment of the present disclosure, the first generating module 502 includes a first converting unit and a second converting unit.
The first conversion unit is used for converting the role keywords into role map elements by adopting an approximate matching method; and a second conversion unit for converting the action keyword and the operation object keyword corresponding to the action keyword into an operation diagram element by using an approximate matching method.
According to an embodiment of the present disclosure, the keyword further includes a key conjunction; each role lane graph further comprises a gateway judgment graph element, wherein the gateway judgment graph element is associated with the key conjunctions and is used for expressing branch operations of the business operation sub-process.
The first generation module further comprises: and the third conversion unit is used for converting the key conjunctions into gateway judgment graph elements.
According to an embodiment of the present disclosure, the apparatus further includes a second extraction module, a second generation module, and a second combination module.
The second extraction module is used for extracting key elements corresponding to each business operation sub-process from each role lane diagram of the use case general diagram, wherein the key elements comprise a role diagram element corresponding to each business operation sub-process and at least one operation diagram element associated with the role diagram element.
And the second generation module is used for generating role operation descriptions corresponding to the business operation sub-processes according to the key elements, wherein each role operation description is expressed in a natural language form, each role operation description comprises a role subject, at least one operation predicate associated with the role subject and an operation object associated with each operation predicate, the role subject is used for expressing the meaning of the role-diagram elements, and the operation predicate and the operation object associated with the operation predicate are used for expressing the meaning of the operation-diagram elements.
And the second combination module combines all the role operation descriptions according to the operation sequence of the business operation general flow to generate an operation description natural language for expressing the business operation general flow.
According to an embodiment of the present disclosure, wherein: each role swim lane graph has business process rules added to it that each business operation sub-process follows.
Generating the role operation description corresponding to each role element according to each key element comprises the following steps: and generating role operation descriptions corresponding to the role element elements according to the key elements and the business processing rules followed by each business operation sub-process.
Any number of modules, sub-modules, units, sub-units, or at least part of the functionality of any number thereof according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules, sub-modules, units, and sub-units according to the embodiments of the present disclosure may be implemented by being split into a plurality of modules. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in any other reasonable manner of hardware or firmware by integrating or packaging a circuit, or in any one of or a suitable combination of software, hardware, and firmware implementations. Alternatively, one or more of the modules, sub-modules, units, sub-units according to embodiments of the disclosure may be at least partially implemented as a computer program module, which when executed may perform the corresponding functions.
For example, any plurality of the first extraction module 501, the first generation module 502 and the first combination module 503 may be combined and implemented in one module/unit/sub-unit, or any one of the modules/units/sub-units may be split into a plurality of modules/units/sub-units. Alternatively, at least part of the functionality of one or more of these modules/units/sub-units may be combined with at least part of the functionality of other modules/units/sub-units and implemented in one module/unit/sub-unit. According to an embodiment of the present disclosure, at least one of the first extraction module 501, the first generation module 502, and the first combination module 503 may be implemented at least partially as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented by hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or implemented by any one of three implementations of software, hardware, and firmware, or implemented by a suitable combination of any of them. Alternatively, at least one of the first extraction module 501, the first generation module 502 and the first combination module 503 may be at least partially implemented as a computer program module, which when executed may perform a corresponding function.
FIG. 6 schematically shows a block diagram of an electronic device for implementing a use-case method-based translation method according to an embodiment of the present disclosure. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, an electronic device 600 according to an embodiment of the present disclosure includes a processor 601, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. Processor 601 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 601 may also include onboard memory for caching purposes. Processor 601 may include a single processing unit or multiple processing units for performing different actions of a method flow according to embodiments of the disclosure.
In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 600 are stored. The processor 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. The processor 601 performs various operations of the method flows according to the embodiments of the present disclosure by executing programs in the ROM 602 and/or RAM 603. It is to be noted that the programs may also be stored in one or more memories other than the ROM 602 and RAM 603. The processor 601 may also perform various operations of the method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
Electronic device 600 may also include input/output (I/O) interface 606, which is also connected to bus 604, input/output (I/O) interface 605, according to an embodiment of the present disclosure. The system 600 may also include one or more of the following components connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
According to embodiments of the present disclosure, method flows according to embodiments of the present disclosure may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable storage medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program, when executed by the processor 601, performs the above-described functions defined in the system of the embodiments of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. Examples may include, but are not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
For example, according to embodiments of the present disclosure, a computer-readable storage medium may include the ROM 602 and/or RAM 603 described above and/or one or more memories other than the ROM 602 and RAM 603.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the method provided by the embodiments of the present disclosure, when the computer program product runs on an electronic device, the program code is used for causing the electronic device to implement the method for example-based transformation provided by the embodiments of the present disclosure.
The computer program, when executed by the processor 601, performs the above-described functions defined in the system/apparatus of the embodiments of the present disclosure. The systems, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In one embodiment, the computer program may be hosted on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted, distributed in the form of a signal on a network medium, downloaded and installed through the communication section 609, and/or installed from the removable medium 611. The computer program containing program code may be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In accordance with embodiments of the present disclosure, program code for executing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, these computer programs may be implemented using high level procedural and/or object oriented programming languages, and/or assembly/machine languages. The programming language includes, but is not limited to, programming languages such as Java, C + +, python, the "C" language, or the like. The program code may execute entirely on the user computing device, partly on the user device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.

Claims (10)

1. A transformation method based on a use-case method, comprising:
extracting keywords in an operation description natural language for expressing a business operation general flow, wherein the keywords comprise at least one role keyword, at least one action keyword corresponding to each role keyword, and an operation object keyword corresponding to each action keyword;
generating a role lane diagram for expressing a business operation sub-process executed by each operator role according to each keyword, wherein each role lane diagram comprises role diagram elements and at least one operation diagram element associated with each role diagram element, the role diagram elements are used for expressing the meanings of the role keywords, and the operation diagram elements are used for expressing the meanings of the action keywords and operation object keywords corresponding to the action keywords; and
and combining all the role lane diagrams according to the operation sequence of the business operation general flow to generate a use case general diagram for expressing the business operation general flow.
2. The method of claim 1, further comprising:
and adding a business processing rule followed by each business operation sub-flow in each role swim lane graph.
3. The method of claim 1, wherein said extracting keywords in an original natural language for expressing a business operation total flow comprises:
acquiring the role keywords, at least one action keyword corresponding to the role keywords and at least one operation object word corresponding to each action keyword from the original natural language;
determining a service type corresponding to the service operation total flow;
acquiring the standard weight of each operation object word under the service type;
and determining the operation object keywords corresponding to each action keyword according to the standard weight of each operation object word under the service type.
4. The method of claim 1, wherein the generating a character swim lane graph corresponding to each of the character keywords according to each of the keywords comprises:
converting the role keywords into the role graph elements by adopting an approximate matching method; and
and converting the action keywords and the operation object keywords corresponding to the action keywords into the operation chart elements by adopting an approximate matching method.
5. The method of claim 5:
the keywords also comprise key conjunctions;
each role lane graph further comprises a gateway judgment graph element, wherein the gateway judgment graph element is associated with the key conjunction and is used for expressing branch operation of the business operation sub-process;
the generating a role lane graph corresponding to each of the role keywords according to each of the keywords further comprises: and converting the key conjunctions into the gateway judgment graph elements.
6. The method of claim 1, further comprising:
extracting key elements corresponding to each business operation sub-process from each role swim lane diagram of the use case general diagram respectively, wherein the key elements comprise the role diagram element corresponding to each business operation sub-process and at least one operation diagram element associated with the role diagram element;
generating role operation descriptions corresponding to the business operation sub-processes according to the key elements, wherein each role operation description is expressed in a natural language form, each role operation description comprises a role subject, at least one operation predicate associated with the role subject and an operation object associated with each operation predicate, the role subject is used for expressing the meaning of the role-diagram elements, and the operation predicate and the operation object associated with the operation predicate are used for expressing the meaning of the operation-diagram elements;
and combining all the role operation descriptions according to the operation sequence of the business operation general flow to generate the operation description natural language for expressing the business operation general flow.
7. The method of claim 7, wherein: each role lane graph is added with a business processing rule followed by each business operation sub-process;
the generating of the role operation description corresponding to each role map element according to each key element comprises:
and generating role operation descriptions corresponding to the role drawing elements according to the key elements and the business processing rules followed by the business operation sub-processes.
8. A use-case based conversion apparatus comprising:
the extraction module is used for extracting keywords in an operation description natural language for expressing a business operation general flow, wherein the keywords comprise at least one role keyword, at least one action keyword corresponding to each role keyword and an operation object keyword corresponding to each action keyword;
a generating module, configured to generate, according to each keyword, a role lane diagram for expressing a business operation sub-process executed by each operator role, where each role lane diagram includes role graph elements and at least one operation graph element associated with each role graph element, the role graph elements are used to express the meaning of the role keyword, and the operation graph elements are used to express the meaning of the action keyword and an operation object keyword corresponding to the action keyword; and
and the combination module is used for combining all the role lane graphs according to the operation sequence of the business operation general flow so as to generate a use case general graph for expressing the business operation general flow.
9. An electronic device, comprising:
one or more processors;
a memory for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-7.
10. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to carry out the method of any one of claims 1 to 7.
CN202110715629.4A 2021-06-25 2021-06-25 Conversion method and device based on use case method, electronic equipment and storage medium Active CN113448848B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110715629.4A CN113448848B (en) 2021-06-25 2021-06-25 Conversion method and device based on use case method, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110715629.4A CN113448848B (en) 2021-06-25 2021-06-25 Conversion method and device based on use case method, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113448848A true CN113448848A (en) 2021-09-28
CN113448848B CN113448848B (en) 2024-08-02

Family

ID=77813402

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110715629.4A Active CN113448848B (en) 2021-06-25 2021-06-25 Conversion method and device based on use case method, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113448848B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114638221A (en) * 2022-03-31 2022-06-17 中国工商银行股份有限公司 Business model generation method and device based on business requirements
CN114676694A (en) * 2022-03-25 2022-06-28 中国工商银行股份有限公司 Method, device, equipment, medium and program product for generating business model

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104700214A (en) * 2015-03-12 2015-06-10 国家电网公司 Method of managing intelligent distribution and utilization case
US20180357998A1 (en) * 2017-06-13 2018-12-13 Intel IP Corporation Wake-on-voice keyword detection with integrated language identification

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104700214A (en) * 2015-03-12 2015-06-10 国家电网公司 Method of managing intelligent distribution and utilization case
US20180357998A1 (en) * 2017-06-13 2018-12-13 Intel IP Corporation Wake-on-voice keyword detection with integrated language identification

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114676694A (en) * 2022-03-25 2022-06-28 中国工商银行股份有限公司 Method, device, equipment, medium and program product for generating business model
CN114676694B (en) * 2022-03-25 2024-12-24 中国工商银行股份有限公司 Business model generation method, device, equipment, medium and program product
CN114638221A (en) * 2022-03-31 2022-06-17 中国工商银行股份有限公司 Business model generation method and device based on business requirements

Also Published As

Publication number Publication date
CN113448848B (en) 2024-08-02

Similar Documents

Publication Publication Date Title
AU2025201453A1 (en) Method and system for automatically extracting relevant tax terms from forms and instructions
US9766868B2 (en) Dynamic source code generation
US9619209B1 (en) Dynamic source code generation
CN113515271A (en) Service code generation method and device, electronic equipment and readable storage medium
CN109815147B (en) Test case generation method, device, server and medium
CN115292352B (en) Problem query methods, devices, equipment, media and program products
US20210295453A1 (en) Methods, systems and computer program products for facilitating user interaction with tax return preparation programs
CN111241180A (en) Information processing method, device, equipment and storage medium
CN108073429A (en) A kind of means of payment collocation method, device, equipment and storage medium
CN113507419B (en) Training method of traffic distribution model, traffic distribution method and device
CN113448848B (en) Conversion method and device based on use case method, electronic equipment and storage medium
CN116308602A (en) Recommended product information generation method and device, electronic equipment and medium
US11354502B2 (en) Automated constraint extraction and testing
CN113935334A (en) Text information processing method, device, equipment and medium
CN119849446A (en) Design document generation method, device, medium and electronic equipment
CN120216800A (en) HTML5 page processing method, device, equipment and storage medium
CN116414600A (en) Data automatic checking method, device, equipment and storage medium
CN114707486A (en) Text processing method, device, equipment, medium and program product
CN121166500A (en) Information processing method, apparatus, device, medium, and program product
CN117395314A (en) Request processing method, request processing device, electronic equipment and storage medium
CN117788166A (en) Investment type analysis method, apparatus, device, medium, and program product
CN118170424A (en) Parameter automatic configuration method, device, equipment and storage medium
CN121031561A (en) Service registration methods, devices, equipment and media
CN116089411A (en) Data checking method, device, equipment and storage medium
CN118377558A (en) Interface calling method, device, equipment, medium and program product

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