WO2023103247A1 - 一种组件及策略联动方法、装置、设备、系统及存储介质 - Google Patents

一种组件及策略联动方法、装置、设备、系统及存储介质 Download PDF

Info

Publication number
WO2023103247A1
WO2023103247A1 PCT/CN2022/087204 CN2022087204W WO2023103247A1 WO 2023103247 A1 WO2023103247 A1 WO 2023103247A1 CN 2022087204 W CN2022087204 W CN 2022087204W WO 2023103247 A1 WO2023103247 A1 WO 2023103247A1
Authority
WO
WIPO (PCT)
Prior art keywords
component
business
target
display
strategy
Prior art date
Application number
PCT/CN2022/087204
Other languages
English (en)
French (fr)
Inventor
厉智
蔡昌俊
艾义
王海
叶红霞
谢良
罗伟庭
黄朝晖
张�杰
马安进
宁穗智
张芃
王潇
李漾
任晴
郭婷婷
梁肖
Original Assignee
腾讯科技(深圳)有限公司
广州地铁集团有限公司
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 腾讯科技(深圳)有限公司, 广州地铁集团有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2023103247A1 publication Critical patent/WO2023103247A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Definitions

  • the present application relates to the technical field of business processing, and specifically relates to a component and strategy linkage method, device, equipment, system and storage medium.
  • Embodiments of the present application provide a component and policy linkage method, device, device, system, and storage medium, and the method can increase the efficiency of service generation.
  • the first aspect of the present application provides a component and strategy linkage method, the method includes:
  • the business strategy editing interface including a component display area and a policy editing area, the component display area including at least one business component in the rail transit system;
  • the business components in the policy editing area are combined to generate the target business corresponding to the target business scenario in the rail transit system.
  • the second aspect of the present application provides a component and a strategy linkage device, which includes:
  • the first display unit is configured to display a business strategy editing interface of the rail transit system, the business strategy editing interface includes a component display area and a strategy editing area, and the component display area includes at least one business component in the rail transit system;
  • a second display unit configured to display a component configuration interface of the target business component in response to a selection operation of the target business component in the component display area
  • a third display unit configured to update the target service component according to the configuration information received by the component configuration interface, and display the updated target service component in the policy editing area;
  • the generating unit is configured to combine the business components in the policy editing area to generate the target business corresponding to the target business scenario in the rail transit system.
  • the component display area includes a business component selection control
  • the second display unit includes:
  • a first display subunit configured to display a list of business components in response to a trigger operation on the selection control of the business components
  • the second display subunit is configured to display a component configuration interface of the target business component in response to a selection operation of the target business component in the business component list.
  • the business component list includes a business component status display control
  • the component and policy linkage device further includes:
  • the third display subunit is configured to display the status information of each business component in the business component list in response to a trigger operation on the business component status display control.
  • the business component list includes a business component editing control corresponding to each business component
  • the component and strategy linkage device further includes:
  • the fourth display subunit is configured to display the editing interface of the business component corresponding to the target business component editing control in response to a selection operation on the target business component editing control;
  • the first updating subunit is configured to acquire the editing operation received by the editing interface, and update the business component corresponding to the target business component editing control according to the editing operation.
  • the component configuration interface includes a device selection control and an instruction configuration control
  • the component and policy linkage device further includes:
  • a fifth display subunit configured to display a candidate device list in response to a trigger operation on the device selection control
  • an associating subunit configured to receive a selection operation for a target device in the candidate device list, and associate the target device with the target service component
  • a sixth display subunit configured to display an instruction configuration interface of the target device in response to a trigger operation on the instruction configuration control
  • the receiving subunit is configured to receive the instruction configuration information input in the instruction configuration interface.
  • the third display unit includes:
  • a seventh display subunit configured to display a target display image of the updated target business component in response to a selection operation on the updated target business component
  • a determination subunit configured to determine a target position corresponding to the display position adjustment operation on the business policy editing interface in response to the display position adjustment operation for the target display image
  • the eighth display subunit is configured to display the target display image at the target position.
  • the generating unit includes:
  • a receiving subunit configured to receive an associated operation between display images displayed on the business policy editing interface
  • the combination subunit is configured to combine the components corresponding to each display image according to the association operation.
  • the first display subunit includes:
  • the first acquiring module is configured to acquire component data corresponding to at least one business component from a preset component platform when a trigger instruction for selecting a control of the business component is detected;
  • a first parsing module configured to parse component data corresponding to the at least one business component, and obtain component action information corresponding to each business component;
  • the first display module is configured to generate and display a business component list according to the component action information.
  • the parsing module includes:
  • the first extraction sub-module is used to extract component description data from the component data, and generate function information and usage scene information of component actions according to the component description data;
  • the second extraction sub-module is used to extract component interface data from the component data, and generate input parameter information, output parameter information, interface information and trigger condition information of component actions according to the component interface data;
  • the first generation sub-module is configured to generate component action information according to the function information of the component action, usage scenario information, input parameter information, output parameter information, interface information and trigger condition information.
  • the first display module includes:
  • the second generating submodule is used to generate a component action name according to the component action information
  • the third generation sub-module is used to generate and display a business component list based on the component action name.
  • the second display subunit includes:
  • the second acquiring module is configured to acquire target usage scenario information corresponding to the target business component when a selection instruction for the target component in the business component list is detected;
  • a third acquisition module configured to acquire a target component configuration interface matching the target usage scenario information
  • the second display module is used to display the target component configuration interface.
  • the third acquisition module includes:
  • An acquisition sub-module configured to acquire at least one target component configuration element matching the target usage scenario information from a preset component configuration element library
  • the fourth generation submodule is used to generate a target component configuration interface according to the target component configuration elements.
  • the first display subunit includes:
  • the fourth obtaining module is used to obtain the service components applied to the rail transit system from the component platform of the rail transit system when a trigger instruction for selecting the control of the service component is detected, and the service components are provided by the component platform Extract the function codes from various rail transit applications on the rail transit system application platform and package them;
  • the second analysis module is used to analyze the code data of the business component, obtain the function definition information of the business component, and abstract the business component into a component action in the policy platform action library according to the function definition information ;
  • the third display module is configured to generate and display a list of business components according to the component actions in the policy platform action library.
  • the third aspect of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the components and components provided in the first aspect of the present application. Steps in a policy linkage method.
  • the fourth aspect of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor.
  • the processor executes the computer program, the first aspect of the present application is realized
  • the components and the steps in the strategy linkage method are provided.
  • the fifth aspect of the present application provides a component and strategy linkage system.
  • the system includes a component platform and a strategy platform.
  • the component platform is used to store and manage business components, feed back status information of Invoking the policy platform, providing target service components to the policy platform;
  • the strategy platform is used to display a business strategy editing interface of the rail transit system, the business strategy editing interface includes a component display area and a strategy editing area, and the component display area includes at least one business component in the rail transit system;
  • the business strategy editing interface includes a component display area and a strategy editing area
  • the component display area includes at least one business component in the rail transit system;
  • display the component configuration interface of the target business component In response to the selection operation of the target business component in the component display area, display the component configuration interface of the target business component; update the target business component according to the configuration information received by the component configuration interface, and update the updated
  • the target business components are displayed in the strategy editing area; the business components in the strategy editing area are combined to generate the target business corresponding to the target business scenario in the rail transit system.
  • a sixth aspect of the present application provides a computer program product or computer program, where the computer program product or computer program includes computer instructions, and the computer instructions are stored in a storage medium.
  • the processor of the computer device reads the computer instructions from the storage medium, and the processor executes the computer instructions, so that the computer device executes the steps in the component and strategy linkage method provided in the first aspect.
  • the component and strategy linkage method provided by the embodiment of the present application displays the business strategy editing interface of the rail transit system.
  • the business strategy editing interface includes a component display area and a strategy editing area, and the component display area includes at least one business component in the rail transit system;
  • display the component configuration interface of the target business component In response to the selection operation of the target business component in the component display area, display the component configuration interface of the target business component; update the target business component according to the configuration information received by the component configuration interface, and put the updated target business component in the policy editing area display; combine the business components in the policy editing area to generate the target business corresponding to the target business scenario in the rail transit system.
  • this application encapsulates the components required for service generation and displays them on the strategy platform. Users can select, configure and combine the displayed components to quickly generate target services required by service scenarios.
  • This method does not require business developers to have the professional ability to write business code, and can quickly generate the target business required by the business scenario, thereby greatly improving the efficiency of business generation.
  • Fig. 1 is a schematic diagram of a scenario of a component and strategy linkage method in this application;
  • Fig. 2 is a schematic flow diagram of the component and strategy linkage method provided by the present application.
  • Fig. 3a is a schematic diagram of the business policy editing interface provided by the present application.
  • Fig. 3b is another schematic diagram of the business policy editing interface provided by the present application.
  • Fig. 3c is a schematic diagram of the service component list display interface provided by this application.
  • Fig. 3d is a schematic diagram of the component configuration interface provided by the present application.
  • Fig. 3e is another schematic diagram of the service component list display interface provided by the present application.
  • Fig. 3f is another schematic diagram of the service component list display interface provided by the present application.
  • Fig. 3g is a schematic diagram of the business component editing interface provided by this application.
  • Fig. 3h is another schematic diagram of the component configuration interface provided by the present application.
  • Fig. 3i is another schematic diagram of the policy editing interface provided by the present application.
  • Fig. 4 is another schematic flowchart of the component and strategy linkage method provided by the present application.
  • Fig. 5 is a schematic structural diagram of components and strategic linkage devices provided by the present application.
  • Fig. 6 is a topology diagram of the components and strategy linkage system provided by this application.
  • FIG. 7 is a schematic diagram of interaction between components and a strategy linkage system provided by the embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a computer device provided by the present application.
  • Embodiments of the present invention provide a component and strategy linkage method, device, equipment, system and storage medium.
  • the component and the strategy linkage method can be used in the component and the strategy linkage device.
  • the component and the policy linkage device can be integrated in a computer device, and the computer device can be a terminal or a server.
  • the terminal may be a mobile phone, a tablet computer, a notebook computer, a smart TV, a wearable smart device, a personal computer (PC, Personal Computer) and the like.
  • the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or it can provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, intermediate Cloud servers for basic cloud computing services such as mail service, domain name service, security service, network acceleration service (Content Delivery Network, CDN), and big data and artificial intelligence platforms.
  • the server can be a node in the block chain.
  • FIG. 1 is a schematic diagram of a scenario of the component and strategy linkage method provided by this application.
  • the component and strategy linkage method can be specifically applied to the rail transit system.
  • the business strategy composed of various standard business components can be quickly generated on the strategy platform, and then according to the business strategy
  • the corresponding components are extracted from the component platform to generate the target business corresponding to the target scene in the rail transit system.
  • the rail transit system refers to a type of vehicle or transportation system that operating vehicles need to run on a specific track.
  • the most typical rail transit system is a railway system composed of traditional trains and standard railways.
  • computer device A displays the business strategy editing interface of the rail transit system, the business strategy editing interface includes a component display area and a strategy editing area, and the component display area includes at least one business component in the rail transit system; in response to the component display The selection operation of the target business component in the area displays the component configuration interface of the target business component; updates the target business component according to the configuration information received in the component configuration interface, and displays the updated target business component in the policy editing area; The business components in the editing area are combined and processed to generate the target business corresponding to the target business scenario in the rail transit system.
  • the present application provides a method for linking components and strategies in order to improve service generation efficiency.
  • the computer device may be a terminal.
  • the terminal may be a mobile phone, a tablet computer, a notebook computer, a smart TV, a wearable smart device, a personal computer (PC, Personal Computer) and a vehicle-mounted terminal.
  • Figure 2 it is a schematic flow diagram of the component and strategy linkage method provided by this application, which includes:
  • Step 101 displaying the business policy editing interface of the rail transit system.
  • Rail transit refers to a type of vehicle or transportation system in which operating vehicles need to run on specific tracks.
  • the most typical rail transit is a railway system composed of traditional trains and standard railways.
  • Common rail transits include traditional railways (national railways, intercity railways and urban railways), subways, light rails and trams.
  • New rail transits include magnetic levitation track systems, monorail systems (straddle track systems and suspended track systems) and Automated People Mover System, etc.
  • the business-strategy linkage method provided in this application can also be applied to an intelligent transportation system.
  • Intelligent Transportation System Intelligent Traffic System, ITS
  • Intelligent Transportation System also known as Intelligent Transportation System (Intelligent Transportation System)
  • advanced science and technology information technology, computer technology, data communication technology, sensor technology, electronic control technology, automatic control theory, operational research science, artificial intelligence, etc.
  • advanced science and technology information technology, computer technology, data communication technology, sensor technology, electronic control technology, automatic control theory, operational research science, artificial intelligence, etc.
  • the scenario-based requirements on the business side are complex and changeable.
  • the traditional business update process needs to span multiple stages such as requirement proposal, development, testing, and upper limit, and resource linkage and business linkage between rail transit systems are very complex. Difficult, requiring business developers to have strong code processing capabilities.
  • many business requirements have high requirements for timeliness. If the efficiency of business generation cannot meet the timeliness requirements, the required services will also change as the demand scenarios change. Businesses generated due to time-sensitive requirements will lose their value.
  • the present application provides a component and strategy linkage method for quickly generating target services required by service scenarios in rail transit systems.
  • the business strategy editing interface can be displayed in the business and strategy linkage device.
  • the business strategy editing interface includes a component display area and a strategy editing area, and the component display area includes at least one business component in the rail transit system.
  • FIG. 3a it is a schematic diagram of the service policy editing interface provided by the present application.
  • the business strategy editing interface 10 includes a component display area 11 and a strategy editing area 12, and the component display area 11 includes at least one business component 111 in the rail transit system.
  • the business component can be used in the business system to use the algorithm, data, process, general, visualization, and IoT functions, package them as components with standard definitions, and save them to form the same user that meets the needs of different business scenarios in the business system and reusable platform service components. Then, by opening the component interface to the outside world, it is provided to the application layer for calling.
  • the business component may specifically be a component corresponding to a business used in a rail transit system.
  • the packaged and saved business components containing the algorithms, data, processes, etc. that need to be used in the business system can be displayed in the form of display elements on the business policy editing interface, so that it can be convenient Users intuitively select and combine business components to generate various business strategies.
  • Step 102 in response to the selection operation of the target business component in the component display area, display the component configuration interface of the target business component.
  • the user can select any one or more target business components in the component display area 11 .
  • all business components cannot be displayed in the component display area, so at least one business component 111 displayed in the component display area is generally a relatively common business component.
  • the business component that the user needs to select is one or more of the aforementioned commonly used business components, the user can directly select the target business component to be selected in the component display area 11; When within the scope of the component, it needs to be selected in other business components.
  • FIG. 3b it is another schematic diagram of the business policy editing interface provided by this application.
  • the component display area 11 also includes a business component selection control 112, which responds to the target business in the component display area.
  • the component selection operation displays the component configuration interface of the target business component, including:
  • the business component selection control 112 can be displayed in the component display area 11 of the business policy editing interface.
  • the business component list can display all the business components that can be called, and the user can search and select the target business component to be used in the business component list.
  • FIG. 3 c it is a schematic diagram of a business component list display interface provided by this application. As shown in the figure, when the user clicks on the business component selection control 112 , the business component list 20 is displayed.
  • displaying a list of business components includes:
  • the business components can be managed through a preset component platform.
  • the business component platform stores a large number of business components, specifically, it may include business components used in all business scenarios in the target rail transit system.
  • the maintenance personnel of the preset component platform can perform operations such as adding new business components, deleting business components, modifying business components, and adjusting the status of business components based on the preset component platform.
  • the state of the service component may specifically include but not limited to component online, component on shelf, component off shelf, and component offline.
  • the component and strategy linkage device When the component and strategy linkage device detects the trigger instruction for the business component selection control 112, it can establish a connection with the aforementioned preset component platform, and then obtain the component data of all business components stored in the platform from the preset component platform,
  • the preset component platform includes at least one business component, specifically, it may include at least one business component corresponding to the rail transit field.
  • the component data corresponding to these business components can be analyzed to obtain the component action information corresponding to each business component.
  • the component action information may be the specific execution operation corresponding to the business component, or the information corresponding to the function that the business component can realize.
  • the component data corresponding to at least one business component is parsed to obtain component action information corresponding to each business component, including:
  • the component data corresponding to the business components are analyzed, specifically, the component data corresponding to each business component may be deeply disassembled.
  • the component data corresponding to the business component generally includes component description data, component interface data and component restriction data.
  • the component description data is generally the data describing the basic information of the component, and specifically may include the functional data and usage scene data of the component.
  • Component interface data generally includes data such as input parameters, output parameters, interface data, and trigger conditions of the component.
  • Component restriction data generally includes call restriction data and security authentication data.
  • the component description data corresponding to the business component can be extracted from the parsed data, and then the function information corresponding to the component action and the use scene information can be generated according to the component description data.
  • the component interface data corresponding to the business component can be extracted from the parsed data, and then the input parameter information, output parameter information, interface information and trigger condition information corresponding to the component action can be generated accordingly, and then the corresponding component action can be based on the above Various types of information generate component action information.
  • the business component list 20 can be further generated according to the component action information, and then the business component list 20 can be displayed.
  • the business component list is generated and displayed according to the component action information, including:
  • a business component list may be generated and displayed according to the component action name corresponding to each business component.
  • the component action name corresponding to each business component may be generated according to the component action information corresponding to each business component.
  • the component action information includes the description information of the component action
  • the description information includes the use scene information of the component action and the function information that the component action can realize. Therefore, in the embodiment of this application, the component action can be used
  • the component action name is generated by corresponding use scene information and function information that the component action can realize.
  • the component action name generated by this method can intuitively display the scenarios that the business component can use and the functions that it can realize, and then can facilitate the user to quickly make a choice of the business component.
  • the user can select the desired target business component in the component list 20 .
  • the component configuration interface corresponding to the target business component may be displayed, and the user may perform corresponding configuration operations on the target business component on the component configuration interface.
  • Figure 3d it is a schematic diagram of the component configuration interface corresponding to the business component provided by this application.
  • the component configuration interface 30 corresponding to the general component is displayed, and the user can select in the configuration interface 30 The common components of the corresponding configuration operations.
  • displaying a list of business components includes:
  • the business component list can be generated according to component actions in the rail transit system strategy platform. Specifically, when a trigger instruction for displaying the service component selection control 112 in the component display area 11 is detected, the service components applied to the rail transit system are acquired from the component platform of the rail transit system.
  • the business components of the rail transit system are business components obtained by the component platform extracting commonly used function codes from various rail transit applications of the rail transit system application platform, and encapsulating and depositing the extracted function codes.
  • the code data of these business components can be analyzed to obtain the function definition information corresponding to each business component, and then each business component is abstracted into component actions in the strategy platform action library in the rail transit system according to the function definition information.
  • the component and policy linkage device can obtain these component actions from the action library of the policy platform, and then generate and display a component list according to the component actions.
  • the component configuration interface of the target business component including:
  • different component configuration interfaces may be displayed for different business components. Specifically, before displaying the component configuration interface corresponding to the target business component, the target usage scenario information corresponding to the target business component selected by the user can be obtained first, and then the target usage scenario information corresponding to the target usage scenario information can be determined according to the mapping relationship between the usage scenario and the configuration interface. Component configuration interface, and then display the target component configuration interface.
  • the usage scenarios of the target business component include but are not limited to manual approval, content approval, and IoT operation
  • the corresponding component configuration interfaces can be manual approval configuration interface, content approval configuration interface, and IoT operation configuration interface.
  • obtaining a target component configuration interface that matches the target usage scenario information includes:
  • the target component configuration interface corresponding to the target usage scenario information may be composed of multiple component configuration elements.
  • a component configuration element library may be maintained, and multiple component configuration elements may be stored in the component configuration element library.
  • the component configuration elements may include but not limited to: component name, component function, component action, component action content, component action execution object, component action execution time, component association object and other individual component configuration elements. According to these individual component configuration elements, the component configuration interfaces required by different component usage scenarios can be obtained through combination.
  • the target component configuration element matching the target usage scenario information can be searched in the component configuration element library according to the target usage scenario information. Then, by combining these target component configuration elements according to certain rules, a target component configuration interface matching the target usage scenario information can be obtained.
  • the target component configuration interface corresponding to the target business component is no longer determined by the mapping relationship table between the usage scenario information and the component configuration interface, but the corresponding target component configuration is determined in the component configuration element library according to the usage scenario information Elements, the target component configuration interface is generated by combining the target component configuration elements. In this way, when the component configuration interface needs to be updated, only one component configuration element can be updated to update the component configuration interfaces corresponding to multiple business scenarios, which can greatly improve the update efficiency of the component configuration interface.
  • the business component list includes a business component status display control
  • the method further includes:
  • the status information of each business component is displayed in the business component list.
  • the status information of each business component can be further displayed in the displayed business component list, so as to further guide the user to select a business component, and avoid selecting some components that have been removed from the shelf. Make business components unusable and make business functions impossible to realize.
  • Figure 3e it is another schematic diagram of the business component list display interface provided by this application. As shown in the figure, a state display control 21 is also displayed in the business component list. When the control 21 is triggered, the component status information corresponding to each business component can be newly displayed on the basis of the business component list shown in FIG. 3c.
  • the status of component C is on the shelf, it means that the component can be programmed and executed; if the status of component B is off the shelf, it means that the component can be executed but cannot be programmed. In this way, the user can clearly understand the status information of each business component on the interface, and select an appropriate target business component according to the status information of each business component.
  • the status information of each business component in response to the user's re-triggering operation on the status display control 21, can be hidden.
  • a business component list including status information of each business component may also be directly displayed.
  • the business and strategy linkage method provided by this application further includes:
  • the updated state information of each business component is obtained from the component platform;
  • the status information of each business component displayed in the business component list is updated according to the updated status information.
  • the business and strategy linkage device can also detect the status information of each business component in the component platform in real time, and when it detects that there is a change in the status information of the business component in the business platform, it can be obtained from the component platform again update status information of each business component, and then update the status information of each business component displayed in the business component list in real time according to the update status information.
  • the function of screening based on state information can also be provided, for example, all listed business components can be screened out, so that the target business component that can be arranged and executed can be quickly selected by eliminating the interference of other business components.
  • the business component list includes a business component edit control corresponding to each business component, and the method further includes:
  • the displayed business list interface 20 may further include a business component editing control for editing each business component in the displayed business component list.
  • FIG. 3f it is another schematic diagram of the service component list display interface provided by the present application.
  • the business component list interface 20 also includes a business component editing control 22 that can edit the displayed business components.
  • each business component corresponds to a business component editing control 22, when the user clicks on any target business component editing control, the editing interface of the business component corresponding to the target business component editing control can be displayed .
  • the business component edit control may also be displayed in the form of "edit" text.
  • FIG. 3g it is a schematic diagram of the business component editing interface provided by this application.
  • the user can edit the basic information of the target business component, interface configuration information, etc., and then preview the edited target Business components, and operations such as testing the edited business components.
  • the target business component is updated based on these editing operations to obtain a new target business component.
  • the component configuration interface includes a device selection control and an instruction configuration control, and the method further includes:
  • a configuration interface of the IoT component is also provided, in which the IoT relationship between different rail transit equipment and the corresponding control instructions can be configured.
  • FIG. 3h it is another schematic diagram of the component configuration interface provided by the present application.
  • a device selection control 31 and an instruction configuration control 32 are displayed.
  • the user clicks the device selection control 31 a list of candidate devices is displayed, and the user can select one or more target devices in the list of candidate devices, so that the target service component is associated with the target device.
  • the user can continue to click on the command configuration control 32, and then display the command configuration interface corresponding to the target device.
  • the user can input specific configured control commands for the target device, receive the control commands input by the user and convert these control commands Associations are kept in the target business component.
  • Step 103 update the target business component according to the configuration information received by the component configuration interface, and display the updated target business component in the policy editing area.
  • the component and policy linkage device updates the target business component according to the configuration of the target business component by the user. Then, the updated target business component is displayed on the policy editing area 12 of the business policy editing interface 10 .
  • displaying the updated target business component on the policy editing area may include determining the display position of the target business component and how to display the target business component.
  • the updated target business component is displayed in the policy editing area, including:
  • the target display image corresponding to the updated target service component may be generated first.
  • the target display image may be determined according to the usage scenario corresponding to the target business component, or may be determined according to the realizable function corresponding to the target business component.
  • the user can adjust the position of the target display image by clicking and dragging the target display image corresponding to the updated target service component. The user can drag the target display image to any position in the policy editing area 12, and then display the target display image at that position.
  • the user can repeat the above-mentioned operations of selecting the target business component, configuring the target business component, and displaying the configured target business component in the policy editing area 12, and displaying multiple business components that need to be used in the policy Edit area 12. In order to further generate the target business according to the business components displayed in the policy editing area 12 .
  • some business logic components can also be displayed in the component display area, and the business logic components can connect different business components through certain logic.
  • the business logic component may be a start component, an end component, a distribution component, an aggregation component, a delay component, and the like. The user can also select and drag the icon to display the business logic component in the policy editing area 12 .
  • Step 104 combine the business components in the policy editing area to generate the target business corresponding to the target business scenario in the rail transit system.
  • the business components in the policy editing area can be further combined and processed by setting the connection relationship between the components, so as to obtain the business processing Strategy. Then, further, the target business corresponding to the target business scenario in the rail transit system can be generated according to the business processing strategy.
  • combining the business components in the policy editing area includes:
  • the combination of business components can be realized by associating the display images displayed in the policy editing area 12 in the business policy editing interface 10 .
  • the display image corresponding to each business component can be used as a process node in the flow chart, and different nodes can be connected in series by adding directed connection lines between nodes to form a complete flow chart.
  • FIG. 3i it is another schematic diagram of the policy editing interface provided by the present application.
  • component A, component B, component C and various business logic components are associated through directed connection lines to form a complete flow chart, which corresponds to a specific business processing strategy.
  • the code and data corresponding to the packaging of each component are integrated to obtain the target business suitable for the target business scenario in the rail transit system.
  • the component and strategy linkage method displays the business strategy editing interface of the rail transit system.
  • the business strategy editing interface includes a component display area and a strategy editing area, and the component display area includes at least one rail transit system.
  • the business component in; in response to the selection operation of the target business component in the component display area, the component configuration interface of the target business component is displayed; the target business component is updated according to the configuration information received by the component configuration interface, and the updated target business component Display in the strategy editing area; combine the business components in the strategy editing area to generate the target business corresponding to the target business scenario in the rail transit system.
  • this application encapsulates the components required for service generation and displays them on the strategy platform. Users can select, configure and combine the displayed components to quickly generate target services required by service scenarios.
  • This method does not require business developers to have the professional ability to write business code, and can quickly generate the target business required by the business scenario, thereby greatly improving the efficiency of business generation.
  • the present application also provides a component and strategy linkage method, which can be used in a computer device, and the computer device can be a terminal.
  • a component and strategy linkage method which can be used in a computer device, and the computer device can be a terminal.
  • Figure 4 it is another schematic flowchart of the component and strategy linkage method provided by this application. The method specifically includes:
  • step 201 the computer equipment obtains the component data corresponding to each business component in the component platform corresponding to the rail transit system.
  • the service resources that can be reused in various applications in the rail transit system can be defined as standardized components, and these standardized components can be managed uniformly by using the component platform. Then, the rapid orchestration of various services is realized by combining the strategy platform with the component platform.
  • the component and strategy linkage method provided by this application is specifically a method of using the component platform of the rail transit system and the strategy platform for linkage to quickly realize the rapid arrangement of various application services in the rail transit system.
  • the component platform can be set in the background server, and the policy platform can be integrated in the computer equipment in the form of application program.
  • the policy platform realizes the interaction with the user through the computer equipment, receives the user's input instruction and invokes the corresponding business component in the component platform based on the user's input instruction, and then generates the target business required by the user.
  • the policy platform Before the policy platform provides users with business orchestration functions, it needs to obtain data related to business components from the component platform. Specifically, computer equipment can obtain component data corresponding to each business component of the rail transit system from the background server.
  • Step 202 the computer device analyzes the component data corresponding to each business component, and obtains component action information corresponding to each business component.
  • the computer device after the computer device obtains the component data corresponding to each business component, it can analyze the component data of each business component to obtain the description information, application program interface information and restriction information of each business component. Then determine the description information of the business action according to the description information of the business component.
  • the description information of the business action specifically includes the function, classification and usage scenario information of the business action; determine the input parameter information, output parameter information, Interface information and trigger condition information; determine the restriction information of the business action according to the restriction information of the business component, and the restriction information of the business action specifically includes the call restriction and security authentication information.
  • Step 203 the computer device displays the business policy editing interface of the rail transit system.
  • the policy platform may specifically be installed in a computer device in the form of a business orchestration application.
  • the business orchestration application can be opened on the computer device.
  • the computer device starts the business arrangement application, and displays the business strategy editing interface of the rail transit system.
  • the user can edit the business policy on the business policy editing interface, and then generate the target business corresponding to the target scenario according to the edited business policy.
  • the business policy editing interface may include a functional area and an editing area, and in the functional area, users can select required business components and business logic components that connect the business components in logical series.
  • the user can display the selected target business components and target business logic components in the editing area, so that the target business components selected by the user can be combined visually to obtain the required business strategy.
  • Step 204 in response to the service component selection instruction, the computer device displays a list of business components.
  • the computer device can display a business component list in the functional area for the user to select the target business component, or display the business component selection control in the functional area, and respond to the user's trigger operation on the business component selection control, and then select the target business component.
  • a list of business components is displayed on the interface.
  • the business component list may be generated from the component action information obtained through the foregoing analysis. Specifically, the action name of each component action may be generated first according to the usage scenario and function of the component action contained in the component action information. Then, a business component list is generated and displayed with the action name corresponding to each business component. Since the usage scenarios and functional information of business actions can clearly describe the usage scenarios and functions of business components, the component list generated based on these information can allow users to find the required target business components more clearly and efficiently.
  • Step 205 the computer device displays the target business component selected by the user in the policy editing area.
  • the user may select one or more target business components required by the target business scenario from a list of business components displayed by the computer device. Then, the computer device can display the target business component selected by the user in the editing area of the business policy editing page, and the editing area can also be called the policy editing area.
  • the user can also drag the target business components displayed in the strategy editing area to modify the position of each target business component displayed in the strategy editing area.
  • Step 206 the computer device updates the target business component according to the user's configuration operation on the target business component.
  • the user can perform component configuration for each selected target business component.
  • the component configuration interface may display a target component configuration interface that matches the scene information according to the category, function, and scene information of the corresponding action of the component. Users can configure target business components in the target component configuration interface.
  • business components are standardized reusable resources, they are generally initialized resources. When these business components need to be used in specific scenarios, it is necessary to enter these business components and configure authentication information according to the information of the specific usage scenarios, so that standardized business components can be truly applied in business scenarios.
  • the computer device can respond to the configuration trigger operation of each target business component by the user, and display the configuration interface of each target business component, and then the user can perform configuration operations on the configuration interface of the target business component. After the configuration is completed, the computer device updates each target service component according to the user's configuration operation on each target service component, and obtains the updated target service component.
  • Step 207 the computer device generates a business processing policy according to the user's associated operation on the target business component displayed in the policy editing area.
  • users can further adjust their display positions in the policy editing area, and use association operations to correlate business components, so as to combine multiple target business components into a complete flow chart , the flow chart corresponds to a business processing strategy of the target business scenario.
  • Step 208 the computer device generates the target business corresponding to the target scene in the rail transit system according to the business processing strategy.
  • the updated business data corresponding to each target business in the business processing strategy can be further obtained, and then these business data can be processed according to the logical relationship in the business processing strategy Integrate to obtain the target business corresponding to the target business scenario in the rail transit system.
  • the target service After obtaining the target service, the target service can be further tested to determine whether it has the expected function.
  • the component and strategy linkage method displays the business strategy editing interface of the rail transit system.
  • the business strategy editing interface includes a component display area and a strategy editing area, and the component display area includes at least one rail transit system.
  • the business component in; in response to the selection operation of the target business component in the component display area, the component configuration interface of the target business component is displayed; the target business component is updated according to the configuration information received by the component configuration interface, and the updated target business component Display in the strategy editing area; combine the business components in the strategy editing area to generate the target business corresponding to the target business scenario in the rail transit system.
  • this application encapsulates the components required for service generation and displays them on the strategy platform. Users can select, configure and combine the displayed components to quickly generate target services required by service scenarios.
  • This method does not require business developers to have the professional ability to write business code, and can quickly generate the target business required by the business scenario, thereby greatly improving the efficiency of business generation.
  • an embodiment of the present application further provides a component and a policy linkage device, and the component and the policy linkage device may be integrated in a terminal.
  • FIG. 5 it is a schematic structural diagram of the components and the strategy linkage device provided by the embodiment of the present application.
  • the components and the strategy linkage device may include a first display unit 301, a second display unit 302, a third display unit 303 and Generating unit 304, as follows:
  • the first display unit 301 is used to display the business strategy editing interface of the rail transit system.
  • the business strategy editing interface includes a component display area and a strategy editing area, and the component display area includes at least one business component in the rail transit system;
  • the second display unit 302 is configured to display a component configuration interface of the target business component in response to a selection operation of the target business component in the component display area;
  • the third display unit 303 is configured to update the target business component according to the configuration information received by the component configuration interface, and display the updated target business component in the policy editing area;
  • the generation unit 304 is configured to perform combination processing on the business components in the policy editing area, so as to generate the target business corresponding to the target business scenario in the rail transit system.
  • the component display area includes a business component selection control
  • the second display unit includes:
  • the first display subunit is configured to display a list of business components in response to a trigger operation for selecting a control of the business component
  • the second display subunit is configured to display a component configuration interface of the target business component in response to a selection operation of the target business component in the business component list.
  • the business component list includes a business component status display control
  • the component and policy linkage device also includes:
  • the third display subunit is configured to display the status information of each business component in the business component list in response to a trigger operation on the business component status display control.
  • the business component list includes a business component editing control corresponding to each business component
  • the component and strategy linkage device also includes:
  • the fourth display subunit is configured to display the editing interface of the business component corresponding to the target business component edit control in response to a selection operation on the target business component edit control;
  • the first updating subunit is configured to acquire the editing operation received by the editing interface, and update the business component corresponding to the editing control of the target business component according to the editing operation.
  • the component configuration interface includes a device selection control and an instruction configuration control
  • the component and policy linkage device further includes:
  • the fifth display subunit is configured to display a candidate device list in response to a trigger operation on the device selection control
  • An associating subunit configured to receive a selection operation for a target device in the candidate device list, and associate the target device with the target service component;
  • the sixth display subunit is configured to display an instruction configuration interface of the target device in response to a trigger operation on the instruction configuration control;
  • the receiving subunit is configured to receive the command configuration information input in the command configuration interface.
  • the third display unit includes:
  • the seventh display subunit is used to display the target display image of the updated target business component in response to the selection operation of the updated target business component;
  • a determination subunit configured to determine a target position corresponding to the display position adjustment operation on the business policy editing interface in response to the display position adjustment operation for the target display image
  • the eighth display subunit is used to display the target display image at the target position.
  • the generating unit includes:
  • the receiving subunit is used to receive the associated operation between the display images displayed on the business policy editing interface
  • the combination subunit is configured to combine the components corresponding to each display image according to the association operation.
  • the first display subunit includes:
  • the first obtaining module is used to obtain component data corresponding to at least one business component from a preset component platform when a trigger instruction for selecting a control of a business component is detected;
  • a parsing module configured to parse component data corresponding to at least one business component, and obtain component action information corresponding to each business component;
  • the first display module is used to generate and display a business component list according to component action information.
  • the parsing module includes:
  • the first extraction sub-module is used to extract component description data from the component data, and generate function information of component actions and use scene information according to the component description data;
  • the second extraction sub-module is used to extract component interface data from the component data, and generate input parameter information, output parameter information, interface information and trigger condition information of the component action according to the component interface data;
  • the first generation sub-module is used to generate component action information according to component action function information, usage scenario information, input parameter information, output parameter information, interface information and trigger condition information.
  • the first display module includes:
  • the second generating submodule is used to generate a component action name according to the component action information
  • the third generation sub-module is used to generate and display a list of business components based on component action names.
  • the second display subunit includes:
  • the second acquisition module is used to acquire target usage scenario information corresponding to the target business component when a selection instruction for the target component in the business component list is detected;
  • the third obtaining module is used to obtain the target component configuration interface matching the target usage scenario information
  • the second display module is used to display the target component configuration interface.
  • the third acquisition module includes:
  • the acquisition sub-module is used to acquire at least one target component configuration element matching the target usage scenario information in the preset component configuration element library;
  • the fourth generation sub-module is used to generate the target component configuration interface according to the target component configuration elements.
  • the first display subunit includes:
  • the fourth acquisition module is used to obtain the business components applied to the rail transit system from the component platform of the rail transit system when a trigger instruction for selecting a control for the business component is detected, and the business components are obtained by the component platform from each
  • the function code is extracted and encapsulated in the similar rail transit application;
  • the second parsing module is used to parse the code data of the business component, obtain the function definition information of the business component, and abstract the business component into a component action in the policy platform action library according to the function definition information;
  • the third display module is used to generate and display a list of business components according to the component actions in the policy platform action library.
  • each of the above units may be implemented as an independent entity, or may be combined arbitrarily as the same or several entities.
  • the specific implementation of each of the above units may refer to the previous method embodiments, and will not be repeated here.
  • the components and the strategy linkage device display the business strategy editing interface of the rail transit system through the first display unit 301.
  • the business strategy editing interface includes a component display area and a strategy editing area.
  • the component display area includes At least one business component in the rail transit system; in response to the selection operation of the target business component in the component display area, the second display unit 302 displays the component configuration interface of the target business component; the third display unit 303 receives according to the component configuration interface
  • the configuration information updates the target business component, and displays the updated target business component in the policy editing area; the generation unit 304 combines the business components in the policy editing area to generate the target corresponding to the target business scenario in the rail transit system business.
  • this application encapsulates the components required for service generation and displays them on the strategy platform. Users can select, configure and combine the displayed components to quickly generate target services required by service scenarios.
  • This method does not require business developers to have the professional ability to write business code, and can quickly generate the target business required by the business scenario, thereby greatly improving the efficiency of business generation.
  • the embodiment of the present application also provides a component and strategy linkage system, as shown in FIG. 6 , which is a topology diagram of the component and strategy linkage system provided in the present application.
  • the system includes a component platform 100 and a policy platform 200.
  • the component platform 100 is used to store and manage business components, feed back the status information of the business components to the policy platform in real time, and provide target business component;
  • the policy platform 200 is used to display the business policy editing interface of the rail transit system, the business policy editing interface includes a component display area and a strategy editing area, and the component display area includes at least one business component in the rail transit system ;
  • the component configuration interface of the target business component In response to the selection operation of the target business component in the component display area, display the component configuration interface of the target business component; update the target business component according to the configuration information received by the component configuration interface, and update the updated
  • the target business components in the strategy editing area are displayed in the strategy editing area; the business components in the strategy editing area are combined to generate the target business corresponding to the target business scenario in the rail transit system.
  • FIG. 7 it is a schematic diagram of interaction between the components and the policy linkage system provided by the embodiment of the present application.
  • it shows the interaction process of a business component in the component platform 100 and the strategy platform 200 in the whole life cycle.
  • the current state of the business component can be linked and shared with the policy platform 200 in real time.
  • the business component can be launched and put on the shelf in the policy platform 200, that is, the business component can be displayed in the component list displayed on the computer device, and marked The status of this business component is Available.
  • the status of the business component in the component platform 100 is switched to off-shelf, the information will be shared with the policy platform 200 in real time, and the component list will show that the status of the component is executable but not editable.
  • the embodiment of the present application also provides a computer device, which may be a terminal, as shown in FIG. 8 , which is a schematic structural diagram of the computer device provided in the present application. Specifically:
  • the computer device may include a processing unit 401 of one or more processing cores, a storage unit 402 of one or more storage media, a power module 403, an input module 404 and other components.
  • a processing unit 401 of one or more processing cores may include a storage unit 402 of one or more storage media, a power module 403, an input module 404 and other components.
  • FIG. 8 does not constitute a limitation on the computer device, and may include more or less components than shown in the figure, or combine some components, or arrange different components. in:
  • the processing unit 401 is the control center of the computer equipment, uses various interfaces and lines to connect various parts of the entire computer equipment, runs or executes the software programs and/or modules stored in the storage unit 402, and calls the software programs and/or modules stored in the storage unit 402. Perform various functions of computer equipment and process data, so as to monitor the computer equipment as a whole.
  • the processing unit 401 may include one or more processing cores; preferably, the processing unit 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, etc. , the modem processor mainly handles wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processing unit 401 .
  • the storage unit 402 can be used to store software programs and modules, and the processing unit 401 executes various functional applications and data processing by running the software programs and modules stored in the storage unit 402 .
  • the storage unit 402 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, and web page access, etc.); The area may store data and the like created according to use of the computer device.
  • the storage unit 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
  • the storage unit 402 may further include a memory controller to provide the processing unit 401 with access to the storage unit 402 .
  • the computer device also includes a power supply module 403 for supplying power to various components.
  • the power supply module 403 can be logically connected to the processing unit 401 through the power management system, so that functions such as charging, discharging, and power consumption management can be realized through the power management system.
  • the power module 403 may also include one or more DC or AC power sources, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.
  • the computer device can also include an input module 404, which can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
  • an input module 404 which can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
  • the computer device may also include a display unit, etc., which will not be repeated here.
  • the processing unit 401 in the computer device will load the executable file corresponding to the process of one or more application programs into the storage unit 402 according to the following instructions, and the processing unit 401 will run the stored file.
  • the application programs in the storage unit 402, thereby realizing various functions, are as follows:
  • the business strategy editing interface includes a component display area and a strategy editing area, the component display area includes at least one business component in the rail transit system; in response to the selection operation of the target business component in the component display area , display the component configuration interface of the target business component; update the target business component according to the configuration information received in the component configuration interface, and display the updated target business component in the policy editing area; combine the business components in the policy editing area processing to generate the target business corresponding to the target business scenario in the rail transit system.
  • an embodiment of the present invention provides a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any one of the methods provided in the embodiments of the present invention.
  • the command can perform the following steps:
  • the business strategy editing interface includes a component display area and a strategy editing area, the component display area includes at least one business component in the rail transit system; in response to the selection operation of the target business component in the component display area , display the component configuration interface of the target business component; update the target business component according to the configuration information received in the component configuration interface, and display the updated target business component in the policy editing area; combine the business components in the policy editing area processing to generate the target business corresponding to the target business scenario in the rail transit system.
  • the computer-readable storage medium may include: a read-only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and the like.
  • a computer program product or computer program includes computer instructions, and the computer instructions are stored in a storage medium.
  • the processor of the computer device reads the computer instruction from the storage medium, and the processor executes the computer instruction, so that the computer device executes the methods provided in the various optional implementation manners above.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • User Interface Of Digital Computer (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

一种组件及策略联动方法、装置、设备、系统及存储介质,该方法可应用于交通领域。方法通过显示轨道交通系统的业务策略编辑界面,业务策略编辑界面包括组件展示区域和策略编辑区域,组件展示区域包括至少一个轨道交通系统中的业务组件;响应于对组件展示区域中目标业务组件的选择操作,显示目标业务组件的组件配置界面;根据组件配置界面接收到的配置信息更新目标业务组件,并将更新后的目标业务组件在策略编辑区域中进行显示;对策略编辑区域内的业务组件进行组合处理,以生成轨道交通系统中目标业务场景对应的目标业务。该方法可以通过业务组件和策略的联动,迅速生成目标业务场景对应的目标业务,大大提升了业务生成效率。

Description

一种组件及策略联动方法、装置、设备、系统及存储介质 技术领域
本申请涉及业务处理技术领域,具体涉及一种组件及策略联动方法、装置、设备、系统及存储介质。
背景技术
随着互联网技术的不断发展,全球已经进入了互联网时代,丰富的互联网产品为人们的生活带来了极大的便利。
实现互联网产品的各项功能,离不开各类软件业务的支持。目前当需要开发新的产品功能时,需要开发人员业务代码,导致业务生成效率十分低下。
发明内容
本申请实施例提供一种组件及策略联动方法、装置、设备、系统及存储介质,该方法可以业务生成的效率。
本申请第一方面提供一种组件及策略联动方法,方法包括:
显示轨道交通系统的业务策略编辑界面,所述业务策略编辑界面包括组件展示区域和策略编辑区域,所述组件展示区域包括至少一个所述轨道交通系统中的业务组件;
响应于对所述组件展示区域中目标业务组件的选择操作,显示所述目标业务组件的组件配置界面;
根据所述组件配置界面接收到的配置信息更新所述目标业务组件,并将更新后的目标业务组件在所述策略编辑区域中进行显示;
对所述策略编辑区域内的业务组件进行组合处理,以生成轨道交通系统中目标业务场景对应的目标业务。
相应的,本申请第二方面提供一种组件及策略联动装置,装置包括:
第一显示单元,用于显示轨道交通系统的业务策略编辑界面,所述业务策略编辑界面包括组件展示区域和策略编辑区域,所述组件展示区域包括至少一个所述轨道交通系统中的业务组件;
第二显示单元,用于响应于对所述组件展示区域中目标业务组件的选择操作,显示所述目标业务组件的组件配置界面;
第三显示单元,用于根据所述组件配置界面接收到的配置信息更新所述目标业务组件,并将更新后的目标业务组件在所述策略编辑区域中进行显示;
生成单元,用于对所述策略编辑区域内的业务组件进行组合处理,以生成轨道交通系统中目标业务场景对应的目标业务。
在一些实施例中,所述组件展示区域包括业务组件选择控件,所述第二显示单元,包括:
第一显示子单元,用于响应于针对所述业务组件选择控件的触发操作,显示业务组件列表;
第二显示子单元,用于响应于针对所述业务组件列表中目标业务组件的选择操作,显示所述目标业务组件的组件配置界面。
在一些实施例中,所述业务组件列表中包括业务组件状态展示控件,所述组件及策略联动装置还包括:
第三显示子单元,用于响应于针对所述业务组件状态显示控件的触发操作,在所述业务组件列表中显示每一业务组件的状态信息。
在一些实施例中,所述业务组件列表中包括每一业务组件对应的业务组件编辑控件,所述组件及策略联动装置还包括:
第四显示子单元,用于响应于针对目标业务组件编辑控件的选择操作,显示所述目标业务组件编辑控件对应的业务组件的编辑界面;
第一更新子单元,用于获取所述编辑界面接收到的编辑操作,并根据所述编辑操作对所述目标业务组件编辑控件对应的业务组件进行更新。
在一些实施例中,所述组件配置界面包括设备选择控件以及指令配置控件,所述组件及策略联动装置还包括:
第五显示子单元,用于响应于针对所述设备选择控件的触发操作,显示候选设备列表;
关联子单元,用于接收针对所述候选设备列表中目标设备的选择操作,将所述目标设备与所述目标业务组件进行关联;
第六显示子单元,用于响应于针对所述指令配置控件的触发操作,显示所述目标设备的指令配置界面;
接收子单元,用于接收所述指令配置界面中输入的指令配置信息。
在一些实施例中,所述第三显示单元,包括:
第七显示子单元,用于响应于针对所述更新后的目标业务组件的选中操作,显示所述更新后的目标业务组件的目标显示图像;
确定子单元,用于响应于针对所述目标显示图像的显示位置调整操作,确定所述显示位置调整操作在所述业务策略编辑界面上对应的目标位置;
第八显示子单元,用于在所述目标位置显示所述目标显示图像。
在一些实施例中,所述生成单元,包括:
接收子单元,用于接收对所述业务策略编辑界面上显示的显示图像之间的关联操作;
组合子单元,用于根据所述关联操作对每一显示图像对应的组件进行组合。
在一些实施例中,所述第一显示子单元,包括:
第一获取模块,用于当检测到针对所述业务组件选择控件的触发指令时,从预设组件平台获取至少一个业务组件对应的组件数据;
第一解析模块,用于解析所述至少一个业务组件对应的组件数据,得到每一业务组件对应的组件动作信息;
第一显示模块,用于根据所述组件动作信息生成业务组件列表并进行显示。
在一些实施例中,所述解析模块,包括:
第一提取子模块,用于从所述组件数据中提取出组件描述数据,根据所述组件描述数据生成组件动作的功能信息以及使用场景信息;
第二提取子模块,用于从所述组件数据中提取出组件接口数据,根据所述组件接口数据生成组件动作的输入参数信息、输出参数信息、接口信息以及触发条件信息;
第一生成子模块,用于根据所述组件动作的功能信息、使用场景信息、输入参数信息、输出参数信息、接口信息以及触发条件信息生成组件动作信息。
在一些实施例中,所述第一显示模块,包括:
第二生成子模块,用于根据所述组件动作信息生成组件动作名称;
第三生成子模块,用于基于所述组件动作名称生成业务组件列表并进行显示。
在一些实施例中,所述第二显示子单元,包括:
第二获取模块,用于当检测到针对所述业务组件列表中目标组件的选择指令时,获取所述目标业务组件对应的目标使用场景信息;
第三获取模块,用于获取与所述目标使用场景信息匹配的目标组件配置界面;
第二显示模块,用于显示所述目标组件配置界面。
在一些实施例中,所述第三获取模块,包括:
获取子模块,用于在预设的组件配置元素库中获取至少一个与所述目标使用场景信息匹配的目标组件配置元素;
第四生成子模块,用于根据所述目标组件配置元素生成目标组件配置界面。
在一些实施例中,所述第一显示子单元,包括:
第四获取模块,用于当检测到针对所述业务组件选择控件的触发指令时,从轨道交通系统的组件平台获取应用于所述轨道交通系统的业务组件,所述业务组件由所述组件平台从轨道交通系统应用平台的各类轨道交通应用中提取功能代码并封装得到;
第二解析模块,用于对所述业务组件的代码数据进行解析,得到所述业务组件的功能定义信息,并根据所述功能定义信息将所述业务组件抽象成策略平台动作库中的组件动作;
第三显示模块,用于根据所述策略平台动作库中的组件动作生成业务组件列表并进行显示。
本申请第三方面还提供一种计算机可读存储介质,所述计算机可读存储介质存储有多条指令,所述指令适于处理器进行加载,以执行本申请第一方面所提供的组件及策略联动方法中的步骤。
本申请第四方面提供一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可以在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现本申请第一方面所提供的组件及策略联动方法中的步骤。
本申请第五方面提供一种组件及策略联动系统,所述系统包括组件平台以及策略平台,所述组件平台用于存储及管理业务组件,实时向策略平台反馈业务组件的状态信息以及响应于所述策略平台的调用,向所述策略平台提供目标业务组件;
所述策略平台,用于显示轨道交通系统的业务策略编辑界面,所述业务策略编辑界面包括组件展示区域和策略编辑区域,所述组件展示区域包括至少一个所述轨道交通系统中的业务组件;响应于对所述组件展示区域中目标业务组件的选择操作,显示所述目标业务组件的组件配置界面;根据所述组件配置界面接收到的配置信息更新所述目标业务组件,并将更新后的目标业务组件在所述策略编辑区域中进行显示;对所述策略编辑区域内的业务组件进行组合处理,以生成轨道交通系统中目标业务场景对应的目标业务。
本申请第六方面提供一种计算机程序产品或计算机程序,所述计算机程序产品或计算机程序包括计算机指令,所述计算机指令存储在存储介质中。计算机设备的处理器从存储介质读取所述计算机指令,处理器执行所述计算机指令,使得所述计算机设备执行第一方面所提供的组件及策略联动方法中的步骤。
本申请实施例提供的组件及策略联动方法,通过显示轨道交通系统的业务策略编辑界面,业务策略编辑界面包括组件展示区域和策略编辑区域,组件展示区域包括至少一个轨道交通系统中的业务组件;响应于对组件展示区域中目标业务组件的选择操作,显示目标业务组件的组件配置界面;根据组件配置界面接收到的配置信息更新目标业务组件,并将更新后的目标业务组件在策略编辑区域中进行显示;对策略编辑区域内的业务组件进行组合处理,以生 成轨道交通系统中目标业务场景对应的目标业务。
以此,本申请通过将业务生成所需的组件进行封装后在策略平台上予以展示,用户可以对展示的组件进行选择、配置以及组合,从而快速生成业务场景所需的目标业务。该方法无需业务开发者具有业务代码的专业编写能力,也可以快速生成业务场景所需的目标业务,从而可以极大地提升业务生成的效率。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本申请中组件及策略联动方法的一个场景示意图;
图2是本申请提供的组件及策略联动方法的流程示意图;
图3a是本申请提供的业务策略编辑界面的一个示意图;
图3b是本申请提供的业务策略编辑界面的另一示意图;
图3c是本申请提供的业务组件列表显示界面的一示意图;
图3d是本申请提供的组件配置界面的一示意图;
图3e是本申请提供的业务组件列表显示界面的另一示意图;
图3f是本申请提供的业务组件列表显示界面的又一示意图;
图3g是本申请提供的业务组件编辑界面的示意图;
图3h是本申请提供的组件配置界面的另一示意图;
图3i是本申请提供的策略编辑界面的又一示意图;
图4是本申请提供的组件及策略联动方法的又一流程示意图;
图5是本申请提供的组件及策略联动装置的结构示意图;
图6是本申请提供的组件及策略联动系统的拓扑图;
图7是本申请实施例提供的组件及策略联动系统的交互示意图;
图8是本申请提供的计算机设备的结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明实施例提供一种组件及策略联动方法、装置、设备、系统及存储介质。其中,该组件及策略联动方法可以使用于组件及策略联动装置中。该组件及策略联动装置可以集成在计算机设备中,该计算机设备可以是终端也可以是服务器。其中,终端可以为手机、平板电脑、笔记本电脑、智能电视、穿戴式智能设备、个人计算机(PC,Personal Computer)等设备。服务器可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、网络加速服务(Content Delivery Network,CDN)、以及大数据和人工智能平台等基础云计算服务的云服务器。其中,服务器可以为区块链中的节点。
请参阅图1,为本申请提供的组件及策略联动方法的一场景示意图。其中,该组件及策略联动方法可以具体应用于轨道交通系统中,通过轨道交通系统中组件平台和策略平台的联动迅速在策略平台上生成由各类标准业务组件构成的业务策略,然后根据业务策略从组件平台中提取相应的组件生成轨道交通系统中目标场景对应的目标业务。其中,轨道交通系统是指运营车辆需要在特定轨道上行驶的一类交通工具或运输系统,最典型的轨道交通就是由传统火车和标准铁路所组成的铁路系统。随着轨道交通技术的多元化发展,轨道交通呈现出越来越多的类型,例如地铁、城轨、轻轨、有轨电车以及磁悬浮轨道系统等。如图所示,计算机设备A显示轨道交通系统的业务策略编辑界面,业务策略编辑界面包括组件展示区域和策略编辑区域,组件展示区域包括至少一个轨道交通系统中的业务组件;响应于对组件展示区域中目标业务组件的选择操作,显示目标业务组件的组件配置界面;根据组件配置界面接收到的配置信息更新目标业务组件,并将更新后的目标业务组件在策略编辑区域中进行显示;对策略编辑区域内的业务组件进行组合处理,以生成轨道交通系统中目标业务场景对应的目标业务。
需要说明的是,图1所示的组件及策略联动方法的场景示意图仅仅是一个示例,本申请实施例描述的组件及策略联动场景是为了更加清楚地说明本申请的技术方案,并不构成对于本申请提供的技术方案的限定。本领域普通技术人员可知,随着业务生成场景演变和新业务场景的出现,本申请提供的技术方案对于类似的技术问题,同样适用。
基于上述实施场景以下分别进行详细说明。
在相关技术中,在一些面向用户的应用或者系统中,经常会因为用户的需求变化或者使用场景的变化,需要生成新的业务来满足新的用户需求或者新的使用场景的需求。目前,生成新的业务需要跨越需求提出、开发、测试以及上线等多个阶段,并且业务开发过程依赖开发人员的手动编写开发,耗时很长,导致业务生成效率十分低下。
为解决上述业务生成效率低下的技术问题,本申请提供一种组件及策略联动的方法,以期能够提升业务生成的效率。
为方便对本申请技术方案的理解,下面对本申请提供的方案进行详细介绍。
本申请实施例将从组件及策略联动装置的角度进行描述,该组件及策略联动装置可以集成在计算机设备中。其中,计算机设备可以是终端。其中,终端可以为手机、平板电脑、笔记本电脑、智能电视、穿戴式智能设备、个人计算机(PC,Personal Computer)以及车载终端等设备。如图2所示,为本申请提供的组件及策略联动方法的流程示意图,该方法包括:
步骤101,显示轨道交通系统的业务策略编辑界面。
其中,本申请提供的业务与策略联动方法可以应用于轨道交通系统中。轨道交通是指运营车辆需要在特定轨道上行驶的一类交通工具或运输系统。最典型的轨道交通就是由传统火车和标准铁路所组成的铁路系统。随着火车和铁路技术的多元化发展,轨道交通呈现出越来越多的类型,不仅遍布于长距离的陆地运输,也广泛运用于中短距离的城市公共交通中。常见的轨道交通有传统铁路(国家铁路、城际铁路和市域铁路)、地铁、轻轨和有轨电车,新型轨道交通有磁悬浮轨道系统、单轨系统(跨座式轨道系统和悬挂式轨道系统)和旅客自动捷运系统等。本申请提供的业务与策略联动方法也可以应用于智能交通系统中。智能交通系统(Intelligent Traffic System,ITS)又称智能运输系统(Intelligent Transportation System),是将先进的科学技术(信息技术、计算机技术、数据通信技术、传感器技术、电子控制技术、自动控制理论、运筹学、人工智能等)有效地综合运用于交通运输、服务控制和车辆制造,加强车辆、道路、使用者三者之间的联系,从而形成一种保障安全、提高效率、改 善环境、节约能源的综合运输系统。
在轨道交通系统中,业务侧的场景化需求复杂且多变,传统的业务更新换代流程需要跨越需求提出、开发、测试以及上限等多个阶段,且轨道交通系统间的资源联动与业务联动十分困难,需要业务开发人员具有很强的代码处理能力。而且,由于在轨道交通系统中,很多业务需求对于时效性的要求较高,如果业务生成效率不能满足时效性要求,随着需求场景的不断变化,所需求的业务也随之发生变化,那么晚于时效要求生成的业务便会失去价值。为解决上述问题,本申请提供了一种组件及策略联动方法,用于在轨道交通系统中快速生成业务场景所需的目标业务。
在本申请实施例中,可以在业务及策略联动装置中显示业务策略编辑界面,业务策略编辑界面包括组件展示区域和策略编辑区域,组件展示区域包括至少一个轨道交通系统中的业务组件。具体地,如图3a所示,为本申请提供的业务策略编辑界面的一个示意图。如图所示,业务策略编辑界面10中包括组件展示区域11以及策略编辑区域12,在组件展示区域11中包括至少一个轨道交通系统中的业务组件111。其中,业务组件可以为把业务系统中需要用到的算法、数据、流程、通用、可视化以及物联等功能,以标准定义封装为组件并保存,形成满足业务系统中不同业务场景需求的同用户和可复用的平台服务组件。然后,通过对外开放组件接口,提供给应用层进行调用。在本申请实施例中,业务组件具体可以为在轨道交通系统中使用到的业务对应的组件。
在本申请实施例中,可以将上述封装并保存下来的包含业务系统中需要用到的算法、数据、流程等对应的业务组件以显示元素的形式在业务策略编辑界面上进行显示,从而可以方便用户直观地进行业务组件的选用以及组合以生成各类业务策略。
步骤102,响应于对组件展示区域中目标业务组件的选择操作,显示目标业务组件的组件配置界面。
其中,在本申请实施例中,用户可以在组件展示区域11中选择任意一个或多个目标业务组件。可以理解的是,由于组件展示区域11的空间有限,无法在组件展示区域将所有的业务组件进行显示,因此在组件展示区域中展示的至少一个业务组件111一般都是比较常用的业务组件。当用户需要选择的业务组件为前述常用的业务组件中的一个或多个时,用户可以直接在组件展示区域11中选择需要选用的目标业务组件;当用户需要选择的业务组件不在前述常用的业务组件范围内时,则需要在其他业务组件中进行选取。具体地,如图3b所示,为本申请提供的业务策略编辑界面的另一示意图,如图所示,组件展示区域11中还包括业务组件选择控件112,响应于对组件展示区域中目标业务组件的选择操作,显示目标业务组件的组件配置界面,包括:
1、响应于针对业务组件选择控件的触发操作,显示业务组件列表;
2、响应于针对业务组件列表中目标业务组件的选择操作,显示目标业务组件的组件配置界面。
在本申请实施例中,可以在业务策略编辑界面的组件展示区域11中显示业务组件选择控件112,当用户需要选用未在组件展示区域11中展示的其他业务组件时,可以通过点击业务组件选择控件112或者其他触发操作来触发业务组件选择控件进行响应,进而显示业务组件列表。其中,业务组件列表可以显示全部可以被调用的业务组件,用户可以在业务组件列表中进行查找和选择需要使用的目标业务组件。如图3c所示,为本申请提供的业务组件列表显示界面的一示意图,如图所示,当用户点击业务组件选择控件112后,显示业务组件列表20。
在一些实施例中,响应于针对业务组件选择控件的触发操作,显示业务组件列表,包括:
1.1、当检测到针对业务组件选择控件的触发指令时,从预设组件平台获取至少一个业务组件对应的组件数据;
1.2、解析至少一个业务组件对应的组件数据,得到每一业务组件对应的组件动作信息;
1.3、根据组件动作信息生成业务组件列表并进行显示。
其中,在本申请实施例中,可以通过预设组件平台来对业务组件进行管理。该业务组件平台中存储了大量的业务组件,具体地,可以包括目标轨道交通系统中所有业务场景所使用到的业务组件。预设组件平台的维护人员可以基于该预设组件平台进行新增业务组件、删除业务组件、修改业务组件以及调整业务组件的状态等操作。其中,业务组件的状态可以具体包括但不限于组件上线、组件上架、组件下架以及组件下线。
当组件及策略联动装置检测到针对业务组件选择控件112的触发指令时,便可以与前述预设组件平台建立连接,然后从预设组件平台中获取该平台中存储的所有业务组件的组件数据,其中该预设组件平台中包含至少一个业务组件,具体地,可以为包含至少一个轨道交通领域对应的业务组件。
获取到预设组件平台上的所有业务组件的组件数据后,可以对这些业务组件对应的组件数据进行解析,得到每一业务组件对应的组件动作信息。其中,组件动作信息可以为该业务组件对应的具体执行操作,或者该业务组件所能实现的功能对应的信息。
在一些实施例中,解析至少一个业务组件对应的组件数据,得到每一业务组件对应的组件动作信息,包括:
1.2.1、从组件数据中提取出组件描述数据,根据组件描述数据生成组件动作的功能信息以及使用场景信息;
1.2.2、从组件数据中提取出组件接口数据,根据组件接口数据生成组件动作的输入参数信息、输出参数信息、接口信息以及触发条件信息;
1.2.3、根据组件动作的功能信息、使用场景信息、输入参数信息、输出参数信息、接口信息以及触发条件信息生成组件动作信息。
其中,在本申请实施例中,对业务组件对应的组件数据进行解析,具体可以为深度拆解每一业务组件对应的组件数据。其中,业务组件对应的组件数据一般包括组件描述数据、组件接口数据以及组件限制数据。组件描述数据一般为描述组件的基本信息的数据,具体可以包括组件的功能数据以及使用场景数据等。组件接口数据一般包括组件的输入参数、输出参数、接口数据以及触发条件等数据。组件限制数据一般包括调用限制数据以及安全认证数据等。
在对业务组件对应的组件数据进行解析后,可以从解析后的数据中提取出业务组件对应的组件描述数据,然后根据组件描述数据生成组件动作对应的功能信息以及使用场景信息。进一步,可以从解析后的数据中提取出业务组件对应的组件接口数据,然后据此生成组件动作对应的输入参数信息、输出参数信息、接口信息以及触发条件信息,进而可以根据上述组件动作对应的各类信息生成组件动作信息。
在业务组件中,各类信息是以数据或者代码的形式来表示的,对数据或者代码的理解需要用户具有很强的相关专业知识。而对业务组件对应的组件数据进行解析,生成的组件动作信息,则是对这些数据或者代码的功能、场景、接口、入参、出参以及限制等进行抽象化的描述,使得用户无需具备很强专业知识也能方便地对业务组件进行认知和运用。
在生成了每一业务组件对应的组件动作信息后,便可以根据这些组件动作信息进一步生成业务组件列表20,然后将业务组件列表20进行显示。
在一些实施例中,根据组件动作信息生成业务组件列表并进行显示,包括:
1.3.1、根据组件动作信息生成组件动作名称;
1.3.2、基于组件动作名称生成业务组件列表并进行显示。
其中,在本申请实施例中,可以根据每一业务组件对应的组件动作名称来生成业务组件列表并进行显示。具体地,可以根据每一业务组件对应的组件动作信息生成每一业务组件对应的组件动作名称。如前所述,组件动作信息包含了组件动作的描述信息,该描述信息中包含了组件动作的使用场景信息以及组件动作能实现的功能信息,因此,在本申请实施例中,可以采用组件动作对应的使用场景信息以及组件动作能实现的功能信息来生成组件动作名称。按此方法生成的组件动作名称,可以直观地展示业务组件所能使用的场景以及其能够实现的功能,进而可以方便用户快速作出业务组件的选择。
在生成了业务组件列表并进行显示后,用户便可以在组件列表20中选择所需要的目标业务组件。在本申请实施例中,当用户选中了需要使用的目标业务组件后,可以显示目标业务组件对应的组件配置界面,用户可以在该组件配置界面上对目标业务组件进行相应的配置操作。如图3d所示,为本申请提供的业务组件对应的组件配置界面的一示意图,响应于针对通用组件的选择指令,显示通用组件对应的组件配置界面30,用户可以在配置界面30中对选中的通用组件进行相应的配置操作。
在一些实施例中,响应于针对所述业务组件选择控件的触发操作,显示业务组件列表,包括:
1.4、当检测到针对所述业务组件选择控件的触发指令时,从轨道交通系统的组件平台获取应用于所述轨道交通系统的业务组件,所述业务组件由所述组件平台从轨道交通系统应用平台的各类轨道交通应用中提取功能代码并封装得到;
1.5、对所述业务组件的代码数据进行解析,得到所述业务组件的功能定义信息,并根据所述功能定义信息将所述业务组件抽象成轨道交通系统策略平台动作库中的组件动作;
1.6、根据所述策略平台动作库中的组件动作生成业务组件列表并进行显示。
在本申请实施例中,业务组件列表可以根据轨道交通系统策略平台中的组件动作生成。具体地,当检测到针对组件展示区域11中显示业务组件选择控件112的触发指令时,从轨道交通系统的组件平台获取应用于该轨道交通系统的业务组件。其中,轨道交通系统的业务组件是由组件平台从轨道交通系统应用平台的各类轨道交通应用中对常用的功能代码进行提取,并将提取的功能代码进行封装和沉淀得到的业务组件。进一步地,可以对这些业务组件的代码数据进行解析,得到每一业务组件对应的功能定义信息,然后根据功能定义信息将每一业务组件抽象成轨道交通系统中策略平台动作库中的组件动作。当用户点击业务组件选择控件时,组件及策略联动装置便可以从策略平台的动作库中获取这些组件动作,然后根据组件动作生成组件列表并进行展示。
在一些实施例中,响应于针对业务组件列表中目标业务组件的选择操作,显示目标业务组件的组件配置界面,包括:
2.1、当检测到针对业务组件列表中目标组件的选择指令时,获取目标业务组件对应的目标使用场景信息;
2.2、获取与目标使用场景信息匹配的目标组件配置界面;
2.3、显示目标组件配置界面。
其中,在本申请实施例中,针对不同的业务组件,可以显示不同的组件配置界面。具体地,在显示目标业务组件对应的组件配置界面前,可以先获取用户选中的目标业务组件对应 的目标使用场景信息,然后根据使用场景与配置界面的映射关系确定与目标使用场景信息对应的目标组件配置界面,进而将目标组件配置界面进行显示。
其中,目标业务组件的使用场景包括但不限于人工审批、内容审批以及物联操作等,对应的组件配置界面可以为人工审批配置界面、内容审批配置界面以及物联操作配置界面。
在一些实施例中,获取与目标使用场景信息匹配的目标组件配置界面,包括:
2.2.1、在预设的组件配置元素库中获取至少一个与目标使用场景信息匹配的目标组件配置元素;
2.2.2、根据目标组件配置元素生成目标组件配置界面。
其中,在本申请实施例中,目标使用场景信息对应的目标组件配置界面,可以由多个组件配置元素构成。具体地,可以维护一个组件配置元素库,该组件配置元素库中可以储存有多个组件配置元素。其中,组件配置元素可以包括但不限于:组件名称、组件功能、组件动作、组件动作内容、组件动作执行对象、组件动作执行时间、组件关联对象等各类单独的组件配置元素。根据这些单独的组件配置元素,可以组合得到不同的组件使用场景所需的组件配置界面。
当确定了目标业务组件对应的目标使用场景信息后,便可以根据该目标使用场景信息在组件配置元素库中查找与该目标使用场景信息匹配的目标组件配置元素。然后,再将这些目标组件配置元素按照一定的规则进行组合,便可以得到目标使用场景信息匹配的目标组件配置界面。
本申请实施例中,目标业务组件对应的目标组件配置界面不再由使用场景信息与组件配置界面的映射关系表确定,而是根据其使用场景信息在组件配置元素库中确定对应的目标组件配置元素,在对目标组件配置元素进行组合生成目标组件配置界面。如此,当需要对组件配置界面进行更新时,只需更新一个组件配置元素便可以实现多个业务场景对应的组件配置界面的更新,可以极大地提升组件配置界面的更新效率。
在一些实施例中,业务组件列表中包括业务组件状态展示控件,方法还包括:
响应于针对业务组件状态显示控件的触发操作,在业务组件列表中显示每一业务组件的状态信息。
在本申请实施例中,可以在显示的业务组件列表中进一步对每一业务组件的状态信息进行显示,从而可以进一步对用户对业务组件的选择进行指导,避免选择了一些已经下架的组件,使得业务组件无法使用导致业务功能无法实现。具体地,如图3e所示,为本申请提供的业务组件列表显示界面的另一示意图,如图所示,在业务组件列表中还显示了状态展示控件21,当检测到用户针对该状态展示控件21的触发操作时,便可以在图3c显示的业务组件列表的基础上新增显示每一业务组件对应的组件状态信息。具体地,例如组件C的状态为上架,则说明该组件可以编排以及执行;组件B的状态为下架,则说明该组件可以执行但不能编排。如此,用户可以在该界面上清晰地了解到每一业务组件的状态信息,并根据该每一业务组件的状态信息选择合适的目标业务组件。
在一些实施例中,响应于用户对状态展示控件21的再次触发操作,可以隐藏每一业务组件的状态信息。
在一些实施例中,响应于用户对业务组件选择控件112的点击操作,也可以直接显示包含每一业务组件状态信息的业务组件列表。
在一些实施例中,本申请提供的业务及策略联动方法还包括:
当检测到业务组件的状态信息发生变更时,从组件平台获取每一业务组件的更新状态信 息;
根据更新状态信息对业务组件列表中展示的每一业务组件的状态信息进行更新。
在本申请实施例中,业务及策略联动装置还可以实时检测组件平台中每一业务组件的状态信息,当检测到业务平台中存在业务组件的状态信息发生变更时,便可重新从组件平台获取每一业务组件的更新状态信息,然后根据该更新状态信息对业务组件列表中展示的每一业务组件的状态信息进行实时更新。
在一些实施例中,还可以提供基于状态信息进行筛选的功能,例如筛选出所有上架的业务组件,以便用排除其他业务组件的干扰,迅速选到可以编排及执行的目标业务组件。
在一些实施例中,业务组件列表中包括每一业务组件对应的业务组件编辑控件,方法还包括:
A、响应于针对目标业务组件编辑控件的选择操作,显示目标业务组件编辑控件对应的业务组件的编辑界面;
B、获取编辑界面接收到的编辑操作,并根据编辑操作对目标业务组件编辑控件对应的业务组件进行更新。
其中,在本申请实施例中,在展示的业务列表界面20中,还可以包含对展示的业务组件列表中每一业务组件进行编辑的业务组件编辑控件。具体地,如图3f所示,为本申请提供的业务组件列表显示界面的又一示意图。如图所示,在业务组件列表界面20中,还包含了可以对显示的业务组件进行编辑的业务组件编辑控件22。如图中示出,每一业务组件都对应了一个业务组件编辑控件22,当用户对任一目标业务组件编辑控件进行点击时,便可以显示该目标业务组件编辑控件对应的业务组件的编辑界面。其中,在一些实施例中,该业务组件编辑控件也可以以“编辑”文本的形式进行展示。
如图3g所示,为本申请提供的业务组件编辑界面的示意图,在业务组件编辑界面40中,用户可以对目标业务组件的基本信息、接口配置信息等进行编辑,然后可以预览编辑后的目标业务组件,以及对编辑后的业务组件进行测试等操作。在接收到用户在业务组件编辑界面40中进行的编辑操作后,基于这些编辑操作对目标业务组件进行更新,得到新的目标业务组件。
在一些实施例中,组件配置界面包括设备选择控件以及指令配置控件,方法还包括:
a、响应于针对设备选择控件的触发操作,显示候选设备列表;
b、接收针对候选设备列表中目标设备的选择操作,将目标设备与目标业务组件进行关联;
c、响应于针对指令配置控件的触发操作,显示目标设备的指令配置界面;
d、接收指令配置界面中输入的指令配置信息。
在本申请实施例中,还提供了一种物联组件的配置界面,在该配置界面中,可以配置不同轨道交通设备之间的物联关系以及对应的控制指令。具体地,如图3h所示,为本申请提供的组件配置界面的另一示意图。在组件配置界面30中,显示了设备选择控件31以及指令配置控件32。当用户点击设备选择控件31后,显示候选设备列表,用户可以在候选设备列表中选择一个或多个目标设备,使得目标业务组件和目标设备进行关联。进一步地,用户可以继续点击指令配置控件32,进而显示目标设备对应的指令配置界面,在指令配置界面用户可以输入具体配置的对目标设备的控制指令,接收用户输入的控制指令并将这些控制指令关联保存在目标业务组件中。
步骤103,根据组件配置界面接收到的配置信息更新目标业务组件,并将更新后的目标业务组件在策略编辑区域中进行显示。
其中,用户在组件配置界面上对目标业务组件进行配置后,组件及策略联动装置根据用户对目标业务组件的配置更新目标业务组件。然后将更新后的目标业务组件在业务策略编辑界面10的策略编辑区域12上进行显示。
具体地,将更新后的目标业务组件在策略编辑区域上进行显示,可以包括确定目标业务组件的显示位置以及如何对目标业务组件进行显示。
在一些实施例中,将更新后的目标业务组件在策略编辑区域中进行显示,包括:
1、响应于针对更新后的目标业务组件的选中操作,显示更新后的目标业务组件的目标显示图像;
2、响应于针对目标显示图像的显示位置调整操作,确定显示位置调整操作在业务策略编辑界面上对应的目标位置;
3、在目标位置显示目标显示图像。
在本申请实施例中,可以先对更新后的目标业务组件生成其对应的目标显示图像。具体地,目标显示图像可以根据目标业务组件所对应的使用场景来确定,也可以根据目标业务组件对应的可实现的功能来确定。然后,用户可以通过点击并拖动更新后的目标业务组件对应的目标显示图像的方法来对目标显示图像的位置进行调整。用户可以将目标显示图像拖动到策略编辑区域12中的任意位置,然后在该位置上显示目标显示图像。
然后,用户可以重复上述选择目标业务组件、配置目标业务组件以及将配置完成的目标业务组件在策略编辑区域12中进行显示的操作,将多个需要使用到的业务组件进行相应配置后展示在策略编辑区域12中。以便进一步根据策略编辑区域12中显示的业务组件来生成目标业务。
其中,在一些实施例中,在组件展示区域还可以展示一些业务逻辑组件,该业务逻辑组件可以将不同的业务组件之间通过一定的逻辑进行连接。具体地,业务逻辑组件可以为开始组件、结束组件、分流组件、聚合组件以及延时组件等。用户也可以采用选中并拖动图标的方式将业务逻辑组件在策略编辑区域12中进行显示。
步骤104,对策略编辑区域内的业务组件进行组合处理,以生成轨道交通系统中目标业务场景对应的目标业务。
其中,当用户将编排业务所需的组件都添加至策略编辑区域12中进行显示后,可以进一步通过设置组件之间连接关系的方式将策略编辑区域内的业务组件进行组合处理,从而得到业务处理策略。然后,进一步地,可以根据此业务处理策略生成轨道交通系统中目标业务场景对应的目标业务。
在一些实施例中,对策略编辑区域内的业务组件进行组合处理,包括:
1、接收对业务策略编辑界面上显示的显示图像之间的关联操作;
2、根据关联操作对每一显示图像对应的组件进行组合。
在本申请实施例中,可以通过对业务策略编辑界面10中的策略编辑区域12中显示的显示图像进行关联的方法来实现业务组件之间的组合。具体地,可以将每个业务组件对应的显示图像作为流程图中的流程节点,通过在节点之间添加有向连接线的方式将不同的节点进行串联,从而组成一个完整的流程图。如图3i所示,为本申请提供的策略编辑界面的又一示意图。如图所示,在策略编辑区域12中,通过有向连接线将组件A、组件B、组件C以及各类业务逻辑组件进行关联,构成了一个完整的流程图,该流程图对应了一个具体的业务处理策略。进一步地,根据该业务处理策略将每一组件对应封装的代码及数据进行整合,便可以得到适合轨道交通系统中目标业务场景的目标业务。
根据上述描述可知,本申请实施例提供的组件及策略联动方法,通过显示轨道交通系统的业务策略编辑界面,业务策略编辑界面包括组件展示区域和策略编辑区域,组件展示区域包括至少一个轨道交通系统中的业务组件;响应于对组件展示区域中目标业务组件的选择操作,显示目标业务组件的组件配置界面;根据组件配置界面接收到的配置信息更新目标业务组件,并将更新后的目标业务组件在策略编辑区域中进行显示;对策略编辑区域内的业务组件进行组合处理,以生成轨道交通系统中目标业务场景对应的目标业务。
以此,本申请通过将业务生成所需的组件进行封装后在策略平台上予以展示,用户可以对展示的组件进行选择、配置以及组合,从而快速生成业务场景所需的目标业务。该方法无需业务开发者具有业务代码的专业编写能力,也可以快速生成业务场景所需的目标业务,从而可以极大地提升业务生成的效率。
本申请还提供了一种组件及策略联动方法,该方法可以使用于计算机设备中,该计算机设备可以为终端。如图4所示,为本申请提供的组件及策略联动方法的另一流程示意图,方法具体包括:
步骤201,计算机设备获取轨道交通系统对应的组件平台中每一业务组件对应的组件数据。
其中,在本申请实施例中,可以将轨道交通系统中各类应用中可被重复使用的服务资源定义成标准化的组件,并采用组件平台对这些标准化的组件进行统一管理。然后,采用策略平台结合组件平台的方式实现各类业务的快速编排。具体地,本申请提供的组件及策略联动方法,具体为采用轨道交通系统的组件平台和策略平台进行联动,以快速实现轨道交通系统中各类应用业务的快速编排的方法。
其中,组件平台可以设置于后台服务器中,策略平台可以以应用程序的方式集成在计算机设备中。策略平台通过计算机设备实现与用户的交互,接收用户的输入指令并基于用户的输入指令调用组件平台中相应的业务组件,进而生成用户需求的目标业务。
下面,对本申请采用组件及策略联动方法生成目标业务进行详细介绍。策略平台在向用户提供业务编排功能前,需要先从组件平台中获取业务组件相关的数据,具体地,可以由计算机设备从后台服务器中获取轨道交通系统对应每一业务组件的组件数据。
步骤202,计算机设备对每一业务组件对应的组件数据进行解析,得到每一业务组件对应的组件动作信息。
其中,计算机设备在获取到每一业务组件对应的组件数据后,可以对每一业务组件的组件数据进行解析,得到每一业务组件的描述信息、应用程序接口信息以及限制信息。然后根据业务组件的描述信息确定业务动作的描述信息,业务动作的描述信息具体包括业务动作的功能、分类以及使用场景信息;根据业务组件的接口信息确定业务动作的输入参数信息、输出参数信息、接口信息以及触发条件信息;根据业务组件的限制信息确定业务动作的限制信息,业务动作的限制信息具体包括调用限制以及安全认证信息。
步骤203,计算机设备显示轨道交通系统的业务策略编辑界面。
其中,在本申请实施例中,策略平台具体可以以业务编排应用的形式安装在计算机设备中。当用户需要使用策略平台来进行业务编排以生成轨道交通系统中目标场景对应的目标业务时,可以在计算机设备中打开业务编排应用。此时,计算机设备开启业务编排应用,并显示轨道交通系统的业务策略编辑界面。用户可以在该业务策略编辑界面上进行业务策略编辑,进而根据编辑的业务策略生成目标场景对应的目标业务。
其中,业务策略编辑界面可以包括功能区和编辑区,在功能区用户可以选择所需的业务 组件以及将业务组件之间进行逻辑串联的业务逻辑组件。用户可以将选择的目标业务组件以及目标业务逻辑组件在编辑区中进行展示,以便可以形象地将用户选择的各个目标业务组件进行组合,得到所需的业务策略。
步骤204,响应于业务组件选择指令,计算机设备显示业务组件列表。
其中,计算机设备可以在功能区显示业务组件列表的形式供用户进行目标业务组件的选择,也可以通过在功能区显示业务组件选择控件,并响应于用户对业务组件选择控件的触发操作,在另一界面中显示业务组件列表。
其中,在本申请实施例中,业务组件列表可以由前述解析得到的组件动作信息生成。具体地,可以先根据组件动作信息中包含的组件动作的使用场景和功能来生成每一组件动作的动作名称。然后,以每一业务组件对应的动作名称生成业务组件列表并进行展示。由于业务动作的使用场景以及功能信息能够十分清楚地描述业务组件的使用场景和功能,因此根据这些信息生成的组件列表可以让用户更加清晰高效地查找到所需的目标业务组件。
步骤205,计算机设备将用户选择的目标业务组件在策略编辑区域中进行展示。
其中,用户可以在计算机设备展示的业务组件列表中选择一个或者多个目标业务场景所需的目标业务组件。然后,计算机设备可以将用户选中的目标业务组件在业务策略编辑页面的编辑区中进行展示,该编辑区也可以称为策略编辑区。
目标业务组件在策略编辑区中进行展示后,用户还可以对策略编辑区中展示的目标业务组件进行拖动操作,以修改每一目标业务组件在策略编辑区中展示的位置。
步骤206,计算机设备根据用户对目标业务组件的配置操作更新目标业务组件。
进一步地,用户可以对每一选中的目标业务组件进行组件配置。具体地,组件配置界面可以根据组件对应的动作的分类、功能以及场景信息展示与该场景信息匹配的目标组件配置界面。用户可以在目标组件配置界面对目标业务组件进行针对性的配置。
具体地,由于业务组件都是标准化的可复用的资源,一般都是初始化过的资源。当需要将这些业务组件使用到具体的场景中时,需要根据具体使用场景的信息对這些业务组件进行入参,以及配置认证信息,从而使得标准化的业务组件能够真正在业务场景中进行应用。
其中,计算机设备可以响应用户对每一目标业务组件的配置触发操作,显示每一目标业务组件的配置界面,然后用户可以在目标业务组件的配置界面上进行配置操作。配置完成后,计算机设备根据用户对每一目标业务组件的配置操作更新每一目标业务组件,得到更新后的目标业务组件。
步骤207,计算机设备根据用户对策略编辑区域中显示的目标业务组件的关联操作生成业务处理策略。
对于更新后的业务组件,用户可以进一步对其在策略编辑区域中的显示位置进行调整,以及对业务组件之间采用关联操作进行相互关联,从而将多个目标业务组件组合成一个完整的流程图,该流程图便对应了目标业务场景的一个业务处理策略。
步骤208,计算机设备根据业务处理策略生成轨道交通系统中目标场景对应的目标业务。
其中,生成了轨道交通系统中目标业务场景对应的业务处理策略后,可以进一步获取业务处理策略中每一目标业务对应的更新后的业务数据,然后根据业务处理策略中的逻辑关系对这些业务数据进行整合,从而得到轨道交通系统中目标业务场景对应的目标业务。
在得到目标业务后,可以进一步对该目标业务进行测试,以判断其是否具有了预期的功能。
根据上述描述可知,本申请实施例提供的组件及策略联动方法,通过显示轨道交通系统 的业务策略编辑界面,业务策略编辑界面包括组件展示区域和策略编辑区域,组件展示区域包括至少一个轨道交通系统中的业务组件;响应于对组件展示区域中目标业务组件的选择操作,显示目标业务组件的组件配置界面;根据组件配置界面接收到的配置信息更新目标业务组件,并将更新后的目标业务组件在策略编辑区域中进行显示;对策略编辑区域内的业务组件进行组合处理,以生成轨道交通系统中目标业务场景对应的目标业务。
以此,本申请通过将业务生成所需的组件进行封装后在策略平台上予以展示,用户可以对展示的组件进行选择、配置以及组合,从而快速生成业务场景所需的目标业务。该方法无需业务开发者具有业务代码的专业编写能力,也可以快速生成业务场景所需的目标业务,从而可以极大地提升业务生成的效率。
为了更好地实施以上方法,本申请实施例还提供一种组件及策略联动装置,该组件及策略联动装置可以集成在终端中。
例如,如图5所示,为本申请实施例提供的组件及策略联动装置的结构示意图,该组件及策略联动装置可以包括第一显示单元301、第二显示单元302、第三显示单元303以及生成单元304,如下:
第一显示单元301,用于显示轨道交通系统的业务策略编辑界面,业务策略编辑界面包括组件展示区域和策略编辑区域,组件展示区域包括至少一个轨道交通系统中的业务组件;
第二显示单元302,用于响应于对组件展示区域中目标业务组件的选择操作,显示目标业务组件的组件配置界面;
第三显示单元303,用于根据组件配置界面接收到的配置信息更新目标业务组件,并将更新后的目标业务组件在策略编辑区域中进行显示;
生成单元304,用于对策略编辑区域内的业务组件进行组合处理,以生成轨道交通系统中目标业务场景对应的目标业务。
在一些实施例中,组件展示区域包括业务组件选择控件,第二显示单元,包括:
第一显示子单元,用于响应于针对业务组件选择控件的触发操作,显示业务组件列表;
第二显示子单元,用于响应于针对业务组件列表中目标业务组件的选择操作,显示目标业务组件的组件配置界面。
在一些实施例中,业务组件列表中包括业务组件状态展示控件,组件及策略联动装置还包括:
第三显示子单元,用于响应于针对业务组件状态显示控件的触发操作,在业务组件列表中显示每一业务组件的状态信息。
在一些实施例中,业务组件列表中包括每一业务组件对应的业务组件编辑控件,组件及策略联动装置还包括:
第四显示子单元,用于响应于针对目标业务组件编辑控件的选择操作,显示目标业务组件编辑控件对应的业务组件的编辑界面;
第一更新子单元,用于获取编辑界面接收到的编辑操作,并根据编辑操作对目标业务组件编辑控件对应的业务组件进行更新。
在一些实施例中,组件配置界面包括设备选择控件以及指令配置控件,组件及策略联动装置还包括:
第五显示子单元,用于响应于针对设备选择控件的触发操作,显示候选设备列表;
关联子单元,用于接收针对候选设备列表中目标设备的选择操作,将目标设备与目标业务组件进行关联;
第六显示子单元,用于响应于针对指令配置控件的触发操作,显示目标设备的指令配置界面;
接收子单元,用于接收指令配置界面中输入的指令配置信息。
在一些实施例中,第三显示单元,包括:
第七显示子单元,用于响应于针对更新后的目标业务组件的选中操作,显示更新后的目标业务组件的目标显示图像;
确定子单元,用于响应于针对目标显示图像的显示位置调整操作,确定显示位置调整操作在业务策略编辑界面上对应的目标位置;
第八显示子单元,用于在目标位置显示目标显示图像。
在一些实施例中,生成单元,包括:
接收子单元,用于接收对业务策略编辑界面上显示的显示图像之间的关联操作;
组合子单元,用于根据关联操作对每一显示图像对应的组件进行组合。
在一些实施例中,第一显示子单元,包括:
第一获取模块,用于当检测到针对业务组件选择控件的触发指令时,从预设组件平台获取至少一个业务组件对应的组件数据;
解析模块,用于解析至少一个业务组件对应的组件数据,得到每一业务组件对应的组件动作信息;
第一显示模块,用于根据组件动作信息生成业务组件列表并进行显示。
在一些实施例中,解析模块,包括:
第一提取子模块,用于从组件数据中提取出组件描述数据,根据组件描述数据生成组件动作的功能信息以及使用场景信息;
第二提取子模块,用于从组件数据中提取出组件接口数据,根据组件接口数据生成组件动作的输入参数信息、输出参数信息、接口信息以及触发条件信息;
第一生成子模块,用于根据组件动作的功能信息、使用场景信息、输入参数信息、输出参数信息、接口信息以及触发条件信息生成组件动作信息。
在一些实施例中,第一显示模块,包括:
第二生成子模块,用于根据组件动作信息生成组件动作名称;
第三生成子模块,用于基于组件动作名称生成业务组件列表并进行显示。
在一些实施例中,第二显示子单元,包括:
第二获取模块,用于当检测到针对业务组件列表中目标组件的选择指令时,获取目标业务组件对应的目标使用场景信息;
第三获取模块,用于获取与目标使用场景信息匹配的目标组件配置界面;
第二显示模块,用于显示目标组件配置界面。
在一些实施例中,第三获取模块,包括:
获取子模块,用于在预设的组件配置元素库中获取至少一个与目标使用场景信息匹配的目标组件配置元素;
第四生成子模块,用于根据目标组件配置元素生成目标组件配置界面。
在一些实施例中,第一显示子单元,包括:
第四获取模块,用于当检测到针对业务组件选择控件的触发指令时,从轨道交通系统的组件平台获取应用于轨道交通系统的业务组件,业务组件由组件平台从轨道交通系统应用平台的各类轨道交通应用中提取功能代码并封装得到;
第二解析模块,用于对业务组件的代码数据进行解析,得到业务组件的功能定义信息,并根据功能定义信息将业务组件抽象成策略平台动作库中的组件动作;
第三显示模块,用于根据策略平台动作库中的组件动作生成业务组件列表并进行显示。
具体实施时,以上各个单元可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个单元的具体实施可参见前面的方法实施例,在此不再赘述。
根据上述描述可知,本申请实施例提供的组件及策略联动装置,通过第一显示单元301显示轨道交通系统的业务策略编辑界面,业务策略编辑界面包括组件展示区域和策略编辑区域,组件展示区域包括至少一个轨道交通系统中的业务组件;响应于对组件展示区域中目标业务组件的选择操作,第二显示单元302显示目标业务组件的组件配置界面;第三显示单元303根据组件配置界面接收到的配置信息更新目标业务组件,并将更新后的目标业务组件在策略编辑区域中进行显示;生成单元304对策略编辑区域内的业务组件进行组合处理,以生成轨道交通系统中目标业务场景对应的目标业务。
以此,本申请通过将业务生成所需的组件进行封装后在策略平台上予以展示,用户可以对展示的组件进行选择、配置以及组合,从而快速生成业务场景所需的目标业务。该方法无需业务开发者具有业务代码的专业编写能力,也可以快速生成业务场景所需的目标业务,从而可以极大地提升业务生成的效率。
本申请实施例还提供一种组件及策略联动系统,如图6所示,为本申请提供的组件及策略联动系统的拓扑图。该系统包括组件平台100以及策略平台200,所述组件平台100用于存储及管理业务组件,实时向策略平台反馈业务组件的状态信息以及响应于所述策略平台的调用,向所述策略平台提供目标业务组件;
所述策略平台200,用于显示轨道交通系统的业务策略编辑界面,所述业务策略编辑界面包括组件展示区域和策略编辑区域,所述组件展示区域包括至少一个所述轨道交通系统中的业务组件;响应于对所述组件展示区域中目标业务组件的选择操作,显示所述目标业务组件的组件配置界面;根据所述组件配置界面接收到的配置信息更新所述目标业务组件,并将更新后的目标业务组件在所述策略编辑区域中进行显示;对所述策略编辑区域内的业务组件进行组合处理,以生成轨道交通系统中目标业务场景对应的目标业务。
如图7所示,为本申请实施例提供的组件及策略联动系统的交互示意图。如图所示,展示了组件平台100中一个业务组件的全生命周期中与策略平台200的交互过程。具体地,一个业务组件在组件平台100的全生命周期中,可以实时将业务组件的当前状态与策略平台200进行联动共享。具体地,当一个业务组件在组件平台100完成创建、上线以及上架后,该业务组件便可以在策略平台200中上线并上架,即可以在计算机设备显示的组件列表中展示该业务组件,并标注该业务组件的状态为上架。当组件平台100中业务组件的状态切换为下架后,也会实时将该信息共享给策略平台200中,此时在组件列表中会显示该组件的状态为可执行但不可编排。
本申请实施例还提供一种计算机设备,该计算机设备可以为终端,如图8所示,为本申请提供的计算机设备的结构示意图。具体来讲:
该计算机设备可以包括一个或者一个以上处理核心的处理单元401、一个或一个以上存储介质的存储单元402、电源模块403和输入模块404等部件。本领域技术人员可以理解,图8中示出的计算机设备结构并不构成对计算机设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:
处理单元401是该计算机设备的控制中心,利用各种接口和线路连接整个计算机设备的 各个部分,通过运行或执行存储在存储单元402内的软件程序和/或模块,以及调用存储在存储单元402内的数据,执行计算机设备的各种功能和处理数据,从而对计算机设备进行整体监控。可选的,处理单元401可包括一个或多个处理核心;优选的,处理单元401可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理单元401中。
存储单元402可用于存储软件程序以及模块,处理单元401通过运行存储在存储单元402的软件程序以及模块,从而执行各种功能应用以及数据处理。存储单元402可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能以及网页访问等)等;存储数据区可存储根据计算机设备的使用所创建的数据等。此外,存储单元402可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储单元402还可以包括存储器控制器,以提供处理单元401对存储单元402的访问。
计算机设备还包括给各个部件供电的电源模块403,优选的,电源模块403可以通过电源管理系统与处理单元401逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源模块403还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。
该计算机设备还可包括输入模块404,该输入模块404可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。
尽管未示出,计算机设备还可以包括显示单元等,在此不再赘述。具体在本实施例中,计算机设备中的处理单元401会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行文件加载到存储单元402中,并由处理单元401来运行存储在存储单元402中的应用程序,从而实现各种功能,如下:
显示轨道交通系统的业务策略编辑界面,业务策略编辑界面包括组件展示区域和策略编辑区域,组件展示区域包括至少一个轨道交通系统中的业务组件;响应于对组件展示区域中目标业务组件的选择操作,显示目标业务组件的组件配置界面;根据组件配置界面接收到的配置信息更新目标业务组件,并将更新后的目标业务组件在策略编辑区域中进行显示;对策略编辑区域内的业务组件进行组合处理,以生成轨道交通系统中目标业务场景对应的目标业务。
应当说明的是,本申请实施例提供的计算机设备与上文实施例中的方法属于同一构思,以上各个操作的具体实施可参见前面的实施例,在此不作赘述。
本领域普通技术人员可以理解,上述实施例的各种方法中的全部或部分步骤可以通过指令来完成,或通过指令控制相关的硬件来完成,该指令可以存储于一计算机可读存储介质中,并由处理器进行加载和执行。
为此,本发明实施例提供一种计算机可读存储介质,其中存储有多条指令,该指令能够被处理器进行加载,以执行本发明实施例所提供的任一种方法中的步骤。例如,该指令可以执行如下步骤:
显示轨道交通系统的业务策略编辑界面,业务策略编辑界面包括组件展示区域和策略编辑区域,组件展示区域包括至少一个轨道交通系统中的业务组件;响应于对组件展示区域中目标业务组件的选择操作,显示目标业务组件的组件配置界面;根据组件配置界面接收到的 配置信息更新目标业务组件,并将更新后的目标业务组件在策略编辑区域中进行显示;对策略编辑区域内的业务组件进行组合处理,以生成轨道交通系统中目标业务场景对应的目标业务。
以上各个操作的具体实施可参见前面的实施例,在此不再赘述。
其中,该计算机可读存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。
由于该计算机可读存储介质中所存储的指令,可以执行本发明实施例所提供的任一种方法中的步骤,因此,可以实现本发明实施例所提供的任一种方法所能实现的有益效果,详见前面的实施例,在此不再赘述。
其中,根据本申请的一个方面,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在存储介质中。计算机设备的处理器从存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述各种可选实现方式中提供的方法。
以上对本发明实施例所提供的组件及策略联动方法、装置、设备、系统及存储介质进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上,本说明书内容不应理解为对本发明的限制。

Claims (17)

  1. 一种组件及策略联动方法,其特征在于,所述方法包括:
    显示轨道交通系统的业务策略编辑界面,所述业务策略编辑界面包括组件展示区域和策略编辑区域,所述组件展示区域包括至少一个所述轨道交通系统中的业务组件;
    响应于对所述组件展示区域中目标业务组件的选择操作,显示所述目标业务组件的组件配置界面;
    根据所述组件配置界面接收到的配置信息更新所述目标业务组件,并将更新后的目标业务组件在所述策略编辑区域中进行显示;
    对所述策略编辑区域内的业务组件进行组合处理,以生成轨道交通系统中目标业务场景对应的目标业务。
  2. 根据权利要求1所述的方法,其特征在于,所述组件展示区域包括业务组件选择控件,所述响应于对所述组件展示区域中目标业务组件的选择操作,显示所述目标业务组件的组件配置界面,包括:
    响应于针对所述业务组件选择控件的触发操作,显示业务组件列表;
    响应于针对所述业务组件列表中目标业务组件的选择操作,显示所述目标业务组件的组件配置界面。
  3. 根据权利要求2所述的方法,其特征在于,所述业务组件列表中包括业务组件状态展示控件,所述方法还包括:
    响应于针对所述业务组件状态显示控件的触发操作,在所述业务组件列表中显示每一业务组件的状态信息。
  4. 根据权利要求2所述的方法,其特征在于,所述业务组件列表中包括每一业务组件对应的业务组件编辑控件,所述方法还包括:
    响应于针对目标业务组件编辑控件的选择操作,显示所述目标业务组件编辑控件对应的业务组件的编辑界面;
    获取所述编辑界面接收到的编辑操作,并根据所述编辑操作对所述目标业务组件编辑控件对应的业务组件进行更新。
  5. 根据权利要求2所述的方法,其特征在于,所述组件配置界面包括设备选择控件以及指令配置控件,所述方法还包括:
    响应于针对所述设备选择控件的触发操作,显示候选设备列表;
    接收针对所述候选设备列表中目标设备的选择操作,将所述目标设备与所述目标业务组件进行关联;
    响应于针对所述指令配置控件的触发操作,显示所述目标设备的指令配置界面;
    接收所述指令配置界面中输入的指令配置信息。
  6. 根据权利要求1所述的方法,其特征在于,所述将更新后的目标业务组件在所述策略编辑区域中进行显示,包括:
    响应于针对所述更新后的目标业务组件的选中操作,显示所述更新后的目标业务组件的目标显示图像;
    响应于针对所述目标显示图像的显示位置调整操作,确定所述显示位置调整操作在所述业务策略编辑界面上对应的目标位置;
    在所述目标位置显示所述目标显示图像。
  7. 根据权利要求6所述的方法,其特征在于,所述对所述策略编辑区域内的业务组件进行组合处理,包括:
    接收对所述业务策略编辑界面上显示的显示图像之间的关联操作;
    根据所述关联操作对每一显示图像对应的组件进行组合。
  8. 根据权利要求2所述的方法,其特征在于,所述响应于针对所述业务组件选择控件的触发操作,显示业务组件列表,包括:
    当检测到针对所述业务组件选择控件的触发指令时,从预设组件平台获取至少一个业务组件对应的组件数据;
    解析所述至少一个业务组件对应的组件数据,得到每一业务组件对应的组件动作信息;
    根据所述组件动作信息生成业务组件列表并进行显示。
  9. 根据权利要求8所述的方法,其特征在于,所述解析所述至少一个业务组件对应的组件数据,得到每一业务组件对应的组件动作信息,包括:
    从所述组件数据中提取出组件描述数据,根据所述组件描述数据生成组件动作的功能信息以及使用场景信息;
    从所述组件数据中提取出组件接口数据,根据所述组件接口数据生成组件动作的输入参数信息、输出参数信息、接口信息以及触发条件信息;
    根据所述组件动作的功能信息、使用场景信息、输入参数信息、输出参数信息、接口信息以及触发条件信息生成组件动作信息。
  10. 根据权利要求9所述的方法,其特征在于,所述根据所述组件动作信息生成业务组件列表并进行显示,包括:
    根据所述组件动作信息生成组件动作名称;
    基于所述组件动作名称生成业务组件列表并进行显示。
  11. 根据权利要求9所述的方法,其特征在于,所述响应于针对所述业务组件列表中目标业务组件的选择操作,显示所述目标业务组件的组件配置界面,包括:
    当检测到针对所述业务组件列表中目标业务组件的选择指令时,获取所述目标业务组件对应的目标使用场景信息;
    获取与所述目标使用场景信息匹配的目标组件配置界面;
    显示所述目标组件配置界面。
  12. 根据权利要求11所述的方法,其特征在于,所述获取与所述目标使用场景信息匹配的目标组件配置界面,包括:
    在预设的组件配置元素库中获取至少一个与所述目标使用场景信息匹配的目标组件配置 元素;
    根据所述目标组件配置元素生成目标组件配置界面。
  13. 根据权利要求2所述的方法,其特征在于,所述响应于针对所述业务组件选择控件的触发操作,显示业务组件列表,包括:
    当检测到针对所述业务组件选择控件的触发指令时,从轨道交通系统的组件平台获取应用于所述轨道交通系统的业务组件,所述业务组件由所述组件平台从轨道交通系统应用平台的各类轨道交通应用中提取功能代码并封装得到;
    对所述业务组件的代码数据进行解析,得到所述业务组件的功能定义信息,并根据所述功能定义信息将所述业务组件抽象成轨道交通系统策略平台动作库中的组件动作;
    根据所述策略平台动作库中的组件动作生成业务组件列表并进行显示。
  14. 一种组件及策略联动装置,其特征在于,所述装置包括:
    第一显示单元,用于显示轨道交通系统的业务策略编辑界面,所述业务策略编辑界面包括组件展示区域和策略编辑区域,所述组件展示区域包括至少一个所述轨道交通系统中的业务组件;
    第二显示单元,用于响应于对所述组件展示区域中目标业务组件的选择操作,显示所述目标业务组件的组件配置界面;
    第三显示单元,用于根据所述组件配置界面接收到的配置信息更新所述目标业务组件,并将更新后的目标业务组件在所述策略编辑区域中进行显示;
    生成单元,用于对所述策略编辑区域内的业务组件进行组合处理,以生成轨道交通系统中目标业务场景对应的目标业务。
  15. 一种计算机设备,其特征在于,包括存储器、处理器以及存储在所述存储器中并可以在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现权利要求1至13中任一项所述的组件及策略联动方法中的步骤。
  16. 一种组件及策略联动系统,其特征在于,包括组件平台以及策略平台,所述组件平台用于存储及管理业务组件,实时向策略平台反馈业务组件的状态信息以及响应于所述策略平台的调用,向所述策略平台提供目标业务组件;
    所述策略平台,用于显示轨道交通系统的业务策略编辑界面,所述业务策略编辑界面包括组件展示区域和策略编辑区域,所述组件展示区域包括至少一个所述轨道交通系统中的业务组件;响应于对所述组件展示区域中目标业务组件的选择操作,显示所述目标业务组件的组件配置界面;根据所述组件配置界面接收到的配置信息更新所述目标业务组件,并将更新后的目标业务组件在所述策略编辑区域中进行显示;对所述策略编辑区域内的业务组件进行组合处理,以生成轨道交通系统中目标业务场景对应的目标业务。
  17. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有多条指令,所述指令适于处理器进行加载,以执行权利要求1至13中任一项所述的组件及策略联动方法中的步骤。
PCT/CN2022/087204 2021-12-09 2022-04-15 一种组件及策略联动方法、装置、设备、系统及存储介质 WO2023103247A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111496635.1A CN114936019B (zh) 2021-12-09 2021-12-09 一种组件及策略联动方法、装置、设备、系统及存储介质
CN202111496635.1 2021-12-09

Publications (1)

Publication Number Publication Date
WO2023103247A1 true WO2023103247A1 (zh) 2023-06-15

Family

ID=82861412

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/087204 WO2023103247A1 (zh) 2021-12-09 2022-04-15 一种组件及策略联动方法、装置、设备、系统及存储介质

Country Status (2)

Country Link
CN (1) CN114936019B (zh)
WO (1) WO2023103247A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116594604A (zh) * 2023-07-19 2023-08-15 云宏信息科技股份有限公司 一种基于数据联动的组件配置方法、数据展示方法及装置
CN116661767A (zh) * 2023-07-28 2023-08-29 亚信科技(中国)有限公司 文件生成方法、装置、设备以及存储介质
CN116909582A (zh) * 2023-09-13 2023-10-20 云账户技术(天津)有限公司 一种可视化大屏业务部署方法、装置及电子设备
CN117235609A (zh) * 2023-11-14 2023-12-15 中建科工集团有限公司 Bim构件的归纳分类方法、装置、设备及介质

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116109909A (zh) * 2022-12-08 2023-05-12 杭州海康威视系统技术有限公司 策略编排方法、报文处理方法、装置、设备及系统
CN116132209A (zh) * 2023-01-31 2023-05-16 青岛海尔科技有限公司 场景的构建方法和装置、存储介质及电子装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030090514A1 (en) * 2001-10-23 2003-05-15 Cole Douglas J. Business process user interface generation system and method
CN110851114A (zh) * 2019-10-24 2020-02-28 山东中创软件工程股份有限公司 一种业务系统开发方法、装置及电子设备和存储介质
CN111694615A (zh) * 2020-06-16 2020-09-22 北京同邦卓益科技有限公司 数据配置的方法、装置、设备及存储介质
CN113568612A (zh) * 2021-07-05 2021-10-29 金蝶软件(中国)有限公司 业务配置方法、装置、计算机设备和存储介质

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110187945A (zh) * 2019-04-26 2019-08-30 平安科技(深圳)有限公司 指示信息生成方法、装置、终端及存储介质
CN112230914B (zh) * 2019-07-15 2023-09-15 腾讯科技(深圳)有限公司 小程序的制作方法、装置、终端及存储介质
CN111507689B (zh) * 2020-04-23 2023-04-18 腾讯科技(深圳)有限公司 一种业务处理方法、装置、设备以及计算机可读存储介质
CN111563220A (zh) * 2020-04-27 2020-08-21 平安国际智慧城市科技股份有限公司 业务网站项目构建方法、装置、计算机设备和存储介质
CN112035110B (zh) * 2020-08-28 2022-06-21 腾讯科技(深圳)有限公司 一种参数调整方法、装置、客户端及存储介质
CN112333171B (zh) * 2020-10-28 2023-11-28 腾讯科技(深圳)有限公司 一种业务数据处理方法、装置及计算机设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030090514A1 (en) * 2001-10-23 2003-05-15 Cole Douglas J. Business process user interface generation system and method
CN110851114A (zh) * 2019-10-24 2020-02-28 山东中创软件工程股份有限公司 一种业务系统开发方法、装置及电子设备和存储介质
CN111694615A (zh) * 2020-06-16 2020-09-22 北京同邦卓益科技有限公司 数据配置的方法、装置、设备及存储介质
CN113568612A (zh) * 2021-07-05 2021-10-29 金蝶软件(中国)有限公司 业务配置方法、装置、计算机设备和存储介质

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116594604A (zh) * 2023-07-19 2023-08-15 云宏信息科技股份有限公司 一种基于数据联动的组件配置方法、数据展示方法及装置
CN116594604B (zh) * 2023-07-19 2024-02-09 云宏信息科技股份有限公司 一种基于数据联动的组件配置方法、数据展示方法及装置
CN116661767A (zh) * 2023-07-28 2023-08-29 亚信科技(中国)有限公司 文件生成方法、装置、设备以及存储介质
CN116661767B (zh) * 2023-07-28 2023-10-27 亚信科技(中国)有限公司 文件生成方法、装置、设备以及存储介质
CN116909582A (zh) * 2023-09-13 2023-10-20 云账户技术(天津)有限公司 一种可视化大屏业务部署方法、装置及电子设备
CN116909582B (zh) * 2023-09-13 2024-01-30 云账户技术(天津)有限公司 一种可视化大屏业务部署方法、装置及电子设备
CN117235609A (zh) * 2023-11-14 2023-12-15 中建科工集团有限公司 Bim构件的归纳分类方法、装置、设备及介质
CN117235609B (zh) * 2023-11-14 2024-03-01 中建科工集团有限公司 Bim构件的归纳分类方法、装置、设备及介质

Also Published As

Publication number Publication date
CN114936019B (zh) 2024-01-30
CN114936019A (zh) 2022-08-23

Similar Documents

Publication Publication Date Title
WO2023103247A1 (zh) 一种组件及策略联动方法、装置、设备、系统及存储介质
WO2022160707A1 (zh) 结合rpa和ai的人机互动方法、装置、存储介质及电子设备
Rezaei et al. A semantic interoperability framework for software as a service systems in cloud computing environments
US20180097872A1 (en) System and method for abstraction of objects for cross virtual universe deployment
CN110740053B (zh) 业务编排方法及装置
US9846849B2 (en) System and method for providing an editor for use with a business process design environment
US20110047125A1 (en) Configuration item management device and configuration item management method
CN105446799A (zh) 一种计算机系统中进行规则管理的方法及系统
CN105809356A (zh) 一种基于应用集成云平台的信息系统资源管理方法
CN108921600B (zh) 实现信息分类的装置和方法及存储介质
CN110516986B (zh) 包裹生产模式下的集合单组建方法和装置
CN109614093B (zh) 可视化智能合约系统以及智能合约的处理方法
CN103150154B (zh) 一种应用程序插件的实现方法及装置
CN113626128B (zh) 视听媒体微服务第三方模块接入方法、系统、电子设备
US20220270122A1 (en) Information delivery method, apparatus, and device, and computer-readable storage medium
CN103164476A (zh) 一种bi应用元数据描述文件的执行方法和装置
CN117311778A (zh) 应用管理方法及装置
CN106802812A (zh) 一种加载文件的方法、装置及电子设备
Ni et al. An ant colony optimization for the composite SaaS placement problem in the cloud
CN107784488A (zh) 一种松散耦合的业务流程管理系统
AU2011249138A1 (en) Process entity graphs
Shen et al. Standardizing the Internet of Things in an evolutionary way
US8566814B2 (en) Transporting object packets in a nested system landscape
CN112418796A (zh) 子流程节点激活方法、装置、电子设备及存储介质
CN111930718B (zh) 配置管理数据库的节点调整方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22902687

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE