1. Field of the Invention
The present invention relates to the field of data processing. More specifically, the present invention relates data processing specification and execution.
2. Background Information
Ever since the invention of the first computer, computer scientists have continuously tried to improve the productivity of programmers, such that more applications can be developed to take advantage of the continuous advancements being made in the art of computer and related technologies. First assembler languages were developed to replace machine languages. Then, high level languages, such as FORTRAN, COBOL, PL/I and so forth, were developed to further improve the productivity of programmers. Development of high level languages were followed by structured languages such as Pascal and C, and then object oriented programming languages such as C++. To facilitate development of the Internet and the World Wide Web, “new” languages such as the Hypertext Markup Language (HTML), Java, Javascript, Perl and CGI were developed.
While great strides had been made in the past decades, advancements in integrated circuit, computer architecture, telecommunication and networking technology continue to outpace the productivity improvement of the programming community. Application development remains substantially a bottleneck to the introduction and application of the latest computer and related technology advancements. Notwithstanding the development of “power user” type of application development languages/facilities, such as Visual Basic, and the continuing improvement and extension to the more traditional languages, a need still exist for a more user friendly way in development data processing applications, for the more average, non-advanced users.
In accordance with the present invention, a data processing program is specified by way of a specification having a number of cell specifications specifying a number of data processing cells, with each data processing cell having a formula specifying an action or a computation. A cell may have one or more attributes referencing other cells. A cell formula may also reference a value of another cell or be executed conditionally.
In one embodiment, one of the cells is reserved as an output cell specifying the output, and a mnemonic is reserved for providing input to the specified data processing.
In one embodiment, an execution analyzer is provided to analyze the data processing specification, and identify the execution order of the cells. Further, an execution engine is provided to effectuate the specified data processing by executing the specified actions/computations of the cells in accordance with the determined execution order.
The present invention will be described by way of exemplary embodiments, but not limitations, illustrated in the accompanying drawings in which like references denote similar elements, and in which:
a-3b illustrate a graphical representation of an example execution flow, and an example data structure suitable for use to represent the example execution flow;
In the following description, various aspects of the present invention will be described. However, it will be apparent to those skilled in the art that the present invention may be practiced with only some or all aspects of the present invention. For purposes of explanation, specific numbers, materials and configurations are set forth in order to provide a thorough understanding of the present invention. However, it will also be apparent to one skilled in the art that the present invention may be practiced without the specific details. In other instances, well known features are omitted or simplified in order not to obscure the present invention.
Parts of the description will be presented in terms of operations performed by a computer system, using terms such as data, values, tags, references, and the like, consistent with the manner commonly employed by those skilled in the art to convey the substance of their work to others skilled in the art. As well understood by those skilled in the art, these quantities take the form of electrical, magnetic, or optical signals capable of being stored, transferred, combined, and otherwise manipulated through mechanical and electrical components of the computer system; and the term computer system include general purpose as well as special purpose data processing machines, systems, and the like, that are standalone, adjunct or embedded.
Various operations will be described as multiple discrete steps in turn, in a manner that is most helpful in understanding the present invention, however, the order of description should not be construed as to imply that these operations are necessarily order dependent. In particular, these operations need not be performed in the order of presentation.
Referring now
As illustrated, for the embodiment, a x-sheet execution analyzer 122 is also advantageously provided to analyze the x-sheets 102, in particular, determining the execution flow of their x-cells 104, “documenting” the flows in execution flow descriptions 132. Further, a x-sheet execution engine 124 is provided to execute the x-cells 104 in accordance with the determined execution flow.
As a result, data processing operations may be advantageously specified and effectuated in a much more user friendly manner. These elements, x-sheet 102, x-cell 104, execution analyzer 122, execution flow description 132, execution engine 124, and the manner they relate, interact and/or cooperate with each, will be described in further detail in turn below.
Turning now first to x-sheets 102 and x-cells 104 of the present invention, and still referring to
In one embodiment, x-cells 104 are delineated by beginning and ending x-cell tags, such as <x:xcell> and </x:xcell>, similar to tags employed by HTML and XML data structures (for familiarity purpose). Further, each x-cell 104 is uniquely named using a “name” attribute. One of the x-cells 104 is reserved as the output cell for outputting the result or results of the specified data processing. Consider the following example x-sheet,
In the above example, the example x-sheet includes two x-cells. The first x-cell is named “preferences”, whereas the second is the reserved “output” x-cell. X-cell “preferences” includes two formulas, one specifying a constant, “red” (as the favorite color), and the other specifying a constant “balloon” (as the favorite toy). The output x-cell also includes two formulas, specifying two output actions and referencing the values of x-cell “preferences” (i.e. the favorite color constant and the favorite toy constant). Accordingly, when executed, x-cell “preferences” is executed first, creating the constant values “red” and “balloon”, and then the output x-cell is executed, outputting the string “red balloon”. [The use of a formula to reference values of other x-cells, and the meaning of the expressions “value of” as well as “select” will be further described later.]
As described earlier, in addition to the formulas 110 of x-cells 104 being able to reference values of the x-cells 104, the x-cells 104 themselves, via attributes 108, may also reference the other x-cells. More specifically, a special “use” attribute is reserved for such purpose. Consider the following example x-sheet,
In this example, the “setup” x-cell refers to the “init” x-cell, and the “calculate” x-cell, via its “uses” attributes, refers to the “action” and “setup” x-cells. Accordingly, the “setup” x-cell” will be executed after the “init” x-cell. Similarly, the “calculate” x-cell with be executed after “setup” x-cell as well as the “action” x-cell. [The relative order between the “action” x-cell and the “setup” x-cell is considered “undefined”.]
Additionally, in support of development of Internet applications, an x-cell, the “header” x-cell, is reserved for the specification of the “meta data”, such as defining Java functions used by other x-cells, defining caching policies for the data processing specification, defining user authentication information, editing state, and so forth. An example “header” x-cell may be specified as follows:
Further, a “process-content” attribute, set to either “true/false”, is supported to facilitate specification of the manner in which an HTTP request is to be processed. Such a request may be received when a x-sheet is hosted as a servlet. In one embodiment, when the attribute is not specified or set to “false”, a HTTP request is read and converted to XML on behalf of the x-sheet. However, if the “process-content” attribute is set to “true”, the input is left in the CGU-style format, allowing the x-sheet to read the body of the HTTP request itself.
In summary, x-cell elements are children of a x-sheet element. Each x-cell element has a name attribute uniquely naming the x-cell. The names “output” and “header” are reserved. Each x-cell may also have one or more attributes, including a use attribute referencing other x-cells.
Turning now to x-cell formulas 110 of the present invention, and still referring to
The “Select” Element
Each “select” element has a path, and is used to select a portion of an inner value of the path. As illustrated in some of the earlier examples, the path may point to another x-cell. Consider the following example
<x:output>
</x:output>
In this example, assuming “user” is an XML record with “authority” set to “supervisor”, the output of the example would be
The authority is: supervisor
The “Value of” Element
Each “value-of” element also has a path, and is used to produce text results from the path specified by the select attribute. As also illustrated in some of the earlier examples, the path may point to another x-cell. Consider the following example
<x:value-of select=“$input/parameters/record”/>
In this example, assuming also “parameter” is an XML record with “record” having “first” and “last” elements set to “John” and “Doe”, the output of the example would be
JohnDoe.
The “Content of” Element
Each “content-of” element also has a path, and is used to produce XML results from the path specified by the select attribute. Similar to the value-of and select attributes, the path may point to another x-cell. Consider the earlier example again
<x:content-of select=“$input/parameters/record”/>
Assuming again “parameter” is an XML record with “record” having “first” and “last” elements set to “John” and “Doe”, the output of the example would be
<first>John</first>
<last>Doe</lase>.
In other words, the difference between “value-of” and “content-of” is that in the earlier case, the delimiters or tags are removed, whereas in the later case, they are not removed.
The “Copy of” Element
Each “copy-of” element also has a path, and is used to produce a node set from the path specified by the select attribute. Also similar to the earlier described attributes, the path may point to another x-cell. Consider the example
<x:copy-of select=“$input/parameters/record”/>
In this example, all the records delineated between the “parameter” tags, i.e. <parameter> . . . </parameter> are output, which may be
assuming these “records” are contents of the input “parameters”.
The “if” Element
The “if” element is used to perform a single Boolean test, causing either a <x:then> or a <x:else> section to be executed depending on the result of the test (naturally, the <x:then> section is executed if the test is true, and the <x:else> section is executed if the test is false). Consider the following example
In this example, the contents of the <x:test> section is evaluated. The result is a document fragment containing the elements <actual> and <submitted> with some values inside them. The local path in the “x:select” attribute on the <x:test> element is executed in the context of the document fragment result of the test. The result of the path is casted to a path Boolean. Lastly, if the Boolean result was true, the <x:then> section is evaluated and its contents become the value of the <x:if>. If the Boolean result was false, the <x:else> section is evaluated and its contents become the value of the <x:if>.
The “for” Element
The “or” element is used to facilitate iteration over a list of nodes. Consider the following example
In this example, the contents of the <x:each> section is evaluated first. If a “x:select” attribute is present, it is evaluated and its result is interpreted as a node list (i.e. not a single node). In this case, the node list has two nodes: the two <record> elements. The name “$rec” is bound to each of the nodes in the list, beginning with the first. If the name shadows other name that is in scope, it is an error. That is, if there is a <x:xcell> names “rec” or and out <x:for> using a variable called “rec”, an error will be signaled. If no error, for each of nodes in the list, the contents of the <x:do> section is evaluated once. The value of the <x:for> if the document fragment containing the concatenated values of all the evaluated <x:do> sections. Outside the <x:for>, the variable <$rec> is meaningless, and any reference would be signaled as an error.
As described earlier, a x-sheet execution analyzer is provided to parse and analyze an x-sheet to determine the execution flow of the x-cells.
As illustrated, upon invocation, i.e. provided with an x-sheet for analysis, analyzer 122 would locate the next cell, block 202. Recall that in one embodiment, each x-cell is delineated by beginning and ending x-cell tags. Locating these tags may be accomplished using anyone of a number of parsing techniques known in the compiler art. Upon locating the next x-cell, analyzer 122 would determine if the located x-cell references other x-cells, either by way of the “use” attribute, or by virtue of its formulas, block 204. Similarly, detection of the present of certain attributes and syntactical elements may be accomplished using any syntax analysis techniques known in the compiler art.
Next, for the illustrated embodiment, upon determining the “interdependency” of the x-cell being analyzed with other x-cells, the interdependency information are output, block 206. In one embodiment, the interdependency information are maintained by way of a directed graph (logically speaking) [see e.g.
Thereafter, analyzer 122 determines if additional x-cells are present and to be analyzed, block 208. If additional x-cells are present and to be analyzed, the process continues back at block 202. On the other hand, if all x-cells have been analyzed, the cumulated interdependency information are ordered, block 210, and then output as execution flow 132, block 212.
As described earlier, a x-sheet execution engine is provided to execute the x-sheets in accordance with their determined execution flows.
As illustrated, upon invocation, i.e. provided with an analyzed x-sheet for execution, execution engine 124 would locate the first cell to be evaluated, as described by execution flow 132, block 402. Upon identifying the first x-cell to be evaluated, execution engine 124 proceeds to evaluate or facilitate to have the formulas evaluated, block 404. The formulas are evaluated in accordance with the semantic meaning of the formula elements (i.e. x:select, x:value-of, x:content-of, x:copy-of and so forth), as described above. Evaluation of the these supported elements in accordance with their semantic meanings may similarly be accomplished using any one of a number of techniques known in the art for executing like kinds of elements in other languages.
After evaluating the first x-cell, execution engine 124 proceeds to determine if additional x-cells are to be executed, again in accordance with execution flow 132, block 406. If additional x-cells are to be executed, execution engine 124 “loads” the next x-cell for evaluations, block 408. From block 408, the process returns back to block 404. On the other hand, if all x-cells have been evaluated, the process terminates.
Thus, it can be seen from the above descriptions, a novel method and apparatus for specifying data processing, and effectuating the specified data processing have been described. While the present invention has been described in terms of the above illustrated embodiments, those skilled in the art will recognize that the invention is not limited to the embodiments described. The present invention can be practiced with modification and alteration within the spirit and scope of the appended claims. For examples, the present invention may be practiced with or without reserved output cells, input mnemonics, etc. The description is thus to be regarded as illustrative instead of restrictive on the present invention.
This non-provisional application is related to and claims priority to provisional application No. 60/246,915, entitled “A Data Processing Method Employing Cell Based Data Flow Description”, filed on Nov. 10, 2000, which is hereby fully incorporated by reference.
Number | Name | Date | Kind |
---|---|---|---|
5428792 | Conner et al. | Jun 1995 | A |
5428793 | Odnert et al. | Jun 1995 | A |
5586330 | Knudsen et al. | Dec 1996 | A |
5590331 | Lewis et al. | Dec 1996 | A |
5630137 | Carney et al. | May 1997 | A |
5845121 | Carter | Dec 1998 | A |
5930512 | Boden et al. | Jul 1999 | A |
5946487 | Dangelo | Aug 1999 | A |
6066181 | DeMaster | May 2000 | A |
6101511 | DeRose et al. | Aug 2000 | A |
6115741 | Domenikos et al. | Sep 2000 | A |
6167565 | Kanamori | Dec 2000 | A |
6260078 | Fowlow | Jul 2001 | B1 |
6292936 | Wang | Sep 2001 | B1 |
6308224 | Leymann et al. | Oct 2001 | B1 |
6327624 | Mathewson, II et al. | Dec 2001 | B1 |
6339839 | Wang | Jan 2002 | B1 |
6438540 | Nasr et al. | Aug 2002 | B2 |
6442748 | Bowman-Amuah | Aug 2002 | B1 |
6546477 | Russo et al. | Apr 2003 | B1 |
6581062 | Draper et al. | Jun 2003 | B1 |
6675353 | Friedman | Jan 2004 | B1 |
6675354 | Claussen et al. | Jan 2004 | B1 |
6678724 | Nakajima et al. | Jan 2004 | B2 |
6721727 | Chau et al. | Apr 2004 | B2 |
6732330 | Claussen et al. | May 2004 | B1 |
6993657 | Renner et al. | Jan 2006 | B1 |
7203866 | Di Fabbrizio et al. | Apr 2007 | B2 |
20020049788 | Lipkin et al. | Apr 2002 | A1 |
20020059345 | Wang et al. | May 2002 | A1 |
20020069399 | Miloushey et al. | Jun 2002 | A1 |
20020073080 | Lipkin | Jun 2002 | A1 |
20020073399 | Golden | Jun 2002 | A1 |
20020087571 | Stapel et al. | Jul 2002 | A1 |
20020099867 | Wilkinson et al. | Jul 2002 | A1 |
20020120685 | Srivastava et al. | Aug 2002 | A1 |
20020129000 | Pillai et al. | Sep 2002 | A1 |
20020184308 | Levy et al. | Dec 2002 | A1 |
20020188547 | Banerjee et al. | Dec 2002 | A1 |
20030121000 | Cooper et al. | Jun 2003 | A1 |
20040028049 | Wan | Feb 2004 | A1 |
20040049374 | Breslau et al. | Mar 2004 | A1 |
20040177062 | Urquhart et al. | Sep 2004 | A1 |
20080066059 | Pugh et al. | Mar 2008 | A1 |
Number | Date | Country | |
---|---|---|---|
20020133808 A1 | Sep 2002 | US |
Number | Date | Country | |
---|---|---|---|
60246915 | Nov 2000 | US |