The Cache Challenge
Cache document properties
Last updated
Cache document properties
Last updated
By design, documents and their Dynamic Document Properties are discarded at the end of a branch.
If you need the documents in another branch you can store the documents in a document cache. However, sometime it is difficult to name and index for the documents or you will also need the original documents, and combining cached documents with the orginal documents is always a bit painful.
Another common pattern to save the results of a branch is to use a Dynamic Process Property in combination with a Flow-Control shape:
This pattern is often used with http-connectors and the major disadvantage is, it run document by document and http request and response run sequentially for all documents.
Dynamic Document Properties are attached to a document. Basically, Dynamic Document Properties are a key-value list on a document. They live and die with a document. So, if you use a document cache, the document properties are also cached. If a document is discard at the end of a branch, its document properties go away with it.