CN110515622A - Control method, device, electronic equipment and the storage medium of button state - Google Patents

Control method, device, electronic equipment and the storage medium of button state Download PDF

Info

Publication number
CN110515622A
CN110515622A CN201910804771.9A CN201910804771A CN110515622A CN 110515622 A CN110515622 A CN 110515622A CN 201910804771 A CN201910804771 A CN 201910804771A CN 110515622 A CN110515622 A CN 110515622A
Authority
CN
China
Prior art keywords
button
node
value
service 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
CN201910804771.9A
Other languages
Chinese (zh)
Other versions
CN110515622B (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 Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201910804771.9A priority Critical patent/CN110515622B/en
Publication of CN110515622A publication Critical patent/CN110515622A/en
Application granted granted Critical
Publication of CN110515622B publication Critical patent/CN110515622B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Abstract

Control method, device, electronic equipment and the storage medium for the button state that the disclosure provides obtain by responding the triggering to the target button and apply at least one currently performed Business Stream event;It is transferred from the configuration information of described the target button and obtains button press value, and transferred in the configuration information of the currently performed service node from each Business Stream event and obtain each node pressure value;The triggering state of described the target button is determined according to the button press value and each node pressure value, thus when the state to button controls without the control mode based on CC condition code, but use the control mode of the judgement of pressure value size, it only needs to modify to button and service node pressure itself value when the service logic to button is modified, without changing decision logic, its is easy to maintain, and process is succinct, is easy to use.

Description

Control method, device, electronic equipment and the storage medium of button state
Technical field
This disclosure relates to computer technology more particularly to a kind of control method of button state, device, electronic equipment and deposit Storage media.
Background technique
With the raising of Intelligent Terminal degree, the function using APP that intelligent terminal can carry also increases therewith.With Family can inevitably go out by the application button of click APP offer to complete to interact with the function of APP when user clicks application button The case where button is clicked in existing violence.
In the prior art, in order to avoid the operation of applied business stream and service node brought by violence click button is different It often, can include that if else code exists for function and the operation flow addition of application button in the code of development and application button Interior CC condition code.When user triggers application button, application button will will be as Rule of judgment to being based on the CC condition code The triggering of no response user determines.
But can make to increase in the difficulty for carrying out application button later maintenance by the way of CC condition code, once The logic needs of the corresponding Business Stream of application button are modified or are added, and engineering is complicated, and very easy error.In addition, The button control program of each page of application can follow the logical changes of Business Stream and change, and control program style is mixed and disorderly, no Can effectively it unify.
Summary of the invention
In view of the above-mentioned problems, present disclose provides a kind of control method of button state, device, electronic equipment and storages to be situated between Matter.
In a first aspect, present disclose provides a kind of control methods of button state, comprising:
The triggering to the target button is responded, obtains and applies at least one currently performed Business Stream event;
It is transferred from the configuration information of described the target button and obtains button press value, and currently holding from each Business Stream event It is transferred in the configuration information of capable service node and obtains each node pressure value;
The triggering state of described the target button is determined according to the button press value and each node pressure value;Wherein,
Second aspect, present disclose provides a kind of control devices of button state, comprising:
Acquiring unit obtains for responding the triggering to the target button and applies at least one currently performed Business Stream Event;
Pressure value determination unit obtains button press value for transferring from the configuration information of described the target button, and from It is transferred in the configuration information of the currently performed service node of each Business Stream event and obtains each node pressure value;
Control unit, for determining the triggering shape of described the target button according to the button press value and each node pressure value State.
The third aspect, present disclose provides a kind of electronic equipment, comprising:
At least one processor;And
The memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one A processor executes, so that at least one described processor is able to carry out method described in any of the above embodiments.
Fourth aspect, present disclose provides a kind of non-transitory computer-readable storage medium for being stored with computer instruction, The computer instruction is for making the computer execute method described in any of the above embodiments.
Control method, device, electronic equipment and the storage medium for the button state that the disclosure provides, by responding to target The triggering of button obtains and applies at least one currently performed Business Stream event;From the configuration information of described the target button It transfers and obtains button press value, and transfer and obtained respectively in the configuration information of the currently performed service node from each Business Stream event Node pressure value;The triggering state of described the target button is determined according to the button press value and each node pressure value, thus Without the control mode based on CC condition code when controlling the state of button, but use the judgement of pressure value size Control mode, only need to repair button and service node pressure itself value when the service logic to button is modified Change, without changing decision logic, easy to maintain, process is succinct, is easy to use.
Other effects possessed by above-mentioned optional way are illustrated hereinafter in conjunction with specific embodiment.
Detailed description of the invention
Attached drawing does not constitute the restriction to the disclosure for more fully understanding this programme.Wherein:
Fig. 1 is a kind of network architecture schematic diagram that the disclosure provides;
Fig. 2 is a kind of interface schematic diagram of the control method for button state that the disclosure provides;
Fig. 3 is a kind of flow diagram of the control method for button state that the disclosure provides;
Fig. 4 is the time diagram of the Business Stream time of the control method for the button state that the disclosure provides;
Fig. 5 is a kind of structural schematic diagram of the control device for button state that the disclosure provides;
Fig. 6 is that a kind of electronics for realizing the control method of the button state of the embodiment of the present disclosure that the disclosure provides is set Standby block diagram.
Specific embodiment
It explains below in conjunction with exemplary embodiment of the attached drawing to the disclosure, including the various of the embodiment of the present disclosure Details should think them only exemplary to help understanding.Therefore, those of ordinary skill in the art should recognize It arrives, it can be with various changes and modifications are made to the embodiments described herein, without departing from the scope of the present disclosure and spirit.Together Sample, for clarity and conciseness, descriptions of well-known functions and structures are omitted from the following description.
With the raising of Intelligent Terminal degree, the function using APP that intelligent terminal can carry also increases therewith.With Family can inevitably go out by the application button of click APP offer to complete to interact with the function of APP when user clicks application button The case where button is clicked in existing violence.
In the prior art, in order to avoid the operation of applied business stream and service node brought by violence click button is different It often, can include that if else code exists for function and the operation flow addition of application button in the code of development and application button Interior CC condition code.
For example, it when executing this event of interface post data, needs to forbid triggering other buttons, and executes IO text When part serializes this event, need to forbid triggering using close button and business cancel button.That is, for above-mentioned more A Business Stream event can execute state for each Business Stream event, a large amount of condition including if else code is added Code is using the control as button.Such as if (...) { * * * .setEnable (true/false) }.When user triggers application button When, application button by based on the CC condition code by as Rule of judgment to whether responding the triggering of user and determine.
But can make to increase in the difficulty for carrying out application button later maintenance by the way of CC condition code, once The logic needs of the corresponding Business Stream of application button are modified or are added, and engineering is complicated, and very easy error.
In view of the above-mentioned problems, present disclose provides a kind of control method of button state, device, electronic equipment and storages to be situated between Matter, the disclosure is provided with node pressure value on the service node corresponding to each Business Stream event, and is used to execute each Business Stream The button of event is also provided with corresponding button press value, each by the way that the button press value of the target button to be carrying out with application Size relation between the node pressure value of the corresponding service node of Business Stream event, to determine the triggering state of the target button, To realize the control of locking and activation for the target button, compared with the existing technology, the disclosure is without the condition of being based on The control mode of code, and only need when the service logic to button is modified to button and service node pressure itself value It modifies, without changing decision logic, easy to maintain, process is succinct, is easy to use.
Fig. 1 is a kind of network architecture schematic diagram that the disclosure provides, as shown in Figure 1, wherein the control of button state fills It sets and is mountable on electronic equipment 1, and electronic equipment can be the hardware device for having logical process function, such as computer, for another example Mobile tablet computer etc., wherein can also be the server and processing equipment for being set to cloud.Particularly, when the control of button state When device processed is software, it may be mounted in above-mentioned cited corresponding electronic equipment, i.e. the control device of button state For software form can be mounted in it is soft in the electronic equipments such as computer, mobile platform computer, server, processing equipment Part.In addition, the control device of button state can also be implemented as multiple softwares or software module (such as providing distributed clothes Business), single software or software module also may be implemented into, be not specifically limited herein.
In addition, carrying button state during 1 pair of control device application of subsequent button state controls Control device electronic equipment 2 on need to be equipped with using 3, wherein as shown in Figure 1, the control device 1 of button state can For the partial function of application 3, it is independently of using 3 and as the control that can be interacted with application 3.In addition, in the disclosure In the network architecture of offer, may also include has server 4.After the server 4 refers to that the control device of button state is based on Platform service equipment, developer carry out the update of pressure value using the server 4 to the control device 1 of button state.The clothes Business device 4 can be interacted with electronic equipment 2 by network.
Fig. 2 is a kind of interface schematic diagram of the control method for button state that the disclosure provides, and user can be by electronics The operation such as click, sliding, pressing, input of equipment 2, triggers button, the button state carried with electronic device 2 Control device 1 triggering is responded, the control of executive button state.Then, the control device 1 of button state is completed After control of which, operational feedback, " triggering failure " as shown in Figure 2 will be carried out to user according to the triggering state of button.
It should be noted that mode shown in Fig. 2 is only one of interface variation pattern that the disclosure provides, based on difference Triggering mode and different types of application, interface corresponding change will be present.
In a first aspect, Fig. 3 is a kind of button that the disclosure provides present disclose provides a kind of control method of button state The flow diagram of the control method of state.
As shown in figure 3, the control method of the button state, comprising:
The triggering of step 101, response to the target button, obtains and applies at least one currently performed Business Stream event.
The executing subject of the control mode for the button that this example provides is the control device of button state.In the disclosure, Using can either synchronously or asynchronously execute one or more Business Stream events in synchronization, and it is directed to any Business Stream event, is base It is realized in several service nodes.When any Business Stream event starts to execute, each service node of the Business Stream event is formed It is executed according to preset execution sequence is corresponding.That is, it may be more for applying performed Business Stream event in synchronization A, corresponding service node is also multiple.In addition, the partial service node in partial service stream event is directed to, using general Button is set, to receive user to the triggering command of service node, for example, in " interface post data " this Business Stream event START button or " resetting " button etc., after button is triggered activation, application will execute service node corresponding with button.
In disclosure example, using can receive user to the triggering command of button in application page, and to the triggering It is responded, at this point, the control device of button state will acquire using at least one currently performed Business Stream event.As before Described, in synchronization, using multiple Business Stream events can be performed, the control device of button state needs to get reference and holds Capable whole Business Stream events.
Step 102 is transferred from the configuration information of described the target button and obtains button press value, and from each Business Stream event Currently performed service node configuration information in transfer and obtain each node pressure value.
Specifically, the control device of button state will determine the target button by way of reading configuration information respectively The node pressure value of button press value and current each service node.
Wherein, the node pressure of the service node in the button press value P of the target button corresponding Business Stream event Value bP is consistent.That is, for example, the target button being triggered is for starting " interface post data " this Business Stream The START button for starting to execute the service node of post data manipulation in event, the button press value P of the target button will It is consistent with the node pressure value bP for the service node for starting to execute post data manipulation.
In addition, the node pressure value bP of each service node in each configuration information is according to the executable Business Stream event of application Between incidence relation determine, that is to say, that node pressure value is service node after completing to be set or configured just with true Fixed.In the stage that the Business Stream event for application is developed, each Business Stream event can be directed to and carry out service node It splits, then the node pressure value of the service node after fractionation is determined.
In the disclosure, node pressure value can be determined based on the following two kinds mode:
The first: is according to the service logic relationship and same Business Stream thing between the executable Business Stream event of application Service logic relationship in part between each service node determines each node pressure of each service node in each Business Stream event Value.
Specifically, service logic relationship includes logic series connection, and/or, logic is in parallel.For example, it is protected for article It deposits for the process of rough draft, is directed to and saves for this business of rough draft, need to save local rough draft and Internet Draft, it can be by it It is split as post interface service flow event and IO stream file Business Stream event, and to belong to logic parallel for the two Business Stream events Relationship.In addition, the service node of post interface service flow event therein can be split into interface success and interface failure, IO stream file The detachable IO success of the service node of Business Stream event and IO failure, service node IO success and IO unsuccessfully also belong to logic simultaneously Capable relationship.
Therefore, the node in the service node for above-mentioned service logic relationship, such as to " IO success " and " IO failure " Identical node pressure value can be used in pressure value.
Certainly, in other examples, the Business Stream event serial there are logic, such as it is required that " preservation " Business Stream event " IO success " service node is gone to, the service node of " the issuing interface calling " in " publication " Business Stream event could be executed, Correspondingly, the node pressure value for being somebody's turn to do " IO success " service node should be greater than the service node of " issuing interface calling ".
Second: according to any service node in each Business Stream event to the influence power of other service nodes, determining should The node pressure value of any service node;Wherein, other described service nodes are that any business section is removed in each Business Stream event Service node other than point;The influence power is for indicating between the work flow priority between service node, service node Correlation degree and dependency degree.
Therein, the node pressure value of service node and the influence power of the service node are proportional, the influence power with Correlation degree and dependency degree between work flow priority, service node is related.Therein, work flow priority is used for Priority of the business in entire Business Stream event performed by service node is referred to, the correlation degree between service node refers to Business is caused for how much quantity or more service nodes on a large scale in the influence face of service node, i.e. its service executing result Effect, what dependency degree then referred to is the significance level of service node, i.e. necessity, and when its dependency degree height, then explanation should Service node is indispensable node when executing the Business Stream event, and dependency degree is low, illustrates that other service nodes, which can be used, to be replaced For the business of the service node.
Therefore, the influence power based on Business Stream event, i.e. work flow priority influence face, and the factors such as necessity can be Split each service node distribution node pressure value bP obtained.Wherein, if the necessity of service node is bigger, influences face more Extensively, priority is higher, then the value of node pressure value bP is bigger, that is, indicates that the service node is bigger to the control range of button.It lifts For example, the service node A for executing page initialization should belong to the service node of highest priority, and node pressure value bP can be set It is 1000;It executes the service node B that network interface data reading is shown and belongs to the higher service node of necessity, and network interface Reading data, which is shown, to be needed to execute after completing to page initialization, and therefore, the node pressure value bP of service node A should be big 100 can be set in the node pressure value bP of node pressure the value bP, service node B of service node B.Meanwhile for interface industry The service node of the service node of business, I/O traffic, it is also desirable to carry out the determination of corresponding bP value.
Step 103, the triggering state that described the target button is determined according to the button press value and each node pressure value.
Specifically, the control device of button state will determine first the maximum value maxbP in each node pressure value, with Afterwards, the triggering shape of described the target button is determined according to the size relation between the button press value P and the maximum value maxbP State.Further, when button press value P is greater than the maximum value maxbP, the triggering state of described the target button is that can touch Hair;When button press value P is not more than the maximum value maxbP, the triggering state of described the target button is that not can trigger.
It should be noted that in the disclosure, with the execution of Business Stream event, current each service node will become Change, the maximum value maxbP in corresponding current each node pressure value will also change.Fig. 4 is the button that the disclosure provides The time diagram of the Business Stream time of the control method of state, as shown in Figure 4, Business Stream event is performed simultaneously in application A and industry logistics event B.Wherein the service node A1 in Business Stream event A, A2, A3 are performed respectively, and in Business Stream event B Service node B1, B2, B3 are performed respectively.
Wherein in different triggering moments, the target button triggering state that correspondence is different, specifically, the target button is pressed Button pressure value be P, when triggering at the time of be t1 when, due to the node pressure value bPA1 of service node A1 and B1 at the t1 moment It is larger with the node pressure value of service node A1 in bPB1, the maxbP at t1 moment can be set to bPA1, be pressed since maxbP is less than Button pressure value is P, and the triggering state of the target button is triggerable;When being t2 at the time of triggering, due to the business at the t2 moment The node pressure value of service node B3 is larger in node pressure the value bPA2 and bPB3 of node A2 and B3, can be by the t2 moment MaxbP is set to bPB3, is P since maxbP is greater than button press value, the triggering state of the target button is that not can trigger.In general, Often there is a service node to complete, maxbP can be reset to the maximum bP value in the service node being carrying out.
Particularly, in disclosure example, this determines the target according to the button press value and each node pressure value The triggering state of button, specifically can include: determine the maximum value in each node pressure value, according to the button press value with it is described Size relation between maximum value determines the triggering state of described the target button.For maximum value, timing machine can be based on business really Whether node, which occurs Business Stream, transfers decision, that is to say, that when determining the maximum value in each node pressure value, can determine whether current Whether the service node of execution occurs work flow, if so, in the configuration information of the service node executed before reacquiring It transfers and obtains each node pressure value, and determine the maximum value in each node pressure value;Correspondingly, if it is not, then previous determination is obtained The maximum value in each node pressure value obtained is used as this maximum value.In addition, after having determined new maximum value every time, Maximum value storage can be carried out, for subsequent calls.
In addition, can also be executed according to the triggering state of described the target button or refuse to execute the corresponding industry of described the target button Business stream event.In general, the corresponding service node of the target button can be performed, and work as triggering when triggering state is that can trigger State is when not can trigger, and the corresponding service node of the target button can not be performed.
It is current to obtain application by responding the triggering to the target button for the control method for the button state that the disclosure provides At least one performed Business Stream event;The call buttons pressure value from the configuration information of described the target button, and execute each Corresponding each node pressure value is called in the configuration information of the current business node of Business Stream event;According to the button press value The triggering state of described the target button is determined with each node pressure value, thus when the state to button controls without Control mode based on CC condition code, but the control mode of the judgement of pressure value size is used, in the service logic to button It only needs to modify to button and service node pressure itself value when being modified, without changing decision logic, maintenance Convenient, process is succinct, is easy to use.
Second aspect, present disclose provides a kind of control device of button state, Fig. 5 is a kind of button that the disclosure provides The structural schematic diagram of the control device of state.
As shown in figure 5, the control device of the button state includes:
Acquiring unit 10 obtains for responding the triggering to the target button and applies at least one currently performed business Stream event;
Pressure value determination unit 20 for the call buttons pressure value from the configuration information of described the target button, and executes Corresponding each node pressure value is called in the configuration information of the current business node of each Business Stream event;
Control unit 30, for determining the triggering of described the target button according to the button press value and each node pressure value State.
In optional example, described control unit 30 is specifically used for determining the maximum value in each node pressure value, according to described Size relation between button press value and the maximum value determines the triggering state of described the target button.
In optional example, described control unit 30 is specifically used for when button press value is greater than the maximum value, the mesh It is triggerable for marking the triggering state of button;When button press value is not more than the maximum value, the triggering shape of described the target button State is that not can trigger.
In optional example, execution unit, for determining the mesh according to the button press value and each node pressure value After the triggering state for marking button, is executed according to the triggering state of described the target button or refusal executes described the target button and corresponds to Business Stream event.
In optional example, which further includes setting unit;
The setting unit is used to determine each Business Stream according to the incidence relation between the executable Business Stream event of application The node pressure value of the corresponding service node of event;Wherein, service node described in the node pressure codomain of the service node Influence power is proportional.
In optional example, the node pressure of the service node in the corresponding Business Stream event of the button press value of button Value is consistent.
It is current to obtain application by responding the triggering to the target button for the control device for the button state that the disclosure provides At least one performed Business Stream event;The call buttons pressure value from the configuration information of described the target button, and execute each Corresponding each node pressure value is called in the configuration information of the current business node of Business Stream event;According to the button press value The triggering state of described the target button is determined with each node pressure value, thus when the state to button controls without Control mode based on CC condition code, but the control mode of the judgement of pressure value size is used, in the service logic to button It only needs to modify to button and service node pressure itself value when being modified, without changing decision logic, maintenance Convenient, process is succinct, is easy to use.
In accordance with an embodiment of the present disclosure, the disclosure additionally provides a kind of electronic equipment and a kind of readable storage medium storing program for executing.
As shown in fig. 6, being a kind of control method for realizing the button state of the embodiment of the present disclosure that the disclosure provides Electronic equipment block diagram.Electronic equipment is intended to indicate that various forms of digital computers, such as, laptop computer, desk-top Computer, workbench, personal digital assistant, server, blade server, mainframe computer and other suitable computer. Electronic equipment also may indicate that various forms of mobile devices, and such as, personal digital assistant, smart phone, can be worn cellular phone Wear equipment and other similar computing devices.Component, their connection and relationship shown in this article and their function are only As an example, and being not intended to limit the realization of the disclosure that is described herein and/or requiring.
As shown in fig. 6, the electronic equipment includes: one or more processors 401, memory 402, and each for connecting The interface of component, including high-speed interface and low-speed interface.All parts are interconnected using different buses, and can be pacified It installs in other ways on public mainboard or as needed.Processor can to the instruction executed in electronic equipment into Row processing, including storage in memory or on memory (such as, to be coupled to interface in external input/output device Display equipment) on show GUI graphical information instruction.In other embodiments, if desired, can be by multiple processors And/or multiple bus is used together with multiple memories with multiple memories.It is also possible to multiple electronic equipments are connected, it is each Equipment provides the necessary operation in part (for example, as server array, one group of blade server or multiprocessor system System).In Fig. 6 by taking a processor 401 as an example.
Memory 402 is non-transitory computer-readable storage medium provided by the disclosure.Wherein, the memory is deposited The instruction that can be executed by least one processor is contained, is intended to provided by the disclosure so that at least one described processor executes The generation method of word.The non-transitory computer-readable storage medium of the disclosure stores computer instruction, which is used for Computer is set to execute the control method of button state provided by the disclosure.
Memory 402 is used as a kind of non-transitory computer-readable storage medium, can be used for storing non-instantaneous software program, non- Instantaneous computer executable program and module, such as the corresponding program instruction/mould of generation of the intention word in the embodiment of the present disclosure Block (for example, attached acquiring unit shown in fig. 5 10, pressure value determination unit 20, control unit 30).Processor 401 passes through operation Non-instantaneous software program, instruction and the module being stored in memory 402, thereby executing server various function application with And data processing, i.e. the acquisition of channel information in realization above method embodiment.
Memory 402 may include storing program area and storage data area, wherein storing program area can store operation system Application program required for system, at least one function;Storage data area can store the electronic equipment of the acquisition according to channel information Use created data etc..In addition, memory 402 may include high-speed random access memory, it can also include non-wink When memory, a for example, at least disk memory, flush memory device or other non-instantaneous solid-state memories.In some realities It applies in example, optional memory 402 includes the memory remotely located relative to processor 401, these remote memories can lead to Cross the electronic equipment of the acquisition of network connection to channel information.The example of above-mentioned network includes but is not limited to internet, in enterprise Portion's net, local area network, mobile radio communication and combinations thereof.
The electronic equipment for being intended to the generation of word can also include: input unit 403 and output device 404.Processor 401, Memory 402, input unit 403 and output device 404 can be connected by bus or other modes, by total in Fig. 6 For line connection.
Input unit 403 can receive the number or character information of input, and generate the electronics with the acquisition of channel information The related key signals input of the user setting and function control of equipment, such as touch screen, keypad, mouse, track pad, touch The input units such as plate, indicating arm, one or more mouse button, trace ball, control stick.Output device 404 may include showing Show equipment, auxiliary lighting apparatus (for example, LED) and haptic feedback devices (for example, vibrating motor) etc..The display equipment can wrap It includes but is not limited to, liquid crystal display (LCD), light emitting diode (LED) display and plasma scope.In some embodiment party In formula, display equipment can be touch screen.
The various embodiments of system and technology described herein can be in digital electronic circuitry, integrated circuit system It is realized in system, dedicated ASIC (specific integrated circuit), computer hardware, firmware, software, and/or their combination.These are various Embodiment may include: to implement in one or more computer program, which can be It executes and/or explains in programmable system containing at least one programmable processor, which can be dedicated Or general purpose programmable processors, number can be received from storage system, at least one input unit and at least one output device According to and instruction, and data and instruction is transmitted to the storage system, at least one input unit and this at least one output Device.
These calculation procedures (also referred to as program, software, software application or code) include the machine of programmable processor Instruction, and can use programming language, and/or the compilation/machine language of level process and/or object-oriented to implement these Calculation procedure.As used herein, term " machine readable media " and " computer-readable medium " are referred to for referring to machine It enables and/or data is supplied to any computer program product, equipment, and/or the device of programmable processor (for example, disk, light Disk, memory, programmable logic device (PLD)), including, receive the machine readable of the machine instruction as machine-readable signal Medium.Term " machine-readable signal " is referred to for machine instruction and/or data to be supplied to any of programmable processor Signal.
In order to provide the interaction with user, system and technology described herein, the computer can be implemented on computers The display device for showing information to user is included (for example, CRT (cathode-ray tube) or LCD (liquid crystal display) monitoring Device);And keyboard and indicator device (for example, mouse or trace ball), user can by the keyboard and the indicator device come Provide input to computer.The device of other types can be also used for providing the interaction with user;For example, being supplied to user's Feedback may be any type of sensory feedback (for example, visual feedback, audio feedback or touch feedback);And it can use Any form (including vocal input, voice input or tactile input) receives input from the user.
System described herein and technology can be implemented including the computing system of background component (for example, as data Server) or the computing system (for example, application server) including middleware component or the calculating including front end component System is (for example, the subscriber computer with graphic user interface or web browser, user can pass through graphical user circle Face or the web browser to interact with the embodiment of system described herein and technology) or including this backstage portion In any combination of computing system of part, middleware component or front end component.Any form or the number of medium can be passed through Digital data communicates (for example, communication network) and is connected with each other the component of system.The example of communication network includes: local area network (LAN), wide area network (WAN) and internet.
Computer system may include client and server.Client and server is generally off-site from each other and usually logical Communication network is crossed to interact.By being run on corresponding computer and each other with the meter of client-server relation Calculation machine program generates the relationship of client and server.
According to the technical solution of the embodiment of the present disclosure, can be effectively directed on the basis of considering existing general intention word The information search behavioral characteristic of target group itself is determined for compliance with the intention word that its target group is intended to demand, consequently facilitating after It is continuous that word progress information flow push is intended to based on target group accordingly, and then improve the accuracy carried out.
It should be understood that various forms of processes illustrated above can be used, rearrangement increases or deletes step.Example Such as, each step recorded in this hair disclosure can be performed in parallel or be sequentially performed the order that can also be different and execute, As long as it is desired as a result, being not limited herein to can be realized technical solution disclosed in the disclosure.
Above-mentioned specific embodiment does not constitute the limitation to disclosure protection scope.Those skilled in the art should be bright White, according to design requirement and other factors, various modifications can be carried out, combination, sub-portfolio and substitution.It is any in the disclosure Spirit and principle within made modifications, equivalent substitutions and improvements etc., should be included within disclosure protection scope.

Claims (14)

1. a kind of control method of button state characterized by comprising
The triggering to the target button is responded, obtains and applies at least one currently performed Business Stream event;
It is transferred from the configuration information of described the target button and obtains button press value, and from the currently performed of each Business Stream event It is transferred in the configuration information of service node and obtains each node pressure value;
The triggering state of described the target button is determined according to the button press value and each node pressure value.
2. control method according to claim 1, which is characterized in that described according to the button press value and each node pressure Force value determines the triggering state of described the target button, comprising:
Determine the maximum value in each node pressure value;
The triggering state of described the target button is determined according to the size relation between the button press value and the maximum value.
3. control method according to claim 1, which is characterized in that further include:
According to each business section in the service logic relationship and same Business Stream event between the executable Business Stream event of application Service logic relationship between point, determines each node pressure value of each service node in each Business Stream event.
4. control method according to claim 1, which is characterized in that further include:
According to any service node in each Business Stream event to the influence power of other service nodes, any service node is determined Node pressure value;
Wherein, other described service nodes are the service node in each Business Stream event in addition to any service node;It is described Influence power is for indicating correlation degree and dependency degree between the work flow priority between service node, service node.
5. control method according to claim 1-4, which is characterized in that the button press value of button is corresponding Business Stream event in the node pressure value of service node be consistent.
6. control method according to claim 2, which is characterized in that the maximum value in each node pressure value of determination, Include:
Judge whether currently performed service node occurs work flow;
Each node pressure value is obtained if so, transferring in the configuration information of the service node executed before reacquiring, and is determined Maximum value in each node pressure value.
7. a kind of control device of button state characterized by comprising
Acquiring unit obtains for responding the triggering to the target button and applies at least one currently performed Business Stream event;
Pressure value determination unit obtains button press value for transferring from the configuration information of described the target button, and from each industry It is transferred in the configuration information of the currently performed service node for stream event of being engaged in and obtains each node pressure value;
Control unit, for determining the triggering state of described the target button according to the button press value and each node pressure value.
8. control device according to claim 7, which is characterized in that described control unit is specifically used for determining each node pressure Maximum value in force value determines described the target button according to the size relation between the button press value and the maximum value Triggering state.
9. control device according to claim 7, which is characterized in that further include setting unit;
The setting unit is used for according to the service logic relationship and same business between the executable Business Stream event of application Service logic relationship in stream event between each service node determines each node pressure of each service node in each Business Stream event Force value, wherein the service logic relationship includes logic series connection, and/or, logic is in parallel.
10. control device according to claim 7, which is characterized in that further include setting unit;
The setting unit is used for according to any service node in each Business Stream event to the influence power of other service nodes, really The node pressure value of fixed any service node;
Wherein, other described service nodes are the service node in each Business Stream event in addition to any service node;It is described Influence power is for indicating correlation degree and dependency degree between the work flow priority between service node, service node.
11. according to the described in any item control devices of claim 7-10, which is characterized in that the button press value of button is right with it The node pressure value for the service node in Business Stream event answered is consistent.
12. control device according to claim 8, which is characterized in that described control unit is specifically used for judgement and currently holds Whether capable service node occurs work flow;If so, being adjusted in the configuration information of the service node executed before reacquiring It takes and obtains each node pressure value, and determine the maximum value in each node pressure value.
13. a kind of electronic equipment characterized by comprising
At least one processor;And
The memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one It manages device to execute, so that at least one described processor is able to carry out method of any of claims 1-7.
14. a kind of non-transitory computer-readable storage medium for being stored with computer instruction, which is characterized in that the computer refers to It enables for making the computer perform claim require method described in any one of 1-7.
CN201910804771.9A 2019-08-28 2019-08-28 Button state control method and device, electronic equipment and storage medium Active CN110515622B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910804771.9A CN110515622B (en) 2019-08-28 2019-08-28 Button state control method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910804771.9A CN110515622B (en) 2019-08-28 2019-08-28 Button state control method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110515622A true CN110515622A (en) 2019-11-29
CN110515622B CN110515622B (en) 2023-03-31

Family

ID=68627622

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910804771.9A Active CN110515622B (en) 2019-08-28 2019-08-28 Button state control method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110515622B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111988177A (en) * 2020-08-20 2020-11-24 深信服科技股份有限公司 Bypass control method, system, equipment and computer medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102016870A (en) * 2008-05-06 2011-04-13 思科技术公司 Identifying user by measuring pressure of button presses on user input device
US20140128994A1 (en) * 2012-11-07 2014-05-08 Microsoft Corporation Logical sensor server for logical sensor platforms
CN104715309A (en) * 2013-12-11 2015-06-17 阿里巴巴集团控股有限公司 Service control method and device
CN105183228A (en) * 2015-09-09 2015-12-23 魅族科技(中国)有限公司 Terminal device and interface switching method
US20170123571A1 (en) * 2014-06-25 2017-05-04 Huawei Technologies Co., Ltd. Intelligent terminal control method
CN107341033A (en) * 2017-06-30 2017-11-10 百度在线网络技术(北京)有限公司 A kind of data statistical approach, device, electronic equipment and storage medium
CN107870711A (en) * 2016-09-27 2018-04-03 阿里巴巴集团控股有限公司 Page navigation method, the method and client that user interface is provided
CN107924411A (en) * 2015-08-14 2018-04-17 甲骨文国际公司 The recovery of UI states in transaction system
CN108446341A (en) * 2018-03-02 2018-08-24 平安普惠企业管理有限公司 Service condition querying method, device, computer equipment and storage medium
CN109995804A (en) * 2017-12-29 2019-07-09 腾讯科技(深圳)有限公司 Display methods, information providing method and the device of target resource information
CN110008034A (en) * 2018-11-22 2019-07-12 阿里巴巴集团控股有限公司 Task automated execution method, apparatus, electronic equipment and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102016870A (en) * 2008-05-06 2011-04-13 思科技术公司 Identifying user by measuring pressure of button presses on user input device
US20140128994A1 (en) * 2012-11-07 2014-05-08 Microsoft Corporation Logical sensor server for logical sensor platforms
CN104715309A (en) * 2013-12-11 2015-06-17 阿里巴巴集团控股有限公司 Service control method and device
US20170123571A1 (en) * 2014-06-25 2017-05-04 Huawei Technologies Co., Ltd. Intelligent terminal control method
CN107924411A (en) * 2015-08-14 2018-04-17 甲骨文国际公司 The recovery of UI states in transaction system
CN105183228A (en) * 2015-09-09 2015-12-23 魅族科技(中国)有限公司 Terminal device and interface switching method
CN107870711A (en) * 2016-09-27 2018-04-03 阿里巴巴集团控股有限公司 Page navigation method, the method and client that user interface is provided
CN107341033A (en) * 2017-06-30 2017-11-10 百度在线网络技术(北京)有限公司 A kind of data statistical approach, device, electronic equipment and storage medium
CN109995804A (en) * 2017-12-29 2019-07-09 腾讯科技(深圳)有限公司 Display methods, information providing method and the device of target resource information
CN108446341A (en) * 2018-03-02 2018-08-24 平安普惠企业管理有限公司 Service condition querying method, device, computer equipment and storage medium
CN110008034A (en) * 2018-11-22 2019-07-12 阿里巴巴集团控股有限公司 Task automated execution method, apparatus, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111988177A (en) * 2020-08-20 2020-11-24 深信服科技股份有限公司 Bypass control method, system, equipment and computer medium
CN111988177B (en) * 2020-08-20 2023-05-12 深信服科技股份有限公司 Bypass control method, bypass control system, bypass control equipment and computer medium

Also Published As

Publication number Publication date
CN110515622B (en) 2023-03-31

Similar Documents

Publication Publication Date Title
Ravindranath et al. {AppInsight}: Mobile App Performance Monitoring in the Wild
US20210117210A1 (en) Methods and Systems for Integrated Development Environment Editor Support with a Single Code Base
KR20210040884A (en) Edge computing test methods, devices, electronic devices and computer-readable media
US10761972B2 (en) Method and system for recording and debugging process flows
KR102528776B1 (en) A method, an apparatus, an electronic device, a storage medium and a program for testing code
CN106649084A (en) Function call information obtaining method and apparatus, and test device
CN109471626B (en) Page logic structure, page generation method, page data processing method and device
Tsao et al. SmartVNC: an effective remote computing solution for smartphones
CN110515774A (en) Generation method, device, electronic equipment and the storage medium of memory image
US11551328B2 (en) Graphics energy profiling system and method
CN108111364A (en) The test method and device of a kind of operation system
CN110992112A (en) Method and device for processing advertisement information
CN110515622A (en) Control method, device, electronic equipment and the storage medium of button state
KR102451678B1 (en) Method and apparatus for data processing based on smart contract, device and storage medium
US9317636B1 (en) System and method for stopping integrated circuit simulation
CN114697398B (en) Data processing method, device, electronic equipment, storage medium and product
US20030126506A1 (en) Program testing system and method
CN114756211A (en) Model training method and device, electronic equipment and storage medium
US10165074B2 (en) Asynchronous custom exit points
CN109561146A (en) Document down loading method, device, terminal device
Patil et al. Serverless Computing and the Emergence of Function-as-a-Service
CN111639032B (en) Method and apparatus for testing applications
CN114912522B (en) Information classification method and device
CN115455876B (en) Method for debugging logic system design and electronic equipment
CN113377638B (en) Method and device for generating performance test tool

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