Task active state management business rule

A business rule that determines if the active field needs to change based on state changes.

The Task Active State Management business rule is executed for any task state change. It's execution order is 50, designed to run before most other task rules. If the current task table has the close_states attribute defined on it's table or it is inherited from a higher-level table then the rule will determine if the active field needs to change. This is done by comparing the previous and current state values. If the state changes from an active state to an inactive state, the active field will be set to false. If the state changes from an inactive state to an active state, the active field will be set to true, effectively re-activating/re-opening the task. It is recommended that you leverage this action in your business rules (current.active.changesTo([true/false]) as opposed to creating rules on each task table that marks tasks as inactive or active.