The Cache Challenge

Cache document properties

By design, documents and their Dynamic Document Properties are discarded at the end of a branch.

End and continue - Documents are discarded

Using Document Cache

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.

Process Properties

Another common pattern to save the results of a branch is to use a Dynamic Process Property in combination with a Flow-Control shape:

Document by document with flow-control and Process Property

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.

The deal with Dynamic Document Properties

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.

Last updated