This how-to is work in progress.
Table of Contents
Generate Simulation related to an Order¶
Expand Simulation related to an Order¶
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):
- order_simulation_interaction_workflow
- order_movement_simulation_interaction_workflow
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.
Initial Creation of Simulation Tree¶
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 ?
Related Articles¶