CN111176798A - Electronic equipment, control method of task flow of electronic equipment and device with storage function - Google Patents
Electronic equipment, control method of task flow of electronic equipment and device with storage function Download PDFInfo
- Publication number
- CN111176798A CN111176798A CN201811334291.2A CN201811334291A CN111176798A CN 111176798 A CN111176798 A CN 111176798A CN 201811334291 A CN201811334291 A CN 201811334291A CN 111176798 A CN111176798 A CN 111176798A
- Authority
- CN
- China
- Prior art keywords
- task
- event
- current
- information
- task flow
- 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.)
- Withdrawn
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/4881—Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
Abstract
The application discloses an electronic device, a method for controlling a task flow of the electronic device and a device with a storage function. The control method of the task flow is used for electronic equipment, the electronic equipment is provided with a plurality of task flows, and the control method comprises the following steps: acquiring current information of the electronic equipment, and judging whether the current information is matched with preset information; if yes, acquiring a first task flow corresponding to the current information from the plurality of task flows; executing the first task flow; wherein the current information includes at least any one of current environment information or current time information. By the method, the intelligent level of task control of the electronic equipment can be improved, and the user experience is improved.
Description
Technical Field
The present disclosure relates to the field of electronic devices, and in particular, to an electronic device, a method for controlling a task flow of the electronic device, and an apparatus having a storage function.
Background
With the continuous development of electronic equipment technologies such as mobile phones, the functions of the mobile phones are also continuously enriched, such as alarm, audio and video playing, camera shooting, news broadcasting and the like. The functions can meet the requirements of daily life, work and study of users, and make the life of people more comfortable and convenient.
The inventor of the application finds that in the prior art, when a user uses an electronic device such as a mobile phone, only one function can be started at a time, and after the current function is finished, another function can be started only by controlling again. However, in many scenes, the daily life or work track of the user is the same, and therefore, the user needs to control the electronic device for many times to start a plurality of functions in the scene every day, the operation is complicated, and the user experience is not high.
Disclosure of Invention
The technical problem that this application mainly solved is how to improve the intelligent level that the electronic equipment task was controlled, improves user experience.
In order to solve the technical problem, the application adopts a technical scheme that: provided is a method for controlling a task flow, which is used for an electronic device provided with a plurality of task flows, and comprises the following steps: acquiring current information of the electronic equipment, and judging whether the current information is matched with preset information; if the current information is matched with the preset information, acquiring a first task flow corresponding to the current information from the plurality of task flows; executing the first task flow; wherein the current information includes at least any one of current environment information or current time information.
The first task flow comprises a plurality of task events executed according to a preset sequence, and the step of executing the first task flow comprises the following steps: when the current task event of the first task flow is finished, acquiring the first task event from the first task flow; judging whether the first task event is matched with the current information; and if the first task event is judged to be failed to be matched with the current information, adjusting the first task flow and executing the adjusted first task flow.
Wherein the step of adjusting the first task flow comprises: acquiring a newly added task event matched with the current information from a task library; the newly added task event is inserted into the first task flow to form an adjusted first task flow.
Wherein the step of adjusting the first task flow comprises: the first task event of the first task flow is deleted to form an adjusted first task flow.
Wherein, the step of determining that the first task event fails to match the current information comprises: judging whether the first task event is a task ending event; and if the first task event is the task ending event, repeatedly executing the current event and adjusting the first task flow.
Before the step of acquiring the first task flow corresponding to the current information from the plurality of task flows, the control method further includes: selecting a plurality of task events from a task library according to a first instruction, and establishing a first task flow according to a preset sequence; the first instruction comprises a voice instruction or a touch instruction.
Wherein, before the step of executing the first task flow, the control method further comprises: deleting task events, inserting task events or adjusting a preset sequence from the first task flow according to the second instruction; the second instruction comprises a voice instruction or a touch instruction.
In order to solve the above technical problem, another technical solution adopted by the present application is: an electronic device is provided, the electronic device including: a memory for storing a plurality of task streams; the processor is coupled with the memory and used for acquiring the current information of the electronic equipment and judging whether the current information is matched with the preset information; if so, the processor acquires a first task flow corresponding to the current information from the plurality of task flows and executes the first task flow; wherein the current information includes at least any one of current environment information or current time information.
The processor further acquires the first task event from the first task flow when the current task event of the first task flow is finished, and judges whether the first task event is matched with the current information; and if the first task event is judged to be failed to be matched with the current information, the processor adjusts the first task flow and executes the adjusted first task flow.
In order to solve the above technical problem, the present application adopts another technical solution: an apparatus having a storage function is provided. The device stores program data that can be executed to implement the above-described method of controlling a task flow.
The beneficial effect of this application is: different from the prior art, the method for controlling task flows in the embodiment of the application is used for an electronic device, the electronic device is provided with a plurality of task flows, and the method for controlling task flows comprises the following steps: acquiring current information of the electronic equipment, and judging whether the current information is matched with preset information; if yes, acquiring a first task flow corresponding to the current information from the plurality of task flows; executing the first task flow; wherein the current information includes at least any one of current environment information or current time information. In this way, the electronic device of the embodiment of the application can preset a plurality of task flows, and when the current environment information or the time information of the electronic device is matched with the preset information, the first task flow matched with the current information is acquired and executed, so that a plurality of task events matched with the current environment information or the current time information can be started and executed without controlling the electronic device for many times, the intelligent level of task control of the electronic device can be improved, and the user experience is improved.
Drawings
FIG. 1 is a schematic structural diagram of an embodiment of an electronic device of the present application;
FIG. 2 is a schematic flow chart diagram illustrating a first embodiment of a task flow control method according to the present application;
FIG. 3 is a flowchart illustrating a second embodiment of a task flow control method according to the present application;
FIG. 4 is a flowchart illustrating a specific process of step S305 in the embodiment of FIG. 3;
FIG. 5 is another specific flowchart of step S305 in the embodiment of FIG. 3;
FIG. 6 is a schematic diagram of another specific flowchart of step S305 in the embodiment of FIG. 3;
FIG. 7 is a flowchart illustrating a third embodiment of a task flow control method according to the present application;
FIG. 8 is a schematic structural diagram of another embodiment of an electronic device of the present application;
FIG. 9 is a schematic structural diagram of an embodiment of the apparatus with storage function according to the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
First, an electronic device is provided, as shown in fig. 1, where fig. 1 is a schematic structural diagram of an embodiment of the electronic device. The electronic device 101 is provided with a task library 102, and a plurality of task flows 103 are stored in the task library 102.
The task flow 103 of the present embodiment includes a plurality of task events that are executed in a preset order.
The task library 102 is a database with a certain data structure, and maintenance and update of the task library 102, maintenance and update of task events, a preset sequence of task events, and the like can all be operated through a related APP on the electronic device 101.
The task event of this embodiment may include a system task event of the electronic device 101, such as alarm playing, memo reading, and the like, and may also include a task event of a third-party function of the electronic device 101, such as news broadcasting, music playing, and stapling entry.
Different from the prior art, the electronic device 101 in this embodiment can start and execute a plurality of task events matched with the current environment information or the current time information without performing multiple operations, so that the intelligent level of task operations of the electronic device 101 can be improved, and the user experience can be improved.
In order to implement the task flow control of the electronic device 101, the present application further provides a task flow control method, as shown in fig. 2, fig. 2 is a schematic structural diagram of a first embodiment of the task flow control method of the present application. The control method of the embodiment specifically includes the following steps:
step S201: the current information of the electronic device 101 is acquired, and whether the current information is matched with the preset information is judged.
The current information includes any one of current environment information or current time information. The current environment information may further include light intensity information of a current environment, the current time information may include current beijing time, such as 7:00, 8:00, and the like, and the current time information may further include current abstract time, such as morning, afternoon, evening, and the like.
The preset information also includes the above-mentioned environment information or time information.
The preset information is stored in a preset table. In order to improve the information matching efficiency, the preset information may be stored in a preset table according to the category of the environment information or the time information, after the electronic device 101 acquires the current information, the category of the current information is further acquired, then first preset information corresponding to the category is acquired from the preset table, and then the current information is matched with the first preset information.
Step S202: if the current information matches the preset information, a first task flow corresponding to the current information is obtained from the plurality of task flows 103.
For example, the current information includes time information, and a mapping relationship between the sequence number of the task flow 103 and preset time information may be stored in a first preset table, where the first preset table is shown in table 1:
TABLE 1
| Task stream sequence number | Presetting time information |
| 1 | 7:00 |
| 2 | 8:00 |
| …… | ……. |
For example, the current time obtained by the electronic device 101 is 7:00, the current time is 7:00 and is matched with the preset time 7:00, and the electronic device 101 obtains the task stream 1 "alarm play- > news broadcast- > music play- > open a nail" matched with the current time 7:00 from the plurality of task streams 103 in the task library 102.
If the current information does not match the preset information, the process continues to return to step S201.
Step S203: a first task flow is executed.
The electronic device 101 executes a plurality of task events "alarm play", "news report", "music play", and "open a nail" in the first task flow 1 according to a preset sequence of the first task flow 1.
Different from the prior art, in this embodiment, the electronic device 101 may preset a plurality of task flows, and when the current environment information or the time information of the electronic device 101 matches the preset information, the first task flow matching the current information is acquired, and the first task flow is executed, so that a plurality of task events matching the current environment information or the current time information may be started and executed without controlling the electronic device 101 many times, and an intelligent level of task control of the electronic device 101 may be improved, and user experience may be improved.
In the above embodiment, the electronic device 101 sequentially executes a plurality of task events in the task flow according to a preset sequence. However, the user inevitably has some variations in the specific life and work, which makes the task flow executed in the preset sequence unsuitable, and therefore, the task flow needs to be adjusted.
To this end, the present application further proposes a method for controlling a task flow according to a second embodiment, which can be used for the electronic device 101, as shown in fig. 3, the method for controlling a task flow according to the present embodiment specifically includes the following steps:
step S301: the current information of the electronic device 101 is acquired, and whether the current information is matched with the preset information is judged.
Step S302: and if the current information is matched with the preset information, acquiring a first task flow corresponding to the current information from the plurality of task flows.
Steps S301 to S302 are the same as steps S201 to S202 described above, and are not described herein.
Step S303: and acquiring the first task event from the first task flow when the current task event of the first task flow is finished.
The current task event and the first task event have adjacent sequential execution relation, namely, the first task event is executed after the current task event is finished.
Specifically, the electronic device 101 may set an execution time for each task event and acquire an execution start time point thereof when the task event starts execution.
The electronic device 101 obtains an execution end time point according to the execution time and the execution start time point of the current task event. The electronic device 101 may acquire the first task event within a first preset time before the current task event is ended.
For example, the execution start time point of the current task event "alarm play" of the first task stream 1 is 7:00, the execution time is 5 minutes, the execution end time point of the current task event "alarm play" is 7:05, and if the first preset time is 30 seconds, the electronic device 101 acquires the first task event "news broadcast" at 7:04: 30.
Step S304: and judging whether the first task event is matched with the current information.
The current information of this embodiment further includes current environment information, and the plurality of task events and the preset environment information of the first task flow may be stored in a second preset table, where the second preset table is shown in table 2:
TABLE 2
| Task events | Preset environment information |
| Alarm play | Bedroom |
| News broadcast | Indoor use |
| Music playing | Outdoors |
| Opening nail | Office building |
For example, if the current environment information acquired by the electronic device 101 is "indoor", the electronic device 101 determines, according to table 2, that the first task event "news broadcast" matches the current environment information "indoor", and if the current environment information acquired by the electronic device 101 is "outdoor", the electronic device 101 determines, according to table 2, that the first task event "news broadcast" does not match the current environment information "outdoor".
Step S305: and if the first task event is not matched with the current information, adjusting the first task flow and executing the adjusted first task flow.
If the electronic device 101 determines that the first task event does not match the current information, it may determine that the current environment or the current time is not suitable for executing the task event in the first task flow, and adjust the first task flow to make the adjusted first task flow suitable for the current environment or the current time.
For example, if the first task event "news broadcast" does not match the current environmental information "outdoor", then the first task stream 1 needs to be adjusted.
Further, in other embodiments, if the electronic device determines that the first task event matches the current information, the electronic device may pre-start the first task event in the background or pre-allocate a system resource adapted to the first task event in a second preset time before the current task event is ended, so as to preload the first task event and accelerate a start process of the first task event.
Specifically, within a second preset time before the current task is finished, a first task event to be executed is loaded from a task library to a task queue to be executed in a memory through a preloading unit; monitoring a preloading result of the first task event through the task calling unit, wherein the preloading result comprises no loading, in the loading process and after the loading; then the task calling unit stores the preloading result so as to carry out calling operation on the preloaded first task event in the following; and simultaneously monitoring whether the execution of the current task event is finished or whether the execution of the current task event reaches the execution finishing time point of the current task event through the task execution unit, and if so, starting the process of the first task event and executing the first task event.
Different from the prior art, on the basis of the above embodiment, when a next task event of the current task event, that is, the first task event is not matched with the current information, the electronic device 101 of this embodiment adjusts the first task flow to execute the adjusted first task flow, and by this way, the intelligent level of task control of the electronic device 101 can be further improved.
Optionally, in this embodiment, the step S305 may be implemented by a method as shown in fig. 4, where the method of this embodiment specifically includes the following steps:
step S401: and if the first task event is judged to be unsuccessfully matched with the current information, acquiring a newly added task event matched with the current information from the task library 102.
The task library 102 of this embodiment further includes a plurality of individual task events, and the electronic device 101 stores a matching relationship between preset information and task event information in a third preset table in advance, where a one-to-one, one-to-many, many-to-one, or many-to-many matching relationship exists between the preset information and task event information in the third preset table.
If the electronic device 101 determines that the first task event does not match the current information, the electronic device 101 obtains the task event matching the current information from the task library 102. Specifically, the electronic device 101 queries task event information matched with the current information according to a third preset table, and acquires a task event corresponding to the task event information from the task library 102; and simultaneously, matching the task event with the task event in the first task flow, wherein if the matching fails, the task event is a newly added task event of the first task flow.
For example, a user may manage quickly by washing one day and leave the house in advance, after leaving the house, the electronic device 101 obtains current information as "outdoors", if a first task event obtained by the electronic device 101 is "news broadcast", and the current information "outdoors" is not matched with the first task event "news broadcast", the electronic device 101 queries a third preset table, and obtains a task event matched with the current information "outdoors", such as related information (which may be identification information such as a task number) of the "health information", from the third preset table, the electronic device 101 further obtains task event "health information" from the task library 102, the task event is different from the task event in the first task flow 1, and therefore the "health information" is a newly added task event of the first task flow 1.
Step S402: the newly added task event is inserted into the first task flow to form an adjusted first task flow.
The electronic device 101 inserts the newly added task event "health information" into the first task flow 1 to form the adjusted first task flow "alarm play- > health information- > news broadcast- > music play- > open nail".
Step S403: the adjusted first task flow is executed.
The execution method of the adjusted first task flow is similar to that of step S203, and is not described herein again.
According to the method and the device, when the current task event is finished, the next task event of the current task, namely the first task event is matched with the current information, and the user experience is further improved.
In this embodiment, the step S305 may also be implemented by a method as shown in fig. 5, where the method of this embodiment specifically includes the following steps:
step S501: and if the first task event is judged to be failed to be matched with the current information, deleting the first task event of the first task flow to form an adjusted first task flow.
For example, if the electronic device 101 determines that the current information "outdoor" does not match the first task event "news broadcast", the first task event "news broadcast" is deleted, and the adjusted first task stream "alarm play- > music play- > open nail" is formed.
Step S502: the adjusted first task flow is executed.
The execution method of the adjusted first task flow is similar to that of step S403, and is not described herein again.
According to the method and the device, when the current task event is finished, the task event which is not matched with the current information can be deleted, so that the task event which is not matched with the current information is prevented from being executed, and the user experience is further improved.
In this embodiment, the step S305 may also be implemented by a method as shown in fig. 6, where the method of this embodiment specifically includes the following steps:
step S601: and if the first task event is judged to be failed to be matched with the current information, judging whether the first task event is a task ending event.
The electronic device 101 may set an end identifier for an end task event of the task stream, determine whether the first task event is the end task event of the task stream according to the end identifier, and if the first task event is set with the end identifier, determine that the first task event is the end task event of the task stream. Of course, the electronic device 101 may also determine that the first task event is an end task event of the task flow by determining whether the first task event has a transfer relationship with other task events, and if not, determining that the first task event is an end task event of the task flow, and so on.
Step S602: and if the first task event is the task ending event, repeatedly executing the current event and adjusting the first task flow.
For example, the first task event "open nail" of the first task flow is a task ending event, and if the user does not arrive at the office building and is still outdoors, and the first task event "open nail" does not match the current environment information "outdoors", the current event "music playing" is repeatedly executed.
Step S603: the adjusted first task flow is executed.
The execution method of the adjusted first task flow is similar to that of step S403, and is not described herein again.
According to the method and the device, the current task can be repeatedly executed when the current task event is finished, so that the task event which is not matched with the current information is prevented from being executed, and the user experience is further improved.
The present application further proposes a task flow control method of a third embodiment, as shown in fig. 7, the control method of this embodiment further includes a step S701 based on the above embodiments, and the control method of this embodiment includes the following steps:
step S701: selecting a plurality of task events from a task library according to a first instruction, and establishing a first task flow according to a preset sequence, wherein the first instruction comprises a voice instruction or a touch instruction.
In other embodiments, task events may also be selected from a task library by text instructions or the like.
In other embodiments, the task event may be deleted from the first task stream, inserted into the first task stream, or the preset sequence may be adjusted according to the second instruction; the second instruction comprises a voice instruction, a touch instruction or a text instruction and the like.
Step S702: and acquiring current information of the electronic equipment, and judging whether the current information is matched with preset information.
Step S703: and if the current information is matched with the preset information, acquiring a first task flow corresponding to the current information from the plurality of task flows.
Step S704: a first task flow is executed.
Steps S702 to S704 are the same as steps S201 to S202 described above, and are not described herein.
In other embodiments, the execution order of step S701 and step S702 is not limited.
The embodiment performs similar processing on each current event, so that each current event is matched with current information, and user experience is improved.
It should be noted that, the electronic device of the present application may periodically acquire the current information and update the current information.
The present application further proposes an electronic device of another embodiment, as shown in fig. 8, the electronic device 801 of this embodiment includes a memory 802 and a processor 803, the memory 802 is used for storing a plurality of task flows; the processor 803 is coupled to the memory 802, and the processor 803 is configured to obtain current information of the electronic device 801 and determine whether the current information matches preset information; if yes, the processor 803 obtains a first task flow corresponding to the current information from the plurality of task flows and executes the first task flow; wherein the current information includes at least any one of current environment information or current time information.
The electronic device 801 of the embodiment may be a mobile phone, a tablet, an IPAD, a computer, a wearable device, and the like.
Different from the prior art, the electronic device 801 in this embodiment can start and execute a plurality of task events matched with the current environment information or the current time information without performing multiple operations, so that the intelligent level of task operations of the electronic device 801 can be improved, and the user experience can be improved.
The processor 803 of this embodiment further obtains the first task event from the first task flow when the current task event of the first task flow is finished, and determines whether the first task event is matched with the current information; and if the first task event is judged to be failed to be matched with the current information, the processor adjusts the first task flow and executes the adjusted first task flow.
The electronic device 801 of this embodiment may also implement the method for controlling the task flow of the above embodiment, which is not described herein again.
The present application further provides a device with a storage function, as shown in fig. 9, fig. 9 is a schematic structural diagram of an embodiment of the device with a storage function of the present application. The device 901 with storage function of this embodiment is used for storing the related data 902 and the program data 903 of the above embodiments, where the related data 902 at least includes the above task flow and the like, and the program data 903 can be executed with the method of the above method embodiments. The related data 902 and the program data 903 are described in detail in the above method embodiments, and are not described herein again.
The device 901 with storage function in this embodiment can be, but is not limited to, a usb disk, an SD card, a PD optical drive, a mobile hard disk, a high-capacity floppy drive, a flash memory, a multimedia memory card, a server, etc.
Different from the prior art, the method for controlling task flows in the embodiment of the application is used for an electronic device, the electronic device is provided with a plurality of task flows, and the method for controlling task flows comprises the following steps: acquiring current information of the electronic equipment, and judging whether the current information is matched with preset information; if yes, acquiring a first task flow corresponding to the current information from the plurality of task flows; executing the first task flow; wherein the current information includes at least any one of current environment information or current time information. In this way, the electronic device of the embodiment of the application can preset a plurality of task flows, and when the current environment information or the time information of the electronic device is matched with the preset information, the first task flow matched with the current information is acquired and executed, so that a plurality of task events matched with the current environment information or the current time information can be started and executed without controlling the electronic device for many times, the intelligent level of task control of the electronic device can be improved, and the user experience is improved.
In addition, if the above functions are implemented in the form of software functions and sold or used as a standalone product, the functions may be stored in a storage medium readable by a mobile terminal, that is, the present application also provides a storage device storing program data, which can be executed to implement the method of the above embodiments, the storage device may be, for example, a usb disk, an optical disk, a server, etc. That is, the present application may be embodied as a software product, which includes several instructions for causing an intelligent terminal to perform all or part of the steps of the methods described in the embodiments.
In the description of the present application, reference to the description of the terms "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
The logic and/or steps represented in the flowcharts or otherwise described herein, such as an ordered listing of executable instructions that can be viewed as implementing logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device (e.g., a personal computer, server, network device, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions). For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
The above description is only for the purpose of illustrating embodiments of the present application and is not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application or are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.
Claims (10)
1. A method for controlling a task flow, which is used for an electronic device provided with a plurality of task flows, the method comprising:
acquiring current information of the electronic equipment, and judging whether the current information is matched with preset information;
if the current information is matched with the preset information, acquiring a first task flow corresponding to the current information from the plurality of task flows;
executing the first task flow;
wherein the current information includes at least any one of current environment information or current time information.
2. The control method of claim 1, wherein the first task flow comprises a plurality of task events that are executed in a preset order, and wherein executing the first task flow comprises:
when the current task event of the first task flow is finished, acquiring a first task event from the first task flow;
judging whether the first task event is matched with the current information;
and if the first task event is judged to be failed to be matched with the current information, adjusting the first task flow and executing the adjusted first task flow.
3. The control method of claim 2, wherein the step of adjusting the first task flow comprises:
acquiring a newly added task event matched with the current information from a task library;
and inserting the newly added task event into the first task flow to form an adjusted first task flow.
4. The control method of claim 2, wherein the step of adjusting the first task flow comprises:
deleting the first task event of the first task flow to form an adjusted first task flow.
5. The control method according to claim 2, wherein the step of determining that the first task event fails to match the current information comprises:
judging whether the first task event is a task ending event;
and if the first task event is the task ending event, repeatedly executing the current event and adjusting the first task flow.
6. The control method according to claim 2, wherein before the step of acquiring the first task flow corresponding to the current information from the plurality of task flows, the control method further comprises:
selecting the plurality of task events from a task library according to a first instruction, and establishing the first task flow according to the preset sequence;
wherein the first instruction comprises a voice instruction or a touch instruction.
7. The control method according to claim 2, wherein before the step of executing the first task flow, the control method further comprises:
deleting task events, inserting task events or adjusting the preset sequence from the first task flow according to the second instruction;
wherein the second instruction comprises a voice instruction or a touch instruction.
8. An electronic device, characterized in that the electronic device comprises:
a memory for storing a plurality of task streams;
the processor is coupled with the memory and used for acquiring the current information of the electronic equipment and judging whether the current information is matched with preset information or not; if so, the processor acquires a first task flow corresponding to the current information from the plurality of task flows and executes the first task flow;
wherein the current information includes at least any one of current environment information or current time information.
9. The electronic device of claim 8, wherein the processor further obtains a first task event from the first task flow when a current task event of the first task flow ends, and determines whether the first task event matches the current information; and if the first task event is judged to be failed to be matched with the current information, the processor adjusts the first task flow and executes the adjusted first task flow.
10. An apparatus having a storage function, characterized in that the apparatus stores program data executable to implement the method of controlling a task flow according to any one of claims 1 to 7.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811334291.2A CN111176798A (en) | 2018-11-09 | 2018-11-09 | Electronic equipment, control method of task flow of electronic equipment and device with storage function |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811334291.2A CN111176798A (en) | 2018-11-09 | 2018-11-09 | Electronic equipment, control method of task flow of electronic equipment and device with storage function |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN111176798A true CN111176798A (en) | 2020-05-19 |
Family
ID=70622073
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201811334291.2A Withdrawn CN111176798A (en) | 2018-11-09 | 2018-11-09 | Electronic equipment, control method of task flow of electronic equipment and device with storage function |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111176798A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112162831A (en) * | 2020-11-02 | 2021-01-01 | 北京明略昭辉科技有限公司 | A big data analysis method, system, electronic device and storage medium |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20140289022A1 (en) * | 2011-10-18 | 2014-09-25 | Nec Corporation | Task assistance device, task assistance system, task assistance method, and storage medium with program stored therein |
| CN106453922A (en) * | 2016-11-01 | 2017-02-22 | 乐视控股(北京)有限公司 | Scene mode setting method and device, and terminal |
| CN106547582A (en) * | 2015-09-22 | 2017-03-29 | 阿里巴巴集团控股有限公司 | A kind of preprocess method and device |
| CN107564518A (en) * | 2017-08-21 | 2018-01-09 | 百度在线网络技术(北京)有限公司 | Smart machine control method, device and computer equipment |
| US9910487B1 (en) * | 2013-08-16 | 2018-03-06 | Ca, Inc. | Methods, systems and computer program products for guiding users through task flow paths |
-
2018
- 2018-11-09 CN CN201811334291.2A patent/CN111176798A/en not_active Withdrawn
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20140289022A1 (en) * | 2011-10-18 | 2014-09-25 | Nec Corporation | Task assistance device, task assistance system, task assistance method, and storage medium with program stored therein |
| US9910487B1 (en) * | 2013-08-16 | 2018-03-06 | Ca, Inc. | Methods, systems and computer program products for guiding users through task flow paths |
| CN106547582A (en) * | 2015-09-22 | 2017-03-29 | 阿里巴巴集团控股有限公司 | A kind of preprocess method and device |
| CN106453922A (en) * | 2016-11-01 | 2017-02-22 | 乐视控股(北京)有限公司 | Scene mode setting method and device, and terminal |
| CN107564518A (en) * | 2017-08-21 | 2018-01-09 | 百度在线网络技术(北京)有限公司 | Smart machine control method, device and computer equipment |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112162831A (en) * | 2020-11-02 | 2021-01-01 | 北京明略昭辉科技有限公司 | A big data analysis method, system, electronic device and storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11474779B2 (en) | Method and apparatus for processing information | |
| CN108712665B (en) | Live broadcast list generation method and device, server and storage medium | |
| CN106098063B (en) | Voice control method, terminal device and server | |
| CN106919989B (en) | Room online booking method and device based on Internet of things open platform | |
| CN110659121B (en) | Task data acquisition method and device, task configuration method and device and server | |
| CN110012364B (en) | Anchor recommendation method and device and storage medium | |
| CN104394431A (en) | Method and system for personalized setting for hotel users | |
| CN108540818B (en) | Live broadcast room corner mark setting method and device, terminal and computer readable medium | |
| CN113010790B (en) | Content recommendation method, device, server and storage medium | |
| WO2017219527A1 (en) | Data statistical analysis method and system for an intelligent terminal | |
| US20140169702A1 (en) | Photo Chapters Organization | |
| CN111083517B (en) | Live broadcast room interaction method and device, electronic equipment, system and storage medium | |
| CN105898410A (en) | Video recommendation method and server | |
| CN105337998A (en) | Multi-screen interaction system | |
| CN111479143B (en) | Television advertisement pushing method based on user portrait and electronic equipment | |
| CN107767846A (en) | The method, apparatus and storage medium of the online long-range K songs of KTV | |
| CN106412492B (en) | Video data processing method and device | |
| CN105988803B (en) | Application program display method and terminal | |
| US11004472B2 (en) | Method and device of playing video, and computing device | |
| CN111176798A (en) | Electronic equipment, control method of task flow of electronic equipment and device with storage function | |
| CN107801228B (en) | User data recording method, device and system | |
| CN105245962A (en) | Video carousel method and device | |
| CN112887806A (en) | Subtitle processing method, subtitle processing device, electronic equipment and subtitle processing medium | |
| CN105898596B (en) | Direct broadcasting room display control method and device | |
| CN112650467A (en) | Voice playing method and related device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| WW01 | Invention patent application withdrawn after publication | ||
| WW01 | Invention patent application withdrawn after publication |
Application publication date: 20200519 |