Details
-
Fix
-
Status: Released (View Workflow)
-
Medium
-
Resolution: Fixed
-
2.8.2
-
None
Description
Current Situation:
When attempting to delete a deployed workflow that is attached to a released schedule and has Daily plan orders which are in submitted state, the workflow cannot be removed from the inventory.
The submitted, finished, and planned orders are not deleted, and the UI displays the following error message:
“Orders are still attached to the controller.”
As a result, the workflow configuration remains in the inventory and cannot be deleted.
Steps to Reproduce:
- Create a workflow W1 and a schedule S1, and attach W1 to S1.
- Deploy the configuration and release the schedule so that Daily Plan orders are created in the Submitted state.
- Copy an order, paste it on the same date, and use the Let Run button to run the copied order until it reaches the Finished state.
- Attempt to remove the workflow W1 from the inventory.
Observe that an error message is displayed stating that orders are still attached to the controller, and the workflow is not deleted.
Desired Behavior:
When removing a workflow configuration from the inventory, all associated orders across all states should be removed first, after which the workflow should be successfully deleted from the inventory.