User Document Literals
The user document literal is always of type Document.
UserDocumentLiteral:
UserDocumentDeclarator [ComplexLiteralInputCharsopt]
UserDocumentDeclarator [Expression]
UserDocumentDeclarator [Expression, Expression]
UserDocumentDeclarator:
any case for DOC
-
If the sequence of characters can be parsed as an expression of type String, then the resulting document is a user document where the expression specifies the name of the document to retrieve the document from the repository.
-
If the sequence of characters can be parsed as two expressions where the first one must have type String and the second one must have type Contact, then the resulting document is a user document where the first argument specifies the name of the document to retrieve from the repository and the second one represents a contact which can be associated with the document to allow proper resolution of the document in the repository using the language context associated with the specified contact.
-
If the sequence of characters cannot be parsed properly as described above, then it is considered to be the name of the user document to retrieve from the repository.
Example User Document Literals:
DOC[AA\schedule.doc]
DOC["vxml\application1.vxml", mainCall]
DOC[rootTemplateDir + "templateA.txt"]
Note | The special case of DOC[] represents an empty document. |