Description
Case description:
Suppose, there are few process XML files in the 'Processes' directory.
During application starting, all these processes will be deployed to server.
But Flowable engine uses two-step deployment procedure:
First, in creates a deployment object that contains ALL process models.
Second, it creates distinct process definitions, each of which is related to the same deployment object.
Flowable does't allow deleting of separate process definition. You can delete only whole deployment.
Now in the process definition detail view is available the button "Delete deployment" for deleting process definition.
So, if the user press it, ALL process definitions related to this deployment will be deleted without any notification.
It will be very unexpected for the user.
WORK AROUND:
If the deployment contains more than one process definition, ask the user to confirm the action.
Create a dialog window:
Confirmation Required
You are about to delete the following process definition:
- [ProcessDefinition ID, Name]
In Deployment: [Deployment ID, Name]
This action will also delete all related process definitions associated with the same deployment:
-
[Process1Name] (ID: [Process1ID])
-
[Process2Name] (ID: [Process2ID])
-
[Process3Name] (ID: [Process3ID])
Please confirm that you want to proceed with this action. This operation cannot be undone.