This how-to is work in progress.
Table of Contents
Simulation related to an Order need to be updated as soon as the Order (or some of its content) is modified.
This behaviour is not activated by the Product itself, in order to keep flexibility.
To expand the simulation automatically, associate one of the interaction workflow (from erp5_core):
to the right portal type (depending if it's on the Order or Order's content level).
For now, those interactions are triggered by the _setters.
To initiate the simulation process, the workflow managing simulation_state for this order calls Delivery_updateAppliedRule. Shouldn't this be handled by
order_simulation_interaction_workflow instead ?