Inactive tasks
When a task type is no longer required in the system, it can be made inactive so it can no longer be added to orders and workflow templates.
When made inactive, the task will not be deleted from existing orders to keep their integrity.
To let users know that the task in the workflow is no longer active, a visual indication was added to the task. The task will appear crossed out:
In addition, added a dependency with the status of the order to prevent copying orders with inactive tasks.
The status of an order that contains inactive tasks cannot be changed from “New” to: “In progress”.
When clicking the “Copy” button to copy an order with inactive tasks, the following alert will be displayed to let the users know that after copying the order, they must replace the inactive tasks in the new orders with active tasks because otherwise the orders' status cannot be changed from “New” to: “In progress”:
If an order contains inactive tasks when trying to change the status from “New” to: “In progress”, the following alert will be displayed and the status will not change.
Only after replacing the inactive tasks in the new orders with active tasks, the status of the orders can be changed from “New” to: “In progress”.