# Patent

## Title
Common software activity status representation

## Abstract

Described herein are technologies directed towards providing a common mechanism for tracking the activity status of one or more software actions of a computer system. Furthermore, the described technologies facilitate managing the presentation of the tracked activity status of individual actions and/or of a collection of such actions.

## Background
BACKGROUND
When a user initiates a potentially long-running action on a computing system, it is often desirable to notify the user about the status of that long-running action. For example, FIG. 1A illustrates a file-copying status notification given to a user while files are being copied/moved from one location to another. With such a notification, the user can see which files are being copied/moved from one file folder to another. Similarly, FIG. 1B illustrates an installation status notification given to a user while one or more software programs are being installed.
In addition to software installation and copying/moving flies, other examples of long-running actions where it may be desirable to give the user status notification include (but are not limited to) transforming data, updating configurations, performing complex calculations, accessing a resource, installing software, downloading files, searching databases, defragmenting hard disks, performing long-running transactions over slow networks. In many software systems, there exist many different long-running actions like those described above. Long-running actions may and typically do include a series of sub-actions. With these long-running actions, it is often desirable to notify a user of their current status.
To accomplish that user-notification goal, conventional long-running actions typically utilize a dedicated status-notification user-interface (UI). Furthermore, these dedicated UIs are typically customized for their particular purpose. These UIs typically utilize visual metaphors to represent activity status. For example, the files flying from one folder to another shown in FIG. 1A illustrates the status of the file-copying activity. Similarly, the “thermometer” shown in FIG. 1B illustrates the status of the software installation.
Furthermore, in accomplishing the user-notification goal, each conventional long-running action uses its own customized mechanism for tracking its activity status. Such a mechanism may simply be storage locations for storing information about the current status of a long-running action and/or procedural definitions for how such status information is acquired and acted upon.
A common mechanism for representing and tracking the activity status of a potentially long-running action does not exist. Instead, the conventional approach is to repeatedly recreate an activity-status tracking mechanism for each application of a computer system.
SUMMARY
Described herein are technologies directed towards providing a common mechanism for tracking the activity status of one or more software actions of a computer system. Furthermore, the described technologies for managing the presentation of the tracked status of individual actions and/or of a collection of such actions.
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter.



BRIEF DESCRIPTION OF THE DRAWINGS
The same numbers are used throughout the drawings to reference like elements and features.
FIGS. 1A and 1B illustrate conventional visual metaphors for presenting activity-status of long-running actions, such as copying/moving files (FIG. 1A) and software installation (FIG. 1B).
FIG. 2 illustrates an exemplary software activity representation system within the context of a suitable computing environment, in accordance with one or more implementations described herein.
FIG. 3 illustrates a flow diagram showing a methodological implementation described herein.
FIG. 4 illustrates a flow diagram showing another methodological implementation described herein.



DETAILED DESCRIPTION
The following description sets forth techniques for providing a common mechanism for tracking the status of individual software activities of a computer system, especially where such an activity is a potentially long-running activity or series of sub-activities. Such described techniques support for a hierarchical set of activities or sub-activities. Any one of the activities of a hierarchical set can itself be a long-running activity with a hierarchical set of sub-activities.
The techniques described herein also provide a common mechanism for tracking the status of a collection of software activities of the computer system. Furthermore, described herein are techniques for managing the presentation of status information of the collection of tracked software activities.
The techniques described herein provide a protocol that separates the activity itself from the display of the activity's progress. Activities emit records of their progress and those records are then sent to an entity (e.g., the operating system) which decides what to do with them. This entity may render each record that it receives. It may render a subset of the received record. It may suppress the display in whole or in part. Indeed, because of this protocol, the activity-progress presentation may occur in a separate process or a separate machine.
Exemplary Software Activity Status Representation Data Structures
An exemplary software activity status representation described herein has data structures for representing the status of one or more software activities. A software activity (or simply “activity”) is a high-level function being undertaken by the software. For example, a user drags a folder of files into the Recycle Bin, which initiates the “activity” of deleting each file in the folder. Activities may be grouped together into a related set of concurrent activities and may also include a subordinate set of “sub-activities” (or alternatively known as “operations”).
The exemplary software activity status representation described herein includes at least two data structures: “ProgressRecord” and “PendingProgress.” Also, there is a third subclass data structure called “ProgressNode.” In some implementations, the ProgressNode may be part of the PendingProgress.
Of course, this is just one exemplary implementation. Other implementations may have more or less data structures for tracking and storing data as may be desired and is suitable.
Each ProgressRecord data structure is focused on representing status information for individual activities. While the PendingProgress data structure is focused on representing a cumulative status of multiple activities. A ProgressNode acts as a mechanism for transferring updated information from the ProgressRecord data structures to the PendingProgress data structure.
Using golf as an analogy, each golfer is an activity and their current score and other associated data (e.g., current hole, number of holes played, playing partners, etc.) is represented by their golf scorecard. Thus, a golfer's scorecard is analogous to an activity's ProgressRecord data structure. To continue the golf analogy, a golf tournament's leaderboard (also called a “scoreboard”) displays the current scores of the golfers in the tournament. Thus, the golf leaderboard is analogous to a PendingProgress data structure, which summarizes the status of multiple activities.
When sent to the leaderboard, the ProgressRecord may be thought of as being analogous to a “note” sent from the golfer to those in tournament administration for the purposes of updating the leaderboard. This “note” provides sufficient status information for the leaderboard to be accurately updated. Meanwhile, the ProgressNode may be thought of as the leaderboard's copy of the last note received for a given golfer. The PendingProgress “leaderboard” is the collection of copies of the last “notes” received. The ProgressNode is not sent-it is kept by the PendingProgress “leaderboard” and updated from the ProgressRecords received.
ProgressRecord
The ProgressRecord is a data structure for representing the status of a particular activity at a given point in time. ProgressRecord is the “scorecard” for each activity. Each tracked activity will have a ProgressNode data structure, and each update to a tracked activity is represented with a ProgressRecord data structure.
The golfer can use a ProgressRecord as her own scorecard, but she doesn't have to. However, she does need to send a ProgressRecord to the administration for updating of the leaderboard. So, the golfer (as a metaphor here for an application or other software process) can create a ProgressRecord from whatever private scheme she is using to track her score, or she can make a copy of her ProgressRecord and send the copy.
Table A below illustrates an example of one possible organizational structure for a ProgressRecord data structure. It is provided for purposes of illustration only and not limitation.







TABLE A





ProgressRecord

















− id: Int



− parentID: int



− activity: string



− status: string



− currentOperation: string



− percent: int



− secondsRemaining: int



− ActivityDetails: object



− OperationDetails: object



− type: ProgressRecordType



+ ProgressRecord( )



+ ActivityId( )



+ ParentActivityId( )



+ Activity( )



+ StatusDescription( )



+ CurrentOperation( )



+ PercentComplete( )



+ SecondsRemaining( )



+ Type( )



+ ToString( )










This example ProgressRecord data structure organization of Table A includes a “id” to identify the activity that is being tracked; “parentId” to identify the tracked activity's parent (if there is any); “activity” to label the tracked activity; “status” to describe the status of the activity (e.g., “starting file copy”); “currentOperation” to specify the current operation or sub-activity; “percent” for percent completion of the activity; “secondsRemaining” for specifying the time remaining until completion.
In addition, there may be other elements of this ProgressRecord datastructure, such as ActivitityDetails and OperationDetails. With these, an activity is allowed to communicate any additional data they want to about the activity or operation. A progress viewer (or presenter) might make this information available to the user if they want to investigate the details of what is going on. For instance, it might include the biometric conditions (e.g. heartrate, blood-pressure, blood alcohol content) of the golfer for a particular hole.
Furthermore, this example ProgressRecord data structure organization of Table A includes a several functions, such as “ProgressRecord”; “ActivityId” and the like.
PendingProgress
Instead of focusing on individual activities, the PendingProgress data structure focuses on a collection of activities. The PendingProgress is a data structure for representing the cumulative status of a set of related activities at a given point in time. That current status changes over time as new ProgressRecords are received to reflect changes in the status of activities. PendingProgress is the “leaderboard” for a group of activities.
Table B below illustrates an example of one possible organizational structure for a PendingProgress data structure. It is provided for purposes of illustration only and not limitation.







TABLE B





PendingProgress

















− topLevelNodes: List



− nodeCount: int



− maxNodeCount: int



+ Update( )



− RemoveNode( )



− AddNode( )



− FindOldestNode( )



− FindNodeById( )



− FindOldestNodeofGivenStyle( )



− AgeNodesAndResetStyle( )



+ Render ( )



− RenderHelper( )



− TallyHeight( )



− AllNodesHaveGiven Style( )



− CountNodes( )



− CompressToFitHelper( )



− CompressToFit( )










This example PendingProgress data structure organization of Table B includes a “topLevelNodes,” which is a list of ProgressNodes without parent activites; “nodeCount,” which is the number of ProgressNodes currently being tracked; “maxNodeCount,” which is the maximum limit to the number of ProgressNodes to be tracked.
Furthermore, this example PendingProgress data structure organization of Table B includes several functions, such as “Update” and “Render” function and their several sub-functions. The Update function receives a ProgressRecord and updates the PendingProgress to reflect the new status of the activity identified by the received record. The Render function—traverses the ProgressNodes in the PendingProgress structure and renders them to the user of the software.
ProgressNode
The PendingProgress data structure does not store ProgressRecord data structures. It instead represents the contents (or a superset thereof) of the ProgressRecord data structures using a subclass of ProgressRecord called “ProgressNode.” The ProgressNode subclass has several additional fields used in the various activity-status procedures to track and display activity status.
Table C below illustrates an example of one possible organizational structure for a ProgressNode subclass data structure. It is provided for purposes of illustration only and not limitation.







TABLE C





ProgressNode

















+ Children: List



+ Age: int



+ Style: RenderStyle



+ SourceId: long



+ ProgressNode( )



+ Render ( )



− RenderFull( )



− RenderCompact( )



− RenderMinimal( )



+ LinesRequired( )



− LinesRequiredInFullStyle( )



− LinesRequiredInCompactStyle( )










This example ProgressNode subclass data structure organization of Table C includes a “Children,” which is a list of the ProgressNodes whose parentIds are the same as this particular ProgressNode's activityId; “Age,” which is a counter representing the number of times this node was present in the PendingProgress structure during the update process, since the last time the ProgressRecord was received for this node's activity; “Style,” which is used by the render process to decide how to show the node to the user; “SourceId” which identifies the source of the ProgressRecord that last updated this activity.
Furthermore, this example ProgressNode subclass data structure organization of Table C includes functions, such as a “ProgressNode” and “Render” function.
Exemplary Software Activity Status Representation System
Generally, FIG. 2 illustrates an example of a suitable exemplary computing environment 200 (or configuration) within which an exemplary software-activity status representation system 220, as described herein, may be implemented (either fully or partially).
The suitable exemplary computing environment 200 may include one or more general-purpose or special-purpose computing system environments or configurations. Examples of well known computing systems, environments, and/or configurations that may be suitable for use include, but are not limited to, personal computers (PCs), server computers, hand-held or laptop devices, thin clients, thick clients, multiprocessor systems, microprocessor-based systems, programmable consumer electronics, wireless phones and equipment, general and special-purpose appliances, application-specific integrated circuits (ASICs), set top boxes, personal digital assistants (PDA), appliances, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
As depicted in FIG. 2, this suitable exemplary computing environment 200 includes a computer 210, an output device 212 (e.g., a computer monitor), and a memory 214. The memory 214 may be any available processor-readable media that is accessible by computer 210. The memory 214 may be either volatile or non-volatile media. Also, it may be either removable or non-removable media.
Running in this memory 214 are one or more software activities, such as those represented by software activities 230 and 232. A software activity (or simply “activity”) is a high-level function being undertaken by the software. For example, a user drags a folder of files into the Recycle Bin, which initiates the “activity” of deleting each file in the folder.
FIG. 2 shows the components of the exemplary software-activity status representation system 220 running in the memory 214. As illustrated here, the components of the exemplary software-activity status representation system 220 are part of the operating system (OS) of the computer 210. Of course, this is just one exemplary implementation. With other implementations, the components (independently or collectively) of the system 220 may be implemented outside the context of an OS. Furthermore, the components (independently or collectively) may be implemented by software, hardware, firmware, or some combination thereof.
The illustrated components of the exemplary software activity status representation system 200 includes various data and functional components. The data components include multiple ProgressRecord data structures (such as those represented by ProgressRecords 240 and 242), a PendingProgress data structure 244, one or more ProgressNode data structures (such as those represented by ProgressNode messages 246 and 248). These data components are described above in the section titled “Exemplary Software Activity Status Representation Data Structures
The functional components of the exemplary software activity status representation system 200 include a progress updater 250 and a progress renderer 260. The progress updater 250 updates the PendingProgress data structure 244 upon receipt of a new ProgressRecord (such as ProgressNodes 246 and 248). Using the golf analogy, it updates the “leaderboard.”
Using the data components, the progress renderer 260 manages the presentation of the status of a related set of activities at a given point of time or, alternatively, the changing status over time as the related data structures change. Using the golf analogy, it is the person decides how much status information (e.g., score, location, number of holes, etc.) to post on the “leaderboard” given a presumably limited amount of space on the leaderboard on which to post such information.
Exemplary Operation Scenario
Assume there is a program for copying files and that a file-copying program wishes to notify the user of the status of the on-going copying process. Further assume that this program is capable of copying multiple files simultaneously.
The file-copying program the “source” for status information. The OS ultimately handles the presentation of the status information. While the exemplary software-activity status representation system 220 manages the tracking of the status information and the rendering (i.e., pre-presentation) of the status information.
The file-copying program copies multiple files at once and each file is copied in chunks. Each file copy is a sub-activity or operation and each chunk of the file copy is a sub-activity or operation of it (i.e., a sub-activity of a sub-activity). As each file and chunk of file is copied, the file-copying program sends a ProgressRecord (such as is shown at 240 and 242) with the same identification (eg., “activity id”) but varies others information, such as the CurrentOperation, PercentageCompleted and SecondsRemaining to reflect the progress of the current file-copying process. The OS runs the progress updater 250 and a progress renderer 260 upon receipt of each record. The result is a display of how far along the file-copying activity has proceeded, which is updated for each file and each chunk.
Methodological Progress Updating Implementation
FIG. 3 shows an exemplary method 300 for updating the status-tracking mechanism for one or more software activities. Of course, this exemplary method is just one or many possible implementations of the techniques described herein. This method 300 is performed by the one or more of the various components as depicted in FIG. 2. Furthermore, this method 300 may be performed in software, hardware, firmware, or a combination thereof.
For ease of understanding, this method is delineated as separate steps represented as independent blocks in FIG. 3; however, these separately delineated steps should not be construed as necessarily order dependent in their performance. Additionally, for discussion purposes, the method 300 is described with reference to FIG. 2. Also for discussion purposes, particular components are indicated as performing particular functions; however, other components (or combinations of components) may perform the particular functions.
At 302 of FIG. 3, the exemplary software-activity status representation system 220 acquires an incoming ProgressRecord, such as the data structures shown at 240 and 242. An incoming ProgressRecord is provided by the software activity whose status is being tracked or some other source aware of the status of an activity being tracked.
At 304, the system 220 finds an existing ProgressNode data structure (such as ProgressNodes 246 and 248) associated with the incoming ProgressRecord. It may find the associated ProgressNode by using one or more activity identifiers (such as “activityId” or the like). If necessary, it creates a ProgressNode for the incoming ProgressRecord.
At 306, the system 220 determines whether the subject activity (represented by the ProgressRecord and its associated ProgressNode) is “done.” In other words, that subject activity indicates both 1) that it has completed 100% of its action (such as file-copying) and 2) that it no longer wishes to notify the user of its completion status.
Of course, the system 220 may perform some error-correction and data maintenance here or other points in this process so that the incoming data is well-formed and also so the relationships (e.g., parent, child, sibling) between activities is properly maintained.
At 308, the system 220 updates the found ProgressNode with the incoming ProgressRecord's status information. For example, it may update the CurrentOperation, PercentageCompleted and SecondsRemaining to reflect the progress of the activity being tracked. When a ProgressNode is updated, its “age” is reset (e.g., to zero).
At 310, the system 220 ages all of the ProgressNodes. These means that the tracked “age” of each ProgressNode is incremented. As noted above, when a ProgressNode is updated, its “age” is reset. Therefore, the least frequently updated ProgressNodes have the greatest age. A node's age is a consideration in the rendering phase.
The system also resets their rendering style, which is discussed below in the section regarding the rending methodological implementation. In short, the rendering style is the way or style in which the status information for the activity is rendered and thus, ultimately displayed to the user.
At 312, the system 220 updates the PendingProgress data structure 244 with the new status information from the incoming updated ProgressNode. In some implementations, the ProgressNodes are part of the PendingProgress. In those instances, this step is not necessary because updating the ProgressNode necessarily updates the PendingProgress as well.
Methodological Progress Rendering Implementation
FIG. 4 shows an exemplary method 400 for managing the presentation of status information of a collection of software activities. Of course, this exemplary method is just one or many possible implementations of the techniques described herein. This method 400 is performed by the one or more of the various components as depicted in FIG. 2. Furthermore, this method 400 may be performed in software, hardware, firmware, or a combination thereof.
For ease of understanding, this method is delineated as separate steps represented as independent blocks in FIG. 4; however, these separately delineated steps should not be construed as necessarily order dependent in their performance. Additionally, for discussion purposes, the method 400 is described with reference to FIG. 2. Also for discussion purposes, particular components are indicated as performing particular functions; however, other components (or combinations of components) may perform the particular functions.
At 402 of FIG. 4, the exemplary software-activity status representation system 220 analyzes the status of the software activities in a set of multiple activities. More specifically, the system traverses the PendingProgress data structure 244 and examines various aspects of each activity being tracked therein.
At 404, based upon that analysis, the system 220 determines a “rendering style” of each of the activities being tracked via the PendingProgress data structure 244. The purpose of this determination is to find an effective way to visually represent the status information for the tracked activities via a selected output mechanism so that it can be best interpreted by the user.
Also, this is done with an assumption that the output mechanism (e.g., a computer monitor) has a limited amount of displayable space (i.e., real estate). With limited resources (such as displayable space), compromises may be necessary and the system makes those compromises here in this determination.
A rendering style is the “style” in which an activity's status information is displayed. It is a specified way or style in which the status information for an activity is rendered and thus, ultimately displayed to the user. Examples of some styles include: Full, Compact, Minimal, and Invisible. The “full” style includes all status information. The “compact” style includes less status information than the full style. The minimal style includes even less still. And the invisible style indicates that the status information about an activity should not be displayed. Of course, other implementations may utilize other styles and variations of styles.
The determination about how much (e.g., none to all) status information to display for a particular activity is made here at block 404. There are many factors that may go into that determination. For example, each activity may specify or request a particular rendering style. If the system can accommodate, it will render the activity accordingly. Otherwise, the system chooses a style different that what is requested.
Another style determination factor is “age” of software activity's associated ProgressNode. The older that a ProgressNode is the longer it has been since the system has received an update regarding the status of its associated activity. For example, the system may choose to make all activities older than a specified age is rendered in an “invisible” style. That way, newer status information will crowd out the older information.
Furthermore, this determination may be influenced by user interactivity. If a user indicates an interest in seeing more information related to a particular activity, then the system will determine to show more information about that activity. Conversely, if a user indicates a desire to see less information related to particular activities, then the system will determine to show less information about that activity.
Essentially, the determination here is successively “pruning” the amount of data to be displayed so that, as more concurrent activities accumulate, less detail is displayed about each activity.
At 406 of FIG. 4, the system 220 assigns the determined rendering style to each of the activities being tracked via the PendingProgress data structure 244.
At 408, the system 220 displays the rendered representation of that status of the activities being tracked via the PendingProgress data structure 244 and displays them via a selected output mechanism and in accordance with the assigned rendering style for each of the activities. The actual output may be text based output (e.g., 25 lines of 80-column text per screen) or graphical based output (e.g., text and graphics in a movable box(es) on a graphical user-interface).
CONCLUSION
The techniques, described herein, may be implemented in many ways, including (but not limited to) program modules, general- and special-purpose computing systems, network servers and equipment, dedicated electronics and hardware, firmware, and as part of one or more computer networks.
Although the one or more above-described implementations have been described in language specific to structural features and/or methodological steps, it is to be understood that other implementations may be practiced without the specific features or steps described. Rather, the specific features and steps are disclosed as preferred forms of one or more implementations.

## Claims

1. A software activity status tracking system comprising:
a processor; and
a memory accessible to the processor, the memory comprising:
a progress updater configured to update one or more data structures, embodied in one or more processor-readable media, the one or more data structures configured to track status information of multiple software activities as the status information of one or more software activities changes;
a progress renderer configured to:
select a sub-set of all available status information regarding the multiple status-tracked software activities for display via an output mechanism for viewing by a user, wherein selecting a sub-set of all available status information regarding the multiple status-tracked software activities includes determining a rendering style specified by a particular software activity, wherein the specified rendering style is one of a group of multiple rendering styles comprising a full rendering style which indicates the display of all status information for a software activity with such a determined rendering style; an invisible rendering style which indicates the display of no status information for a software activity with such a determined rendering style; and one or more others which indicate the display of an amount of status information somewhere between the full rendering style and the invisible rendering style for a software activity having such a determined rendering style;
determine whether status information of the particular software activity can be rendered according to the rendering style specified by the particular software activity;

render the status information of the particular software activity according to the specified rendering style when the status information of the particular software activity can be rendered according to the specified rendering style; and
render the status information of the particular software activity according to a different rendering style when the status information of the particular software activity cannot be rendered according to the specified rendering style.

2. A system as recited in claim 1, wherein the progress updater is further configured to update the one or more data structures in response to reception of new status information regarding one or more of the software activities that are being tracked.

3. A system as recited in claim 1, wherein the progress updater is further configured to track an age of each status-tracked software activity, the relative age of a software activity being indicative of time since the status information for the software activity was last updated.

4. A system as recited in claim 1, wherein the progress renderer is further configured to determine a rendering style of each of the status-tracked software activities, wherein the rendering style indicates a relative amount of status information to be displayed to the user.

5. A system as recited in claim 1, wherein the one or more data structures comprises a progress record data structure for tracking status information of a single software activity and a pending progress data structure for tracking the status information for one or more of the multiple status-tracked software activities.

6. A system as recited in claim 1, wherein a viewable area of the output mechanism is incapable of displaying all available status information regarding the multiple status-tracked software activities but is capable of displaying the sub-set of all available status information.

7. One or more processor-readable media having computer-executable instructions that, when executed by a computer, performs a method comprising:
analyzing one or more data structures configured to track status information of multiple software activities;
selecting a sub-set of all available status information regarding the multiple software activities to display via an output mechanism for viewing by a user;
determining a relative age of a particular software activity, the age of the particular software activity indicating a relative amount of time since status information of the particular software activity was last updated;
determining a rendering style of the particular software activity based on the age of the particular software activity, wherein the rendering style is selected from a group comprising a full rendering style which indicates the display of all status information for a software activity with such a determined rendering style; an invisible rendering style which indicates the display of no status information for a software activity with such a determined rendering style; and one or more others which indicate the display of an amount of status information somewhere between the full rendering style and the invisible rendering style for a software activity having such a determined rendering style; and
displaying status information for at least a plurality of the multiple status-tracked software activities within a viewable area of the output mechanism, wherein the viewable area is incapable of displaying all available status information regarding the multiple status-tracked software activities but is capable of displaying the sub-set of all available status information.

8. One or more media as recited in claim 7 further comprising:
acquiring incoming data associated with a software activity and presumably having new information regarding status of the software activity;
updating the one or more data structures for tracking status information for multiple software activities as the status information for one or more software activities changes.

9. One or more media as recited in claim 7, wherein the one or more data structures comprises a progress record data structure for tracking status information of a single software activity and a pending progress data structure for tracking the status information for one or more of the multiple status-tracked software activities.