Adding more to the dataflow style DSL class.

Examples for locking and cache invalidation are given.