DOCUMENT TEMPLATE DYNAMIC TOKEN POPULATION
First Claim
1. A computer-implemented method to apply one or more dynamic tokens in a document template, the method comprising:
- parsing a received document template to identify one or more tokens that provide replacement data for part of the template, wherein at least one token is a dynamic token that causes dynamic determination of replacement data;
receiving payload information that specifies data associated with at least one instance of a document to be created based on the selected template;
detecting a reference to a dynamic token in the received document template;
locating a token handler that includes custom software code for generating replacement data for the detected dynamic token;
invoking the located token handler to execute custom software code associated with the dynamic token and generate replacement data for the dynamic token;
receiving replacement data as output from the invoked token handler; and
inserting the received replacement data into the created instance of the document based on the received document template,wherein the preceding steps are performed by at least one processor.
2 Assignments
0 Petitions
Accused Products
Abstract
A dynamic token system is described herein that allows the insertion of dynamic content into document templates that execute logic at run time to determine content to use to replace the token. A dynamic token is a generic mechanism to add content to a document body. Authors can implement a uniform defined interface, and reference a class containing custom software logic as a token in the document template. When a parser reaches that token, it invokes the dynamic token implementation, which has access to the entire payload and has the appropriate context to act accordingly. Each token can perform a very specific action, augment the payload if necessary, and output the desired information. This mechanism allows administrators to fulfill numerous requirements that are otherwise extremely complicated if not impossible. Thus, the system provides manageable, extensible document templates that can be applied to a wider variety of situations.
-
Citations
20 Claims
-
1. A computer-implemented method to apply one or more dynamic tokens in a document template, the method comprising:
-
parsing a received document template to identify one or more tokens that provide replacement data for part of the template, wherein at least one token is a dynamic token that causes dynamic determination of replacement data; receiving payload information that specifies data associated with at least one instance of a document to be created based on the selected template; detecting a reference to a dynamic token in the received document template; locating a token handler that includes custom software code for generating replacement data for the detected dynamic token; invoking the located token handler to execute custom software code associated with the dynamic token and generate replacement data for the dynamic token; receiving replacement data as output from the invoked token handler; and inserting the received replacement data into the created instance of the document based on the received document template, wherein the preceding steps are performed by at least one processor. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13)
-
-
14. A computer system for document template dynamic token population, the system comprising:
-
a processor and memory configured to execute software instructions embodied within the following components; a template data store that stores one or more document templates wherein at least one document template includes at least one reference a dynamic token with data populated by executing a dynamic token handler during processing of the template; a template creation component that provides an interface to template creators to create and modify document templates and store the created or modified document templates in the template data store; a template access component that provides access to templates stored in the template data store to template users for creation of documents based on the templates; a token detection component that detects one or more tokens in a selected document template and processes the tokens to populate a document instance derived from the template with appropriate text or other data; a handler identification component that identifies a software handler for an identified dynamic token referenced in the selected document template; a token execution component that executes an identified software handler for an identified dynamic token in the selected document template; and a document finalization component that finalizes the document instance derived from the selected document template after each of the token references in the template have been resolved. - View Dependent Claims (15, 16, 17, 18, 19)
-
-
20. A computer-readable storage medium comprising instructions for controlling a computer system to create a tokenized template including one or more dynamic tokens, wherein the instructions, upon execution, cause a processor to perform actions comprising:
-
receiving a request to create a tokenized document template for creating document instances using replacement data from one or more replaceable tokens; receiving a module that implements at least one dynamic token handler, wherein a dynamic token handler provides dynamically executable software code for determining contents of replacement data at run time during creation of a document instance based on the document template; receiving template static content that defines at least part of a body of the template; inserting at least one reference to a dynamic token into the document template; and storing the created document template including the at least one reference to the dynamic token in a template data store.
-
Specification