Added documentation for setting 'apply_policy_to_generated_events'.
@@ -815,6 +815,15 @@ which contains the ``order`` aggregate expected by the policy.
.. rather than the original process application's repository (``self.repository``)
.. which doesn't detect which aggregates were used when your policy was called.
+Apply policy to generated events
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+It is possible to set the ``apply_policy_to_generated_events`` class attribute
+of ``ProcessApplication`` to a ``True`` value. In this case, the policy will
+be applied to events that are generated by the policy, and all of them will
+be saved within the same atomic "process event". This can avoid having a
+process application follow itself in a system.
+
System
------
