FSM Transitions conditions
In some cases there are additional requirements in order to allow the process to go to the next step. For this, custom conditions that integrates with transitions out of the box, were built.
Base classes for them:
BaseTransitionCheck
- base check which collects validation errors insideget_errors
function and raise them if conditions are not met.BaseRequiredFieldsCheck - has
fields
attribute which contain list of required fields to allow performing of transition.
Examples:
Check that attachments of specific type are provided:
Check that partner and all required focal points are provided before visit assignment:
Example of the error response in case of unmet conditions:
Last updated