Overview
In M-Files, workflow state transitions on a main object may need to be restricted based on the workflow states of related objects. A common requirement is to prevent the main object from moving to a final state unless all related objects are in specific allowed states. To ensure that a main object cannot be moved to a target workflow state unless all related objects meet the required conditions, a Compliance Kit Hierarchy Manager configuration can be used instead of a simple workflow precondition.Below is one example configuration.
Solution
- Phase objects link to Project objects via property Project(s)
- Projects and Phases have their own workflows
- You will get an error message if you try to move Project to state "Completed", if any of Phase objects are not either in state "Completed" or in state "Cancelled"
