CN112449314A - Short message service method and device for industrial internet platform - Google Patents

Short message service method and device for industrial internet platform Download PDF

Info

Publication number
CN112449314A
CN112449314A CN201910836760.9A CN201910836760A CN112449314A CN 112449314 A CN112449314 A CN 112449314A CN 201910836760 A CN201910836760 A CN 201910836760A CN 112449314 A CN112449314 A CN 112449314A
Authority
CN
China
Prior art keywords
short message
rule
sending
node
service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910836760.9A
Other languages
Chinese (zh)
Other versions
CN112449314B (en
Inventor
周振
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201910836760.9A priority Critical patent/CN112449314B/en
Publication of CN112449314A publication Critical patent/CN112449314A/en
Application granted granted Critical
Publication of CN112449314B publication Critical patent/CN112449314B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/18Service support devices; Network management devices
    • H04W88/184Messaging devices, e.g. message centre

Abstract

The invention discloses a short message service method and a short message service device of an industrial Internet platform, which relate to the technical field of Internet and realize the configurable flexible use of short message service on the industrial Internet platform, and the main technical scheme of the invention is as follows: when business data are detected to be transmitted into a rule node, processing the business data by using a business rule on the rule node to obtain a processing result, wherein the rule node comprises a business node with a pre-configured business rule, and a plurality of rule nodes are connected in a chain manner to form a rule chain according to a business process; judging whether to execute the short message sending operation or not according to the processing result; if so, triggering a short message rule node to execute the operation of sending the short message, wherein the short message rule node is a rule node for providing short message service in the rule chain. The invention is applied to optimizing the short message service provided by the industrial Internet platform.

Description

Short message service method and device for industrial internet platform
Technical Field
The invention relates to the technical field of internet, in particular to a short message service method and a short message service device for an industrial internet platform.
Background
Industrial internetworking is the result of the convergence of global industrial systems with advanced computing, analytics, sensing technologies and internet connectivity. The intelligent robot system is used for reconstructing global industry and stimulating productivity by connecting intelligent robots and finally connecting human and machines and combining software and big data analysis.
At present, various service function modules are developed on an industrial internet platform, a large amount of service data are processed by using the service function modules to realize diversified service processes, and meanwhile, in the data processing process, the service function modules can feed back notification messages or alarm information to users in time in a short message mode.
However, the existing short message service solutions provided by the industrial internet platform are often: different logic schemes for realizing short message sending need to be designed for different service function modules, so that short message service codes need to be customized and designed for each service function module, the number of the service function modules developed on a platform is increased, correspondingly, the number of the codes for realizing the short message service is also increased, and in addition, the codes for realizing the short message service corresponding to the different service function modules contain too much similar and redundant code information, so that too much storage resources are occupied, and too much labor cost is consumed.
Disclosure of Invention
In view of this, the present invention provides a short message service method and apparatus for an industrial internet platform, and a main object of the present invention is to package a short message service as a rule node in a rule chain corresponding to a business process, so as to implement configurable flexible use of the short message service, and it is not necessary to design/write a code of the short message service for each business function module in a customized manner, thereby avoiding that the code of the short message service occupies too much storage resources, and also saving the labor cost consumed for developing the code.
In order to achieve the above purpose, the present invention mainly provides the following technical solutions:
in one aspect, the invention provides a short message service method for an industrial internet platform, comprising the following steps:
when business data are detected to be transmitted into a rule node, processing the business data by using a business rule on the rule node to obtain a processing result, wherein the rule node comprises a business node with a pre-configured business rule, and a plurality of rule nodes are connected in a chain manner to form a rule chain according to a business process;
judging whether to execute the short message sending operation or not according to the processing result;
if so, triggering a short message rule node to execute short message sending operation, wherein the short message rule node is a rule node which is pre-established in the rule chain and is used for providing short message service.
Optionally, a short message rule node is created in the rule chain in the following manner:
defining a short message rule in a business rule engine, wherein the short message rule at least comprises a content conversion rule and a sending rule, the content conversion rule is used for making short message content, and the sending rule is used for selecting a short message sending mode;
according to the short message rule, creating a service node containing the short message rule to obtain a short message rule node;
and adding the short message rule node into an existing rule chain.
Optionally, the defining the short message rule in the business rule engine includes:
constructing a short message content template and a sending mode template;
outputting and displaying the short message content template and the sending mode template to a front end through a visual interface;
and respectively obtaining the content conversion rule and the sending rule of the short message from the short message content template and the sending mode template according to the configuration operation received from the front end.
Optionally, the triggering short message rule node executes a short message sending operation, including:
if the short message sending operation is judged to be executed according to the processing result obtained from the rule node, the service information is obtained from the rule node;
sending the service information to the short message rule node;
editing the short message content by using the content conversion rule on the short message rule node;
when the operation of editing the short message content is successfully executed, selecting a short message sending mode by using a sending rule on the short message rule node;
and when detecting that the operation of selecting the short message sending mode is successfully executed, triggering the operation of sending the short message content in the short message sending mode.
Optionally, the determining whether to execute the operation of sending the short message according to the processing result includes:
if the operation of sending the notification message is triggered according to the processing result, judging to execute the operation of sending the short message; and/or the presence of a gas in the gas,
and if the alarm operation is triggered when the processing operation is detected to be abnormal according to the processing result, judging to execute the short message sending operation.
On the other hand, the invention also provides a short message service device of the industrial internet platform, which comprises the following components:
the processing unit is used for processing the service data by using the service rules on the rule nodes to obtain a processing result when the service data is detected to be transmitted into the rule nodes, wherein the rule nodes comprise service nodes with service rules configured in advance, and the rule nodes are connected in a chain manner to form a rule chain according to a service flow;
the judging unit is used for judging whether to execute the short message sending operation according to the processing result obtained by the processing unit;
and the triggering unit is used for triggering a short message rule node to execute the short message sending operation when the judging unit judges to execute the short message sending operation, and the short message rule node is a rule node which is pre-established in the rule chain and is used for providing the short message service.
Optionally, the apparatus further comprises:
the short message rule management system comprises a defining unit, a sending unit and a processing unit, wherein the defining unit is used for defining a short message rule in a business rule engine, the short message rule at least comprises a content conversion rule and a sending rule, the content conversion rule is used for making short message content, and the sending rule is used for selecting a short message sending mode;
the establishing unit is used for establishing a service node containing the short message rule according to the short message rule obtained by the defining unit to obtain a short message rule node;
and the adding unit is used for adding the short message rule node obtained by the creating unit into the existing rule chain.
Optionally, the defining unit includes:
the building module is used for building a short message content template and a sending mode template;
the output module is used for outputting and displaying the short message content template and the sending mode template constructed by the construction module to the front end through a visual interface;
and the acquisition module is used for respectively obtaining the content conversion rule and the sending rule of the short message from the short message content template and the sending mode template according to the configuration operation received from the front end.
Optionally, the triggering unit includes:
the acquisition module is used for acquiring service information from the rule node if judging to execute the short message sending operation according to the processing result obtained from the rule node;
the sending module is used for sending the service information acquired by the acquisition module to the short message rule node;
the editing module is used for editing the short message content by using the content conversion rule on the short message rule node;
the selection module is used for selecting a short message sending mode by utilizing the sending rule on the short message rule node when the successful operation of editing the short message content is detected;
and the triggering module is used for triggering the operation of sending the short message content in the short message sending mode when the operation of selecting the short message sending mode is successfully executed.
Optionally, the determining unit includes:
the judging module is used for judging to execute the short message sending operation if the notification message sending operation is triggered according to the processing result; and/or the presence of a gas in the gas,
and the judging module is also used for judging to execute the short message sending operation if the alarm operation is triggered when the processing operation is detected to be abnormal according to the processing result.
In still another aspect, the present invention further provides a storage medium, where the storage medium includes a stored program, and when the program runs, the device on which the storage medium is located is controlled to execute the short message service method of the industrial internet platform.
In yet another aspect, the present invention also provides an electronic device comprising at least one processor, and at least one memory, a bus connected to the processor;
the processor and the memory complete mutual communication through the bus;
the processor is used for calling the program instructions in the memory so as to execute the short message service method of the industrial Internet platform.
By the technical scheme, the technical scheme provided by the invention at least has the following advantages:
the invention provides a short message service method and a device of an industrial Internet platform, which packages service nodes on the industrial Internet platform and service rules on the service nodes into regular nodes, wherein a plurality of regular nodes are connected in a chain manner to form a regular chain according to a service flow, when the service data are detected to be transmitted into the regular nodes, the service data are processed by using the service rules on the regular nodes to obtain a processing result, and as the short message regular nodes for providing the short message service are pre-established in the regular chain, the short message regular nodes in the regular chain can be directly triggered to execute corresponding operations when the short message sending operation is judged to be executed according to the processing result, so that the short message service can be flexibly configured on the industrial Internet platform. Compared with the prior art, the method and the device solve the problems that the existing method for providing the short message service occupies too much storage resources and consumes too much labor cost due to too much similar and redundant code information in the design/writing codes.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flow chart of a short message service method of an industrial internet platform according to an embodiment of the present invention;
fig. 2 is a flowchart of a short message service method of another industrial internet platform according to an embodiment of the present invention;
fig. 3 is a block diagram of a short message service device of an industrial internet platform according to an embodiment of the present invention;
fig. 4 is a block diagram of a short message service device of another industrial internet platform according to an embodiment of the present invention;
fig. 5 is an electronic device for short message service of an industrial internet platform according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
The embodiment of the invention provides a short message service method of an industrial internet platform, as shown in figure 1, the method packages the short message service as a rule node in a rule chain corresponding to a business process, thereby directly triggering the short message rule node to execute a short message sending operation when the operation of triggering the short message service is needed, realizing configurable flexible use of the short message service, and providing the following specific steps for the embodiment of the invention:
101. when the business data are detected to be transmitted into the rule nodes, the business data are processed by utilizing the business rules on the rule nodes to obtain a processing result, the rule nodes comprise business nodes with preset business rules, and the rule nodes are connected in a chain mode according to the business process to form a rule chain.
In the embodiment of the invention, the service nodes on the industrial Internet platform and the service rules thereon are packaged into the rule nodes, the rule nodes are connected in a chain manner to form the rule chain according to the service flow, and when the service data are detected to be transmitted into the rule nodes, the service data are processed by using the service rules on the rule nodes to obtain the processing result.
For example, an order service process provided on an industrial internet platform includes a plurality of business nodes, such as: "submit order- > pay- > order deal- > order track- > trade completion". For example, for a service node "submit an order", a service rule "submit an order" that determines whether the order was successfully submitted "may be pre-deployed (i.e., if yes, the next service node" pay "is triggered), then the service node" submit an order "including the above service rule is equivalent to a rule node, and the service rules pre-deployed on other multiple service nodes are not specifically illustrated here, but it is clearly understood that, according to the above illustrated service flows, multiple rule nodes" submit an order "," pay "," order bargain "," order tracking ", and" trade completion "form a corresponding rule chain" submit an order- > pay- > order bargain- > order tracking- > trade completion "in a chained connection.
It should be noted that, in the embodiment of the present invention, according to the needs of the business process, different business rules are deployed in advance for different business nodes to obtain corresponding rule nodes, and the functions are as follows: and triggering the next rule node or the plurality of rule nodes to execute the service rule operation deployed on the next rule node or the plurality of rule nodes according to the execution result obtained by executing the service rule by the last rule node, and so on, thereby executing the whole service process.
102. And judging whether to execute the short message sending operation or not according to the processing result.
In this embodiment of the present invention, according to the business requirement, the business rule pre-deployed in a rule node may also include a rule for determining whether to execute a short message sending operation, that is, a business rule of a short message service, for example, for the above-mentioned rule chain, "submit an order- > pay- > order deal- > order tracking- > trade completion", and a rule for determining whether to execute a short message sending operation "may also be deployed in the rule node," submit an order ", and the role is: after determining that the order is successfully submitted, a short message may be fed back to the user.
Therefore, when the service rule deployed on one rule node includes the service rule of the short message service, the execution result of the service rule of the short message service, such as the execution result of "judging whether to execute the operation of sending the short message" can be obtained by analyzing the processing result of the service data by using the service rule on the rule node, so as to further determine whether to trigger the operation of feeding back the short message to the user.
103. And if the short message sending operation is judged to be executed, triggering a short message rule node to execute the short message sending operation, wherein the short message rule node is a rule node which is created in a rule chain in advance and used for providing short message service.
In the embodiment of the invention, as the short message rule node for providing the short message service is pre-established in the rule chain, the short message rule node in the rule chain can be directly triggered to execute corresponding operation when the operation of sending the short message is judged to be executed according to the processing result, thereby realizing the configurable flexible use of the short message service on the industrial Internet platform.
The embodiment of the invention provides a short message service method of an industrial Internet platform, wherein service nodes on the industrial Internet platform and service rules on the service nodes are packaged into rule nodes, a plurality of rule nodes are connected in a chain manner according to a service flow to form a rule chain, when the service data are detected to be transmitted into the rule nodes, the service data are processed by using the service rules on the rule nodes to obtain a processing result, and as the short message rule nodes for providing the short message service are pre-established in the rule chain, the short message rule nodes in the rule chain can be directly triggered to execute corresponding operations when the short message sending operation is judged to be executed according to the processing result, so that the short message service configurable and flexible use on the industrial Internet platform are realized. Compared with the prior art, the method and the device solve the problems that the existing method for providing the short message service occupies too much storage resources and consumes too much labor cost due to too much similar and redundant code information in code design/writing.
In order to explain the above embodiments in more detail, an embodiment of the present invention further provides another short message service method for an industrial internet platform, as shown in fig. 2, the method defines a short message rule in a service rule engine in advance, creates a short message rule node, and adds the short message rule node to an existing rule chain, so as to implement flexible configuration of the short message rule node in the rule chain, and for this embodiment of the present invention, the following specific steps are provided:
201. defining short message rules in the business rule engine, wherein the short message rules at least comprise content conversion rules and sending rules, the content conversion rules are used for making short message contents, and the sending rules are used for selecting short message sending modes.
The business rule engine is a component embedded in the industrial internet platform provided by the embodiment, and the rule engine separates business decisions from program codes and is used for storing and maintaining business rules pre-deployed on rule nodes.
In the embodiment of the present invention, the detailed description of the short message rule defined in the service rule engine may specifically be as follows:
firstly, a short message content template and a sending mode template are constructed.
Wherein, the short message content template at least comprises: "sender xxx; a receiver xxx; a transmission time xxx; sending a subject xxx; text content xxx; sender signature xxx ", and the like, where" xxx "refers to a reference to content omission, specifically, to specify the format of each transaction, to specify the portion of the body content contained, word count limitations, and the like. In short, the short message content template can be filled by extracting the relevant service information from the last rule node to achieve the purpose of editing the short message content.
The sending mode template at least comprises an operation mode of finishing short message sending by depending on an own or an external short message platform, the own short message platform is a short message service built by the industrial Internet platform, the external short message platform is a short message service by using third-party service companies such as Ali, and for the external short message platform, a user can log in and use the short message platform through a user name and a secret key.
Secondly, the short message content template and the sending mode template are output and displayed to the front end through a visual interface, and the content conversion rule and the sending rule of the short message are respectively obtained from the short message content template and the sending mode template according to the configuration operation received from the front end.
In the embodiment of the invention, the constructed short message content template and the constructed sending mode template are displayed at the front end by a visual interface, namely, the short message content template and the constructed sending mode template are displayed to a user, so that the user configures or customizes the favorite template through selection operation on the template, when the machine detects the configuration operation of the user, the customized template of the user is identified, and a rule output by the template after the configuration operation is obtained, namely, the short message content template corresponds to an output content conversion rule, the sending mode template corresponds to an output sending rule, the content conversion rule is used for making short message content, the sending rule is used for selecting a short message sending mode, and the content conversion rule and the sending rule are combined into a short message rule which is deployed in advance on a short message rule node.
202. And creating a service node containing the short message rule according to the short message rule to obtain a short message rule node.
In the embodiment of the invention, after the short message rule is defined, the method for editing the short message content and the method for sending the short message are defined, which are core contents of the short message service, so that a service node can be created by the core contents, and the service node containing the short message rule is the short message rule node.
203. And adding the short message rule node into the existing rule chain.
In the embodiment of the invention, in order to provide the short message service in the service flow, the short message rule node for providing the short message service is pre-created and added to the existing rule chain, so that when the short message sending operation needs to be executed, the short message rule node in the rule chain is directly triggered to execute the corresponding operation, and the configurable flexible short message service use on an industrial internet platform is realized.
204. When the business data are detected to be transmitted into the rule nodes, the business data are processed by utilizing the business rules on the rule nodes to obtain a processing result, the rule nodes comprise business nodes with preset business rules, and the rule nodes are connected in a chain mode according to the business process to form a rule chain.
In the embodiment of the present invention, please refer to step 101 for the statement of this step, which is not described herein again.
205. And judging whether to execute the short message sending operation or not according to the processing result.
In the embodiment of the present invention, the service rule corresponding to the short message service may be specifically defined as follows:
for example, the service rule corresponding to the short message service may be "determine to trigger the operation of sending the notification message", so when the operation of sending the notification message is triggered according to the processing result on the rule node, it is determined to execute the operation of sending the short message.
Or, for example, the service rule corresponding to the short message service may be "detecting that the processing of the service data on the rule node is abnormal, and triggering the alarm operation", so that when the processing result on the rule node detects that the processing operation is abnormal, the alarm operation is triggered, and it is determined to execute the short message sending operation. For example, for the rule chain "submit an order- > pay- > order deal- > order track- > trade completion", when it is detected that the "pay" node has not received the processing result transmitted by the "submit an order" within a preset 10 seconds, it is determined that there is an abnormality in data transmission between the two rule nodes, and an alarm is triggered in time, that is, a short message rule node is triggered to send a short message containing alarm information.
206. If the short message sending operation is judged to be executed, the short message rule node is triggered to execute the short message sending operation, and the short message rule node is a rule node for providing short message service in the rule chain.
In the embodiment of the present invention, the detailed description of the short message sending operation performed on the short message rule triggering node may specifically be as follows:
firstly, if the short message sending operation is judged to be executed according to the processing result obtained from the rule node, the service information is obtained from the rule node, and for a plurality of rule nodes in the service flow, the service information is reserved after the service data is processed.
Secondly, the service information is sent to the short message rule node, and the content of the short message is edited by using the content conversion rule on the short message rule node.
And when the operation of selecting the short message sending mode is detected to be successful, triggering the operation of sending the short message content in the short message sending mode. For the step, the short message content is firstly edited, then the sending mode is selected, and therefore the time for triggering the sending operation is set according to the completion of the selected sending mode, so that the automatic editing and automatic sending processes in the step are completed, and the short message sending efficiency is improved.
Further, as an implementation of the method shown in fig. 1 and fig. 2, an embodiment of the present invention provides a short message service device of an industrial internet platform. The embodiment of the apparatus corresponds to the embodiment of the method, and for convenience of reading, details in the embodiment of the apparatus are not repeated one by one, but it should be clear that the apparatus in the embodiment can correspondingly implement all the contents in the embodiment of the method. The device is applied to optimizing short message service provided by an industrial internet platform, and particularly as shown in fig. 3, the device comprises:
the processing unit 31 is configured to, when it is detected that service data is transmitted into a rule node, process the service data by using a service rule on the rule node to obtain a processing result, where the rule node includes a service node in which a service rule is preconfigured, and a plurality of rule nodes are connected in a chain manner according to a service flow to form a rule chain;
a judging unit 32, configured to judge whether to execute a short message sending operation according to the processing result obtained by the processing unit 31;
a triggering unit 33, configured to trigger a short message rule node to execute a short message sending operation when the determining unit 32 determines to execute the short message sending operation, where the short message rule node is a rule node that is created in the rule chain in advance and is used for providing a short message service.
Further, as shown in fig. 4, the apparatus further includes:
a defining unit 34, configured to define a short message rule in a business rule engine, where the short message rule at least includes a content conversion rule and a sending rule, the content conversion rule is used to make a short message content, and the sending rule is used to select a short message sending mode;
the creating unit 35 is configured to create a service node including the short message rule according to the short message rule obtained by the defining unit 34, so as to obtain a short message rule node;
an adding unit 36, configured to add the short message rule node obtained by the creating unit 35 to an existing rule chain.
Further, as shown in fig. 4, the defining unit 34 includes:
a constructing module 341, configured to construct a short message content template and a sending method template;
an output module 342, configured to output and display the short message content template and the sending method template, which are constructed by the construction module 341, to a front end through a visual interface;
the obtaining module 343 is configured to obtain the content conversion rule and the sending rule of the short message from the short message content template and the sending method template, respectively, according to the configuration operation received from the front end.
Further, as shown in fig. 4, the triggering unit 33 includes:
the obtaining module 331 is configured to obtain service information from a rule node if it is determined according to the processing result obtained at the rule node that a short message sending operation is to be executed;
a sending module 332, configured to send the service information obtained by the obtaining module 331 to the short message rule node;
the editing module 333 is configured to edit the short message content by using the content conversion rule on the short message rule node;
the selecting module 334 is configured to, when it is detected that the operation of editing the content of the short message is successfully performed, select a short message sending mode by using the sending rule on the short message rule node;
the triggering module 335 is configured to trigger an operation of sending a short message content in the short message sending manner when it is detected that the operation of selecting the short message sending manner is successfully executed.
Further, as shown in fig. 4, the judging unit 32 includes:
a determining module 321, configured to determine to execute a short message sending operation if the notification message sending operation is triggered according to the processing result; and/or the presence of a gas in the gas,
the determining module 321 is further configured to determine to execute a short message sending operation if an alarm operation is triggered when it is detected that the processing operation is abnormal according to the processing result.
In summary, the embodiments of the present invention provide a method and an apparatus for short message service of an industrial internet platform, where service nodes on the industrial internet platform and service rules thereon are packaged into rule nodes, and a plurality of rule nodes are connected in a chain manner according to a service flow to form a rule chain. When the business data are detected to be transmitted into the rule nodes, the business rules on the rule nodes are utilized to process the business data to obtain a processing result, and the short message rule nodes providing the short message service exist in the rule chain, so that the short message rule nodes in the rule chain can be directly triggered to execute corresponding operations when the short message sending operation is judged to be executed according to the processing result, and the short message service can be flexibly used on the industrial internet platform in a configurable mode. Compared with the prior art, the method and the device solve the problems that the existing method for providing the short message service occupies too much storage resources and consumes too much labor cost due to too much similar and redundant code information in code design/writing.
The short message service device of the industrial Internet platform comprises a processor and a memory, wherein the processing unit, the judging unit, the triggering unit and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, configurable and flexible use of the short message service on the industrial Internet platform is realized by adjusting kernel parameters, the code of the short message service does not need to be customized and designed/written for each business function module, the code of the short message service is prevented from occupying excessive storage resources, and the labor cost consumed by code development is also saved.
The embodiment of the invention provides a storage medium, wherein a program is stored on the storage medium, and the program realizes the short message service method of the industrial internet platform when being executed by a processor.
The embodiment of the invention provides a processor, which is used for running a program, wherein the short message service method of an industrial internet platform is executed when the program runs.
An embodiment of the present invention provides an electronic device 40, as shown in fig. 5, the device includes at least one processor 401, and at least one memory 402 and a bus 403 connected to the processor 401; the processor 401 and the memory 402 complete communication with each other through the bus 403; the processor 401 is configured to call the program instructions in the memory 402 to execute the above-mentioned sms method of the industrial internet platform.
The device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device:
a short message service method of an industrial Internet platform comprises the following steps: when business data are detected to be transmitted into a rule node, processing the business data by using a business rule on the rule node to obtain a processing result, wherein the rule node comprises a business node with a pre-configured business rule, and a plurality of rule nodes are connected in a chain manner to form a rule chain according to a business process; judging whether to execute the short message sending operation or not according to the processing result; if so, triggering a short message rule node to execute short message sending operation, wherein the short message rule node is a rule node which is pre-established in the rule chain and is used for providing short message service.
Further, a short message rule node is created in the rule chain in the following way: defining a short message rule in a business rule engine, wherein the short message rule at least comprises a content conversion rule and a sending rule, the content conversion rule is used for making short message content, and the sending rule is used for selecting a short message sending mode; according to the short message rule, creating a service node containing the short message rule to obtain a short message rule node; and adding the short message rule node into an existing rule chain.
Further, the defining the short message rule in the service rule engine includes: constructing a short message content template and a sending mode template; outputting and displaying the short message content template and the sending mode template to a front end through a visual interface; and respectively obtaining the content conversion rule and the sending rule of the short message from the short message content template and the sending mode template according to the configuration operation received from the front end.
Further, the triggering short message rule node executes a short message sending operation, including: if the short message sending operation is judged to be executed according to the processing result obtained from the rule node, the service information is obtained from the rule node; sending the service information to the short message rule node; editing the short message content by using the content conversion rule on the short message rule node; when the operation of editing the short message content is successfully executed, selecting a short message sending mode by using a sending rule on the short message rule node; and when detecting that the operation of selecting the short message sending mode is successfully executed, triggering the operation of sending the short message content in the short message sending mode.
Further, the determining whether to execute the operation of sending the short message according to the processing result includes: if the operation of sending the notification message is triggered according to the processing result, judging to execute the operation of sending the short message; and/or judging to execute the short message sending operation if the alarm operation is triggered when the processing operation is detected to be abnormal according to the processing result.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a device includes one or more processors (CPUs), memory, and a bus. The device may also include input/output interfaces, network interfaces, and the like.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A short message service method of an industrial Internet platform is characterized by comprising the following steps:
when business data are detected to be transmitted into a rule node, processing the business data by using a business rule on the rule node to obtain a processing result, wherein the rule node comprises a business node with a pre-configured business rule, and a plurality of rule nodes are connected in a chain manner to form a rule chain according to a business process;
judging whether to execute the short message sending operation or not according to the processing result;
if so, triggering a short message rule node to execute short message sending operation, wherein the short message rule node is a rule node which is pre-established in the rule chain and is used for providing short message service.
2. The method of claim 1, wherein the short message rule node is created in the rule chain by:
defining a short message rule in a business rule engine, wherein the short message rule at least comprises a content conversion rule and a sending rule, the content conversion rule is used for making short message content, and the sending rule is used for selecting a short message sending mode;
according to the short message rule, creating a service node containing the short message rule to obtain a short message rule node;
and adding the short message rule node into an existing rule chain.
3. The method of claim 2, wherein defining the short message rule in the business rules engine comprises:
constructing a short message content template and a sending mode template;
outputting and displaying the short message content template and the sending mode template to a front end through a visual interface;
and respectively obtaining the content conversion rule and the sending rule of the short message from the short message content template and the sending mode template according to the configuration operation received from the front end.
4. The method according to claim 2 or 3, wherein the triggering short message rule node performs short message sending operation, including:
if the short message sending operation is judged to be executed according to the processing result obtained from the rule node, the service information is obtained from the rule node;
sending the service information to the short message rule node;
editing the short message content by using the content conversion rule on the short message rule node;
when the operation of editing the short message content is successfully executed, selecting a short message sending mode by using a sending rule on the short message rule node;
and when detecting that the operation of selecting the short message sending mode is successfully executed, triggering the operation of sending the short message content in the short message sending mode.
5. The method of claim 1, wherein the determining whether to perform the operation of sending the short message according to the processing result comprises:
if the operation of sending the notification message is triggered according to the processing result, judging to execute the operation of sending the short message; and/or the presence of a gas in the gas,
and if the alarm operation is triggered when the processing operation is detected to be abnormal according to the processing result, judging to execute the short message sending operation.
6. A short message service device of an industrial Internet platform is characterized by comprising:
the processing unit is used for processing the service data by using the service rules on the rule nodes to obtain a processing result when the service data is detected to be transmitted into the rule nodes, wherein the rule nodes comprise service nodes with service rules configured in advance, and the rule nodes are connected in a chain manner to form a rule chain according to a service flow;
the judging unit is used for judging whether to execute the short message sending operation according to the processing result obtained by the processing unit;
and the triggering unit is used for triggering a short message rule node to execute the short message sending operation when the judging unit judges to execute the short message sending operation, and the short message rule node is a rule node which is pre-established in the rule chain and is used for providing the short message service.
7. The apparatus of claim 6, further comprising:
the short message rule management system comprises a defining unit, a sending unit and a processing unit, wherein the defining unit is used for defining a short message rule in a business rule engine, the short message rule at least comprises a content conversion rule and a sending rule, the content conversion rule is used for making short message content, and the sending rule is used for selecting a short message sending mode;
the establishing unit is used for establishing a service node containing the short message rule according to the short message rule obtained by the defining unit to obtain a short message rule node;
and the adding unit is used for adding the short message rule node obtained by the creating unit into the existing rule chain.
8. The apparatus of claim 7, wherein the defining unit comprises:
the building module is used for building a short message content template and a sending mode template;
the output module is used for outputting and displaying the short message content template and the sending mode template constructed by the construction module to the front end through a visual interface;
and the acquisition module is used for respectively obtaining the content conversion rule and the sending rule of the short message from the short message content template and the sending mode template according to the configuration operation received from the front end.
9. A storage medium comprising a stored program, wherein the apparatus on which the storage medium is located is controlled to perform the short message service method of the industrial internet platform according to any one of claims 1 to 5 when the program is executed.
10. An electronic device, comprising at least one processor, and at least one memory, bus connected to the processor;
the processor and the memory complete mutual communication through the bus;
the processor is used for calling the program instructions in the memory to execute the short message service method of the industrial internet platform according to any one of claims 1 to 5.
CN201910836760.9A 2019-09-05 2019-09-05 Short message service method and device for industrial internet platform Active CN112449314B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910836760.9A CN112449314B (en) 2019-09-05 2019-09-05 Short message service method and device for industrial internet platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910836760.9A CN112449314B (en) 2019-09-05 2019-09-05 Short message service method and device for industrial internet platform

Publications (2)

Publication Number Publication Date
CN112449314A true CN112449314A (en) 2021-03-05
CN112449314B CN112449314B (en) 2022-03-18

Family

ID=74733546

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910836760.9A Active CN112449314B (en) 2019-09-05 2019-09-05 Short message service method and device for industrial internet platform

Country Status (1)

Country Link
CN (1) CN112449314B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101604436A (en) * 2009-07-29 2009-12-16 中国建设银行股份有限公司 The method of bank short message financial operations
CN101833727A (en) * 2010-04-15 2010-09-15 刘明晶 Mobile business system
CN101931899A (en) * 2009-06-22 2010-12-29 厦门敏讯信息技术股份有限公司 Method for ordering cigarette by means of short message
US8543107B1 (en) * 2007-09-24 2013-09-24 Sprint Spectrum L.P. Method and system for delivering short message service (SMS) messages using the session initiation protocol (SIP)
CN106533920A (en) * 2016-12-02 2017-03-22 北京红马传媒文化发展有限公司 Customized short message sending system
CN107292405A (en) * 2017-08-16 2017-10-24 倪润坤 Electric appliances service online order platform
CN109670758A (en) * 2018-12-28 2019-04-23 北京金山安全软件有限公司 Order distribution information pushing method, device and system and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8543107B1 (en) * 2007-09-24 2013-09-24 Sprint Spectrum L.P. Method and system for delivering short message service (SMS) messages using the session initiation protocol (SIP)
CN101931899A (en) * 2009-06-22 2010-12-29 厦门敏讯信息技术股份有限公司 Method for ordering cigarette by means of short message
CN101604436A (en) * 2009-07-29 2009-12-16 中国建设银行股份有限公司 The method of bank short message financial operations
CN101833727A (en) * 2010-04-15 2010-09-15 刘明晶 Mobile business system
CN106533920A (en) * 2016-12-02 2017-03-22 北京红马传媒文化发展有限公司 Customized short message sending system
CN107292405A (en) * 2017-08-16 2017-10-24 倪润坤 Electric appliances service online order platform
CN109670758A (en) * 2018-12-28 2019-04-23 北京金山安全软件有限公司 Order distribution information pushing method, device and system and electronic equipment

Also Published As

Publication number Publication date
CN112449314B (en) 2022-03-18

Similar Documents

Publication Publication Date Title
CN110058856B (en) Page configuration method and device
CN107133052B (en) Flow creation method and device
CN107896162B (en) Deployment method and device of monitoring system, computer equipment and storage medium
CN105630461A (en) Managing method of android application interface
TW201807560A (en) Interface display method and apparatus
CN110798490B (en) Method and device for accessing third-party system based on data center and data center
US10579915B2 (en) Method and device for initializing two-dimensional code
CN108900627B (en) Network request method, terminal device and storage medium
CN105376719A (en) Information pushing method and device
CN106610845B (en) Information management method, device, server and system
CN110888628A (en) Method, device, equipment and storage medium for generating control tool
CN112449314B (en) Short message service method and device for industrial internet platform
CN112448882B (en) Mail service method and device for enterprise-level platform
CN110968858A (en) User authority control method and system
CN112650522A (en) Method, device, storage medium and equipment for dynamically configuring platform
CN112241362A (en) Test method, test device, server and storage medium
CN106648565B (en) Request sending method and device
CN110908646B (en) Building block type callback function block construction method and device, storage medium and processor
CN113055209B (en) Arranging method and device for edge calculation
CN115687310A (en) Data cleaning method and device
CN107092601A (en) Resource file construction method, resource file application process and device
CN110633214A (en) Configuration method and device of internal test message
CN113793155A (en) Method and device for processing sent message
CN115002691B (en) Message sending method, device, equipment and computer readable storage medium
CN114692583A (en) Electronic form approval serial number generation method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant