Article published on the 23rd of November 2020.
Contents
1. Behavior description
Cascaded events allow for one event to trigger another in sequence.
In WorkPoint, the following events can be triggered for entities:
- Data aggregation: a field is updated based on an aggregation rule
- Data inheritance (child entity): a field is updated based a parent entity update using inheritance
- Create entity: An entity is created in a module
- Create entity site: An entity site is created
- Change stage (with and without elevated permissions): The stage is changed on a module
- Edit entity (with and without elevated permissions): An entity is updated
- Copy entity: A copy of an entity is done (equals create entity, and possible create entity site)
- Move entity: An entity is moved to another module (equals create entity and delete entity)
- Delete entity: An entity is deleted
When one of these events occur, it can trigger one of the other events, which then can trigger another, and so on.
This can be represented by the following matrix:
From the matrix, the following examples can be thought of:
- A Companies module has a child module called Projects. When a customer is marked as protected, all child projects are also marked as protected using data inheritance. This can cause security rules to be run and trigger an action in action management on all child projects.
- Completing a task on a project updates an "Incomplete tasks" counter on the project using data aggregation. Once the counter reaches 0, the stage of the project is changed to "Closed".
Comments
0 comments
Please sign in to leave a comment.